about summary refs log tree commit diff
path: root/src/librustc_error_codes/error_codes.rs
AgeCommit message (Collapse)AuthorLines
2020-08-30mv compiler to compiler/mark-637/+0
2020-07-24Rollup merge of #74572 - Mark-Simulacrum:unify-rustc-depr, r=petrochenkovYuki Okushi-1/+1
Internally unify rustc_deprecated and deprecated This PR intentionally tries to be "featureless" in that the behavior is not altered for either attribute, though it more clearly exposes cases where that is the case in the code.
2020-07-22Change error code numberEsteban Küber-1/+1
2020-07-22Further tweak wording of E0759 and introduce E0767Esteban Küber-0/+1
2020-07-20Parse rustc_deprecated as deprecated attributeMark Rousskov-1/+1
2020-07-19disallow non-static lifetimes in const genericsGabriel Smith-0/+1
This has been put in place to patch over an ICE caused when we encounter a non-static lifetime in a const generic during borrow checking. This restriction may be relaxed in the future, but we need more discussion before then, and in the meantime we should still deal with this ICE. Fixes issue #60814
2020-07-18rustc_metadata: Remove some extra diagnostics for legacy pluginsVadim Petrochenkov-1/+1
They are deprecated so doing extra work for error recovery doesn't make sense
2020-07-16forbid generic params in the type of const paramsBastian Kauschke-0/+1
2020-07-14Rollup merge of #74173 - estebank:struct-pat-as-enum, r=petrochenkovManish Goregaokar-0/+1
Detect tuple struct incorrectly used as struct pat Subpart of #74005. r? @petrochenkov
2020-07-13Merge branch 'master' into E0688Pankaj Chaudhary-5/+22
2020-07-13Added proper explanation of ErrorCode-E0688PankajChaudhary5-1/+1
2020-07-12Detect tuple struct incorrectly used as struct patEsteban Küber-0/+1
2020-07-04Create new E0768 error code for "no valid digits found for number" errorGuillaume Gomez-0/+1
2020-07-02resolve: disallow label use through closure/asyncDavid Wood-0/+1
This commit modifies resolve to disallow `break`/`continue` to labels through closures or async blocks. This doesn't make sense and should have been prohibited anyway. Signed-off-by: David Wood <david@davidtw.co>
2020-07-01Rollup merge of #72071 - PankajChaudhary5:ErrorCode-E0687, r=davidtwcoManish Goregaokar-1/+1
Added detailed error code explanation for issue E0687 in Rust compiler. Added proper error explanation for issue E0687 in the Rust compiler. Error Code E0687 Sub Part of Issue #61137 r? @GuillaumeGomez
2020-06-25Add E0766 error for unterminated double quote byte stringGuillaume Gomez-0/+1
2020-06-21Create E0765 error for unterminated double quote stringsGuillaume Gomez-0/+1
2020-06-19add new error codeChristian Poveda-0/+1
2020-06-19Rollup merge of #73280 - GuillaumeGomez:add-e0763, r=petrochenkovRalf Jung-0/+1
Add E0763
2020-06-16Create new E0763 error code for unterminated byte constantGuillaume Gomez-0/+1
2020-06-15Change E0758 to E0759 to avoid conflict with #72912Esteban Küber-0/+1
2020-06-14Added proper explanation of ErrorCode-E0687pankajchaudhary5-1/+1
2020-06-12Rollup merge of #73163 - ayushmishra2005:61137-add-long-error-code-e0724, ↵Dylan DPC-1/+1
r=davidtwco Add long error explanation for E0724 Add long explanation for the E0724 error code Part of #61137
2020-06-11Add long error explanation for E0724Ayush Kumar Mishra-1/+1
Minor refactoring Minor refactoring Update src/librustc_error_codes/error_codes/E0724.md Co-authored-by: David Wood <Q0KPU0H1YOEPHRY1R2SN5B5RL@david.davidtw.co> Update src/librustc_error_codes/error_codes/E0724.md Co-authored-by: David Wood <Q0KPU0H1YOEPHRY1R2SN5B5RL@david.davidtw.co> Update src/librustc_error_codes/error_codes/E0724.md Co-authored-by: David Wood <Q0KPU0H1YOEPHRY1R2SN5B5RL@david.davidtw.co> Minor refactoring
2020-06-10Create new error code E0762 for unterminated char literalsGuillaume Gomez-0/+1
2020-06-10Rollup merge of #73122 - doctorn:issue-73116, r=varkorDylan DPC-0/+1
Resolve E0584 conflict Adds a new error code (`E0761`) to indicate ambiguity in module file names and an accompanying expanded description to resolve a conflict over `E0584`. Resolves #73116
2020-06-08Resolve E0584 conflictNathan Corbyn-0/+1
2020-06-07Create new error code E0758 for unterminated multi-line commentsGuillaume Gomez-0/+1
2020-06-05Rollup merge of #72260 - csmoe:issue-69276, r=estebankDylan DPC-0/+1
Spell out `Self` in async function return Closes #69276 r? @tmandry
2020-06-04resolve error code e0760csmoe-1/+1
2020-05-20Implement `#[ffi_const]` and `#[ffi_pure]` function attributesMatthias Schiffer-0/+3
Introduce function attribute corresponding to the `const`/`pure` attributes supported by GCC, clang and other compilers. Based on the work of gnzlbg <gonzalobg88@gmail.com>.
2020-05-19Merge branch 'master' into issue-69276csmoe-1/+2
2020-05-18bless suggestion on spell outcsmoe-1/+1
2020-05-17Disallow forbidden usage of non-ascii identifiers.Charles Lew-0/+1
2020-05-16create error code E0754csmoe-0/+1
2020-05-12add long error explanation for E0228Jade McGough-1/+1
2020-05-02Add long error explanation for E0539unexge-1/+1
2020-04-22Rollup merge of #71370 - PankajChaudhary5:ErrorCode-E0696, r=GuillaumeGomezDylan DPC-1/+1
Added detailed error code explanation for issue E0696 in Rust compiler. Added proper error explanation for issue E0696 in the Rust compiler. Error Code E0696 Sub Part of Issue #61137 r? @GuillaumeGomez
2020-04-22Add error code to inner doc comment attribute errorGuillaume Gomez-0/+1
2020-04-21Added proper explanation error code E0696pankajchaudhary5-1/+1
2020-04-20Check that main/start is not asyncSebastian Malton-0/+1
* Add new error code E0752 * Add span to hir::IsAsync::Yes * Emit an error if main or the start function is marked as async * Add two regression tests Fix formatting errors and bless test outputs * move tests to ui/async-await fix test error text remove span from IsAsync
2020-04-17Rollup merge of #70578 - PankajChaudhary5:master, r=GuillaumeGomezDylan DPC-1/+1
Add long error explanation for E0657 Added proper error explanation for issue E0657 in the Rust compiler. Part of #61137 r? @GuillaumeGomez
2020-04-16Rollup merge of #70611 - pawanbisht62:doc/61137-add-long-error-code-e0708, ↵Dylan DPC-2/+1
r=GuillaumeGomez Add long error explanation for E0708 #61137 Add long explanation for the E0708 error code Part of #61137 r? @GuillaumeGomez
2020-04-13Add proper explanation of error code E0657PankajChaudhary5-1/+1
2020-04-12Add long error explanation for E0708 #61137bishtpawan-2/+1
Refactor code as per the suggestions Refacotor code provide edition support
2020-04-09track_caller: support on FFI importsMazdak Farrokhzad-1/+1
2020-03-30Add long error code for error E0226Julien Philippon-1/+1
2020-03-28Rollup merge of #70418 - PankajChaudhary5:master, r=Dylan-DPCDylan DPC-1/+1
Add long error explanation for E0703 Add long explanation for the E0703 error code Part of #61137 r? @GuillaumeGomez
2020-03-26Rename asm! to llvm_asm!Amanieu d'Antras-1/+1
asm! is left as a wrapper around llvm_asm! to maintain compatibility.
2020-03-26make a custom error for overlap with negative implsNiko Matsakis-0/+1