about summary refs log tree commit diff
path: root/src/librustc/error_codes.rs
AgeCommit message (Collapse)AuthorLines
2019-11-14Remove unused error_codes.rs filesGuillaume Gomez-2394/+0
2019-11-13Rollup merge of #66186 - GuillaumeGomez:long-err-explanation-E0623, r=Dylan-DPCYuki Okushi-1/+45
Add long error explanation for E0623 Part of #61137. r? @Dylan-DPC
2019-11-13tidy up!Dylan DPC-2/+2
2019-11-13Update error_codes.rsDylan DPC-3/+5
2019-11-07Add long error explanation for E0623Guillaume Gomez-1/+43
2019-11-07Rollup merge of #65884 - Centril:non-hardcoded-abis, r=petrochenkovMazdak Farrokhzad-0/+1
syntax: ABI-oblivious grammar This PR has the following effects: 1. `extern $lit` is now legal where `$lit:literal` and `$lit` is substituted for a string literal. 2. `extern "abi_that_does_not_exist"` is now *syntactically* legal whereas before, the set of ABI strings was hard-coded into the grammar of the language. With this PR, the set of ABIs are instead validated and translated during lowering. That seems more appropriate. 3. `ast::FloatTy` is now distinct from `rustc_target::abi::FloatTy`. The former is used substantially more and the translation between them is only necessary in a single place. 4. As a result of 2-3, libsyntax no longer depends on librustc_target, which should improve pipe-lining somewhat. cc @rust-lang/lang -- the points 1-2 slightly change the definition of the language but in a way which seems consistent with our general principles (in particular wrt. the discussions of turning things into semantic errors). I expect this to be uncontroversial but it's worth letting y'all know. :) r? @varkor
2019-11-07parser: don't hardcode ABIs into grammarMazdak Farrokhzad-0/+1
2019-11-06gate rustc_on_unimplemented under rustc_attrsMazdak Farrokhzad-3/+3
2019-11-05Fix typo in explanation of `E0080`Youngsuk Kim-1/+1
Handling issue #66105 in Rust repo. `evaluate an constant expression` to `evaluate a constant expression`
2019-10-25Move handling of `#[track_caller]` to `check_attr`varkor-1/+52
2019-10-25RFC 2008: StabilizationDavid Wood-2/+0
This commit stabilizes RFC 2008 (#44109) by removing the feature gate. Signed-off-by: David Wood <david@davidtw.co>
2019-10-22Add link to async/awaitYuki Okushi-3/+6
2019-10-22Apply suggestionsYuki Okushi-9/+16
2019-10-22Add long error explanation for E0728Yuki Okushi-3/+70
2019-10-14Rollup merge of #65215 - JohnTitor:long-explanation-e0697, r=GuillaumeGomezMazdak Farrokhzad-1/+18
Add long error explanation for E0697 Part of #61137 r? @GuillaumeGomez
2019-10-13Apply suggestionYuki Okushi-5/+5
2019-10-11Rollup merge of #65200 - xfix:patch-20, r=GuillaumeGomezTyler Mandry-5/+9
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-11Add long error explanation for E0697Yuki Okushi-1/+18
2019-10-09Add failing example for Self in supertrait listing in E0038 documentationKonrad Borowski-1/+5
2019-10-09Rollup merge of #65037 - anp:track-caller, r=oli-obkMazdak Farrokhzad-0/+20
`#[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-09Change incorrect trait name in E0038 error documentationKonrad Borowski-1/+1
2019-10-08Rollup merge of #65135 - GuillaumeGomez:add-error-code-check, r=Mark-SimulacrumMazdak Farrokhzad-7/+11
Add check for missing tests for error codes Fixes #64811. r? @Mark-Simulacrum
2019-10-08Add ?Sized bound to a supertrait listing in E0038 error documentationKonrad Borowski-4/+4
This example failed to compile because of implicit `Sized` bound for `A` parameter that wasn't required by `Trait`.
2019-10-07Add long error explanation for E0495Guillaume Gomez-2/+41
2019-10-07E073[6-8] include failing code examples.Adam Perry-0/+10
2019-10-07E0735 -> E0739Adam Perry-1/+1
Prevents number collision with another approved PR.
2019-10-07track_caller error numbers and text.Adam Perry-10/+10
2019-10-07track_caller run-pass test, lint cleanup, PR review.Adam Perry-4/+4
2019-10-07[RFC 2091] Add #[track_caller] attribute.Ayose-0/+10
- 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-07Fix/improve some error codes long explanationGuillaume Gomez-7/+11
2019-10-06Update ui testsGuillaume Gomez-5/+2
2019-10-06Add long error explanation for E0566Guillaume Gomez-1/+24
2019-10-04middle::intrinsicck -> rustc_passesMark Rousskov-105/+0
2019-10-04middle::entry -> rustc_passesMark Rousskov-75/+0
2019-09-28Rollup merge of #64763 - GuillaumeGomez:long-err-explanation-E0734, r=estebankMazdak Farrokhzad-0/+17
Add E0734 and its long explanation Part of https://github.com/rust-lang/rust/issues/61137
2019-09-27Add long error explanation for E0734Guillaume Gomez-1/+17
2019-09-25Create new error code E0734 for stability attributes used outside of ↵Guillaume Gomez-0/+1
standard library
2019-09-12Add long error explanation for E0312Guillaume Gomez-1/+33
2019-09-05Replace diagnostic plugins with macro_rulesMark Rousskov-5/+1
2019-09-05Restrict error code length to 80 columnsMark Rousskov-7/+11
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-02account for DUMMY_SP and correct wordingEsteban Küber-1/+1
2019-08-27Changing error messages and renaming tests #63127Kevin Per-2/+2
`async-await/no-args-non-move-async-closure` `generator/no-arguments-on-generators`
2019-08-20Stabilize 'async_await'.Mazdak Farrokhzad-2/+0
2019-07-30Update error_codes re. await_macro removal.Mazdak Farrokhzad-5/+5
2019-07-28Remove lint annotations in specific crates that are already enforced by ↵Vadim Petrochenkov-2/+0
rustbuild Remove some random unnecessary lint `allow`s
2019-07-23normalize use of backticks for compiler messages in remaining modulesSamy Kacimi-1/+1
https://github.com/rust-lang/rust/issues/60532
2019-06-13Fix typosYuki Okushi-1/+1
2019-05-27Incorporated suggested changesJad Ghalayini-5/+4
2019-05-26Added error message for E0284Jad Ghalayini-1/+46
2019-05-07Implement built-in await syntaxTaylor Cramer-0/+2
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.