Mazdak Farrokhzad
1ac00287af
Rollup merge of #65215 - JohnTitor:long-explanation-e0697, r=GuillaumeGomez
...
Add long error explanation for E0697
Part of #61137
r? @GuillaumeGomez
2019-10-14 07:36:52 +02:00
Yuki Okushi
c6cc29d8cf
Apply suggestion
2019-10-13 13:19:40 +09:00
Tyler Mandry
6687edcbef
Rollup merge of #65200 - xfix:patch-20, r=GuillaumeGomez
...
Add ?Sized bound to a supertrait listing in E0038 error documentation
This example failed to compile because of implicit `Sized` bound for `A` parameter that wasn't required by `Trait`.
2019-10-11 15:09:47 -07:00
Yuki Okushi
e0ef7767ca
Add long error explanation for E0697
2019-10-11 08:23:33 +09:00
Konrad Borowski
3f9d834fb3
Add failing example for Self in supertrait listing in E0038 documentation
2019-10-09 12:33:24 +02:00
Mazdak Farrokhzad
ae5bb7e289
Rollup merge of #65037 - anp:track-caller, r=oli-obk
...
`#[track_caller]` feature gate (RFC 2091 1/N)
RFC text: https://github.com/rust-lang/rfcs/blob/master/text/2091-inline-semantic.md
Tracking issue: https://github.com/rust-lang/rust/issues/47809
I started with @ayosec's commit to add the feature gate with tests and rebased it onto current master. I fixed up some tidy lints and added a test.
2019-10-09 05:31:35 +02:00
Konrad Borowski
7dc4bf4f93
Change incorrect trait name in E0038 error documentation
2019-10-09 01:03:56 +02:00
Mazdak Farrokhzad
ecd6229f72
Rollup merge of #65135 - GuillaumeGomez:add-error-code-check, r=Mark-Simulacrum
...
Add check for missing tests for error codes
Fixes #64811 .
r? @Mark-Simulacrum
2019-10-08 23:31:24 +02:00
Konrad Borowski
58089717b9
Add ?Sized bound to a supertrait listing in E0038 error documentation
...
This example failed to compile because of implicit `Sized` bound
for `A` parameter that wasn't required by `Trait`.
2019-10-08 12:19:00 +02:00
Guillaume Gomez
28b0e1db50
Add long error explanation for E0495
2019-10-07 17:12:54 +02:00
Adam Perry
bdc4bd142b
E073[6-8] include failing code examples.
2019-10-07 08:05:33 -07:00
Adam Perry
8992c30db4
E0735 -> E0739
...
Prevents number collision with another approved PR.
2019-10-07 08:05:33 -07:00
Adam Perry
9900211ea0
track_caller error numbers and text.
2019-10-07 08:05:33 -07:00
Adam Perry
6c04c8eb8e
track_caller run-pass test, lint cleanup, PR review.
2019-10-07 08:05:22 -07:00
Ayose
543449d4fd
[RFC 2091] Add #[track_caller] attribute.
...
- The attribute is behind a feature gate.
- Error if both #[naked] and #[track_caller] are applied to the same function.
- Error if #[track_caller] is applied to a non-function item.
- Error if ABI is not "rust"
- Error if #[track_caller] is applied to a trait function.
Error codes and descriptions are pending.
2019-10-07 08:05:21 -07:00
Guillaume Gomez
7a8415894f
Fix/improve some error codes long explanation
2019-10-07 11:15:45 +02:00
Guillaume Gomez
57cb8819ee
Update ui tests
2019-10-06 21:00:40 +02:00
Guillaume Gomez
c5e0d6e4d4
Add long error explanation for E0566
2019-10-06 15:23:33 +02:00
Mark Rousskov
7c3f65b3c4
middle::intrinsicck -> rustc_passes
2019-10-04 11:11:33 -04:00
Mark Rousskov
82bfd8eb0d
middle::entry -> rustc_passes
2019-10-04 11:11:33 -04:00
Mazdak Farrokhzad
01075d8f6b
Rollup merge of #64763 - GuillaumeGomez:long-err-explanation-E0734, r=estebank
...
Add E0734 and its long explanation
Part of https://github.com/rust-lang/rust/issues/61137
2019-09-28 22:12:02 +02:00
Guillaume Gomez
0ebb044eb1
Add long error explanation for E0734
2019-09-27 13:23:07 +02:00
Guillaume Gomez
68d099a175
Create new error code E0734 for stability attributes used outside of standard library
2019-09-25 13:23:53 +02:00
Guillaume Gomez
144b845073
Add long error explanation for E0312
2019-09-12 12:58:44 +02:00
Mark Rousskov
b437240cee
Replace diagnostic plugins with macro_rules
2019-09-05 12:35:15 -04:00
Mark Rousskov
74563b4166
Restrict error code length to 80 columns
...
The global restriction is 100, but since error codes are printed out via
--explain we want to restrict them to just 80 columns.
2019-09-05 12:34:44 -04:00
Esteban Küber
efe85943b3
account for DUMMY_SP and correct wording
2019-09-02 22:11:29 -07:00
Kevin Per
97319b2b95
Changing error messages and renaming tests #63127
...
`async-await/no-args-non-move-async-closure`
`generator/no-arguments-on-generators`
2019-08-27 17:31:57 +02:00
Mazdak Farrokhzad
b0d4782948
Stabilize 'async_await'.
2019-08-20 02:38:02 +02:00
Mazdak Farrokhzad
99c4a94fa5
Update error_codes re. await_macro removal.
2019-07-30 10:55:45 +02:00
Vadim Petrochenkov
434152157f
Remove lint annotations in specific crates that are already enforced by rustbuild
...
Remove some random unnecessary lint `allow`s
2019-07-28 18:46:24 +03:00
Samy Kacimi
66815c613a
normalize use of backticks for compiler messages in remaining modules
...
https://github.com/rust-lang/rust/issues/60532
2019-07-23 23:09:59 +02:00
Yuki Okushi
b8f1491f6e
Fix typos
2019-06-13 00:37:30 +09:00
Jad Ghalayini
b3480126d4
Incorporated suggested changes
2019-05-27 19:37:20 -04:00
Jad Ghalayini
03cce1d81e
Added error message for E0284
2019-05-26 16:48:02 -04:00
Taylor Cramer
fe8760cb84
Implement built-in await syntax
...
Adds support for .await under the existing async_await feature gate.
Moves macro-like await! syntax to the await_macro feature gate.
Removes support for `await` as a non-keyword under the `async_await`
feature.
2019-05-07 14:45:53 -07:00
Taylor Cramer
c6e13bc20b
Disallow non-explicit elided lifetimes in async fn
2019-05-01 18:34:49 -07:00
Vadim Petrochenkov
2ae7b0c898
tidy: Fix false positives from long URLs
2019-04-27 20:29:27 +03:00
Giles Cope
66e41bc675
Improved error message when type must be bound due to generator.
...
Error now mentions type var name and span is highlighted.
2019-04-25 16:42:59 +01:00
Yuki OKUSHI
5f3b8d0883
Rename diagnostics to error_codes
2019-04-17 18:19:14 +09:00