about summary refs log tree commit diff
path: root/src/librustc_error_codes
AgeCommit message (Collapse)AuthorLines
2020-04-03Clean up E0502 explanationGuillaume Gomez-2/+1
2020-04-01Rollup merge of #70649 - GuillaumeGomez:cleanup-e0468, r=Dylan-DPCDylan DPC-2/+2
clean up E0468 explanation r? @Dylan-DPC
2020-04-01clean up E0468 explanationGuillaume Gomez-2/+2
2020-03-31Rollup merge of #70606 - GuillaumeGomez:cleanup-e0466, r=Dylan-DPCDylan DPC-1/+1
Clean up E0466 explanation r? @Dylan-DPC
2020-03-31Rollup merge of #70562 - lcnr:const-arr_len, r=CentrilMazdak Farrokhzad-2/+2
infer array len from pattern closes #70529 This still errors in the following case ```rust #![feature(const_generics)] fn arr<const N: usize>() -> [u8; N] { todo!() } fn main() { match arr() { [5, ..] => (), //~^ ERROR cannot pattern-match on an array without a fixed length [_, _] => (), } } ``` Considering that this should be rare and is harder to implement I would merge this PR without *fixing* the above.
2020-03-31Rollup merge of #70548 - Ersikan:master, r=GuillaumeGomezMazdak Farrokhzad-1/+22
Add long error code for error E0226 Added a long description message for error E0226, which previously did not exist. As requested in issue #61137 r? @GuillaumeGomez
2020-03-31Clean up E0466 explanationGuillaume Gomez-1/+1
2020-03-30update tests, improve variable namesBastian Kauschke-2/+2
2020-03-30Correct long error message according to reviewsJulien Philippon-2/+3
2020-03-30rustc -> rustc_middle part 1Mazdak Farrokhzad-1/+1
2020-03-30Add long error code for error E0226Julien Philippon-1/+21
2020-03-29Auto merge of #70370 - petrochenkov:nosmatch, r=Centrilbors-1/+1
Remove attribute `#[structural_match]` and any references to it A small remaining part of https://github.com/rust-lang/rust/issues/63438.
2020-03-28Rollup merge of #70418 - PankajChaudhary5:master, r=Dylan-DPCDylan DPC-1/+18
Add long error explanation for E0703 Add long explanation for the E0703 error code Part of #61137 r? @GuillaumeGomez
2020-03-27Refactor changesPankajChaudhary5-2/+0
2020-03-27Rollup merge of #70470 - GuillaumeGomez:cleanup-e0463, r=Dylan-DPCDylan DPC-1/+3
Clean up E0463 explanation r? @Dylan-DPC
2020-03-27Rollup merge of #69887 - GuillaumeGomez:cleanup-e0404, r=Dylan-DPCDylan DPC-5/+5
clean up E0404 explanation r? @Dylan-DPC
2020-03-27clean up E0404 explanationGuillaume Gomez-5/+5
2020-03-27Refactor changesPankajChaudhary5-3/+3
2020-03-27Clean up E0463 explanationGuillaume Gomez-1/+3
2020-03-27fix suggested changesPankajChaudhary5-5/+6
2020-03-27Auto merge of #68404 - Amanieu:llvm-asm, r=estebankbors-23/+25
Rename asm! to llvm_asm! As per https://github.com/rust-lang/rfcs/pull/2843, this PR renames `asm!` to `llvm_asm!`. It also renames the compiler's internal `InlineAsm` data structures to `LlvmInlineAsm` in preparation for the new `asm!` functionality specified in https://github.com/rust-lang/rfcs/pull/2850. This PR doesn't actually deprecate `asm!` yet, it just makes it redirect to `llvm_asm!`. This is necessary because we first need to update the submodules (in particular stdarch) to use `llvm_asm!`.
2020-03-26Rollup merge of #70429 - GuillaumeGomez:cleanup-e0459, r=Dylan-DPCDylan DPC-1/+3
Clean up E0459 explanation r? @Dylan-DPC
2020-03-26Update tests to use llvm_asm!Amanieu d'Antras-1/+1
2020-03-26Rename asm! to llvm_asm!Amanieu d'Antras-22/+24
asm! is left as a wrapper around llvm_asm! to maintain compatibility.
2020-03-26Clean up E0459 explanationGuillaume Gomez-1/+3
2020-03-26make a custom error for overlap with negative implsNiko Matsakis-0/+13
2020-03-26permit negative impls for non-auto traitsNiko Matsakis-1/+11
2020-03-26Refactor codePankajChaudhary5-1/+0
2020-03-26Add long error explanation for E0703PankajChaudhary5-1/+20
2020-03-25Rollup merge of #70406 - GuillaumeGomez:cleanup-e0458, r=Dylan-DPCDylan DPC-1/+3
Clean up E0458 explanation r? @Dylan-DPC
2020-03-25Clean up E0458 explanationGuillaume Gomez-1/+3
2020-03-25Rollup merge of #70352 - bishtpawan:doc/61137-add-long-error-code-e0710, ↵Dylan DPC-1/+35
r=Dylan-DPC Add long error explanation for E0710 Add long explanation for the E0710 error code Part of #61137 r? @GuillaumeGomez
2020-03-24Rollup merge of #70355 - GuillaumeGomez:cleanup-e0454, r=Dylan-DPCMazdak Farrokhzad-1/+3
Clean up E0454 r? @Dylan-DPC
2020-03-24Rollup merge of #70023 - GuillaumeGomez:cleanup-e0436, r=CentrilMazdak Farrokhzad-3/+4
clean up E0436 explanation r? @Dylan-DPC
2020-03-24Remove attribute `#[structural_match]` and any references to itVadim Petrochenkov-1/+1
2020-03-24Remove unknown lint from deny attributebishtpawan-18/+0
2020-03-24Clean up E0454Guillaume Gomez-1/+3
2020-03-24Add explanation for inner attributebishtpawan-7/+35
2020-03-24Update tools_lintsbishtpawan-2/+2
2020-03-24Refactor changesbishtpawan-1/+0
2020-03-24Add long error explanation for E0710 #61137bishtpawan-1/+26
2020-03-24Rollup merge of #70309 - GuillaumeGomez:cleanup-e0452, r=Dylan-DPCMazdak Farrokhzad-1/+3
Clean up E0452 explanation r? @Dylan-DPC
2020-03-24Rollup merge of #70242 - DeeDeeG:improve-e0308, r=Dylan-DPCMazdak Farrokhzad-4/+4
Improve E0308 error message wording Hi folks, I made [a post on Reddit](https://old.reddit.com/r/rust/comments/fmi11x/consider_linting_rusts_documentationerror_text/) about how (IMO) the docs/error messages can be a bit intimidating, one thing led to another, and I was encouraged to submit a Pull Request if I felt I could re-phrase the error message that I used as an example. So that's this Pull Request. Open to any feedback or style changes, and I understand this is subjective. (On another note: I am happy to see [this message was recently improved](https://github.com/rust-lang/rust/pull/69139) in `master`, so it's already better than it is in stable Rust 1.42.0.) Ideally the last sentence could be split into at least two: [sentence explaining the inferred type.] [Sentence explaining explicit type.] [Sentence that summarizes that "this is bad," and why.] But I'm not sure how to do so; I'm wary of writing something that turns out to be technically incorrect.
2020-03-23Clean up E0452 explanationGuillaume Gomez-1/+3
2020-03-23Rollup merge of #70270 - GuillaumeGomez:cleanup-e0449, r=Dylan-DPCMazdak Farrokhzad-2/+3
Clean up E0449 explanation r? @Dylan-DPC
2020-03-22Allow #[track_caller] in traits.Adam Perry-41/+4
The codegen implementation already works for this, so we're: * propagating track_caller attr from trait def to impl * relaxing errors * adding tests Approved in a recent lang team meeting: https://github.com/rust-lang/lang-team/blob/master/minutes/2020-01-09.md
2020-03-22Clean up E0449 explanationGuillaume Gomez-2/+3
2020-03-21Improve E0308 error message wordingDeeDeeG-4/+4
2020-03-21Add explanation message for E0224Nixon Enraght-Moony-1/+16
2020-03-21Rollup merge of #70188 - GuillaumeGomez:cleanup-e0439, r=Dylan-DPCMazdak Farrokhzad-2/+3
Clean up E0439 explanation r? @Dylan-DPC