about summary refs log tree commit diff
path: root/src/test/ui/error-codes
AgeCommit message (Collapse)AuthorLines
2023-01-11Move /src/test to /testsAlbert Larsan-7197/+0
2023-01-09docs/test: add error-docs and UI test for `E0711`Ezra Shaw-0/+33
2023-01-08Rollup merge of #106557 - Ezrashaw:ui-test-fixups-1, r=GuillaumeGomezYuki Okushi-0/+34
Add some UI tests and reword error-code docs Added UI tests for `E0013` and `E0015`. Error code docs for `E0015` were a bit unclear (they referred to all non-const errors in const context, when only non-const functions applied), so I touched them up a bit. I also fixed up some issues in the new `error_codes.rs` tidy check (linked #106341), that I overlooked previously. r? ``@GuillaumeGomez``
2023-01-08doc/test: add UI test and reword docs for `E0013` and `E0015`Ezra Shaw-0/+34
2023-01-07Rollup merge of #105859 - compiler-errors:hr-lifetime-add, r=davidtwcoMatthias Krüger-0/+6
Point out span where we could introduce higher-ranked lifetime Somewhat addresses #105422, but not really. We don't have that much useful information here since we're still in resolution :^( Maybe this suggestion isn't worth it. If the reviewer has an idea how we can get a more succinct binder information for a structured suggestion, it would be appreciated.
2023-01-03Rollup merge of #106353 - lukas-code:reduce-red-lines-in-my-ide, r=wesleywiserMichael Goulet-2/+2
Reduce spans for `unsafe impl` errors Because huge spans aren't great for IDEs. Prior art: https://github.com/rust-lang/rust/pull/103749
2023-01-01Verbose suggestionsEsteban Küber-2/+5
2023-01-01reduce spans for `unsafe impl` errorsLukas Markeffsky-2/+2
2022-12-31Auto merge of #106282 - Ezrashaw:merge-e0465, r=estebankbors-8/+9
refactor: merge error code `E0465` into `E0464` `E0465` is an undocumented and untested error code that is functionally identical to `E0464`. This PR merges `E0465` into `E0464`, thus documenting and testing another error code (#61137). r? `@GuillaumeGomez` (not sure if you want to review this but it's relevant to my other PRs that you have reviewed)
2022-12-31Auto merge of #106245 - estebank:mutability-suggestions, r=jyn514bors-2/+5
Use verbose suggestions for mutability errors
2022-12-31refactor: merge `E0465` into `E0464`Ezra Shaw-8/+9
2022-12-28Use verbose suggestions for mutability errorsEsteban Küber-2/+5
2022-12-29docs/test: add UI test and long-form error docs for `E0519`Ezra Shaw-0/+17
2022-12-27Silence knock-down errors on `[type error]` bindingsEsteban Küber-74/+17
Fix #56036, fix #76589.
2022-12-23docs/test: add UI test and long-form error docs for E0462Ezra Shaw-0/+28
2022-12-20docs/test: add UI test and long-form error docs for `E0377`Ezra Shaw-0/+23
2022-12-18Rollup merge of #105842 - compiler-errors:arg-name-sugg, r=petrochenkovMatthias Krüger-2/+2
print argument name in arg mismatch if possible A bit more contextual than just `/* value */`, at least when the argument is named something related to its context. The UI test cases are... not super convincing, but also they're minimized tests.
2022-12-18higher-ranked lifetime messageMichael Goulet-0/+6
2022-12-17print argument name in arg mismatch if possibleMichael Goulet-2/+2
2022-12-14drive-by: Fix path spansMichael Goulet-4/+4
2022-12-14Rollup merge of #105523 - estebank:suggest-collect-vec, r=compiler-errorsMatthias Krüger-3/+3
Suggest `collect`ing into `Vec<_>` Fix #105510.
2022-12-13Rollup merge of #105500 - oli-obk:unhide_unknown_spans, r=estebankMatthias Krüger-22/+10
Make some diagnostics not depend on the source of what they reference being available r? `@estebank` follow up to https://github.com/rust-lang/rust/pull/104449
2022-12-13Remove unnecessary code and account for turbofish suggestionEsteban Küber-1/+1
Remove previously existing fallback that tried to give a good turbofish suggestion, `need_type_info` is already good enough. Special case `::<Vec<_>` suggestion for `Iterator::collect`.
2022-12-13Suggest `collect`ing into `Vec<_>`Esteban Küber-2/+2
2022-12-13Change pattern borrowing suggestions to be verboseEsteban Küber-3/+15
Synthesize a more accurate span and use verbose suggestion output to make the message clearer.
2022-12-13Avoid rendering empty annotationsOli Scherer-4/+12
2022-12-13Don't emit empty notesOli Scherer-6/+0
2022-12-13Clarify what "this" meansOli Scherer-1/+1
2022-12-13Make some diagnostics not depend on the source of what they reference being ↵Oli Scherer-21/+7
available
2022-11-28Further tweak the type shortening logicEsteban Küber-1/+1
2022-11-28Detect long types in E0308 and write them to diskEsteban Küber-1/+1
On type error with long types, print an abridged type and write the full type to disk. Print the widest possible short type while still fitting in the terminal.
2022-11-21Unreserve braced enum variants in value namespaceVadim Petrochenkov-1/+1
2022-11-18On E0275 do not print out the full type in the msgEsteban Küber-1/+1
When printing requirement overflow errors, do not print out the full type name when it is longer than 50 characters long.
2022-11-18On overflow errors, do not print out long typesEsteban Küber-3/+5
2022-11-10Don't print full paths in overlap errorsMichael Goulet-6/+6
2022-11-08selection failure: recompute applicable implslcnr-5/+29
2022-11-06Auto merge of #99943 - compiler-errors:tuple-trait, r=jackh726bors-3/+9
Implement `std::marker::Tuple`, use it in `extern "rust-call"` and `Fn`-family traits Implements rust-lang/compiler-team#537 I made a few opinionated decisions in this implementation, specifically: 1. Enforcing `extern "rust-call"` on fn items during wfcheck, 2. Enforcing this for all functions (not just ones that have bodies), 3. Gating this `Tuple` marker trait behind its own feature, instead of grouping it into (e.g.) `unboxed_closures`. Still needing to be done: 1. Enforce that `extern "rust-call"` `fn`-ptrs are well-formed only if they have 1/2 args and the second one implements `Tuple`. (Doing this would fix ICE in #66696.) 2. Deny all explicit/user `impl`s of the `Tuple` trait, kinda like `Sized`. 3. Fixing `Tuple` trait built-in impl for chalk, so that chalkification tests are un-broken. Open questions: 1. Does this need t-lang or t-libs signoff? Fixes #99820
2022-11-05Auto merge of #102458 - JohnTitor:stabilize-instruction-set, r=oli-obkbors-13/+5
Stabilize the `instruction_set` feature Closes https://github.com/rust-lang/rust/issues/74727 FCP is complete on https://github.com/rust-lang/rust/issues/74727#issuecomment-1242773253 r? `@pnkfelix` and/or `@nikomatsakis` cc `@xd009642` Signed-off-by: Yuki Okushi <jtitor@2k36.org>
2022-11-05Adjust diagnostics, bless testsMichael Goulet-3/+9
2022-11-05Rollup merge of #103994 - clubby789:break-unlabeled, r=TaKO8KiDylan DPC-2/+2
Specify that `break` cannot be used outside of loop *or* labeled block Closes #103981 `@rustbot` label +A-diagnostics
2022-11-05Specify that `break` cannot be used outside of loop *or* labeled blockclubby789-2/+2
2022-11-02Remove has_errors from FnCtxtMichael Goulet-5/+19
2022-11-01Rollup merge of #103759 - cjgillot:adt-collect, r=davidtwcoDylan DPC-3/+3
Use `adt_def` during type collection. This removes a wrapper which is close to what `adt_def` does.
2022-10-31Use AdtDef to check enum.Camille GILLOT-3/+3
2022-10-30Rollup merge of #97971 - Soveu:varargs, r=jackh726Michael Howell-2/+2
Enable varargs support for calling conventions other than C or cdecl This patch makes it possible to use varargs for calling conventions, which are either based on C (efiapi) or C is based on them (sysv64 and win64). Also pinging ``@phlopsi,`` because he noticed first this oversight when writing a library for UEFI.
2022-10-23Cleanup message and bless testsJack Huey-1/+1
2022-10-23Enable varargs support for calling conventions other than C or cdeclSoveu-2/+2
This patch makes it possible to use varargs for calling conventions, which are either based on C (like efiapi) or C is based on them (for example sysv64 and win64).
2022-10-20Add fix suggestions for E0199, E0200, and E0569Nicolas Barrios-0/+12
2022-10-13Report duplicate definition in impls with overlap check.Camille GILLOT-5/+6
2022-10-11Report duplicate definitions in trait impls during resolution.Camille GILLOT-12/+18