about summary refs log tree commit diff
path: root/tests/ui/generics
AgeCommit message (Collapse)AuthorLines
2023-12-01Tweak unclosed generics errorsEsteban Küber-0/+15
Remove unnecessary span label for parse errors that already have a suggestion. Provide structured suggestion to close generics in more cases.
2023-11-30generic_const_exprs: suggest to add the feature, not use itRalf Jung-1/+1
2023-11-24Show number in error message even for one errorNilstrieb-20/+20
Co-authored-by: Adrian <adrian.iosdev@gmail.com>
2023-09-22diagnostics: simpler 83556 handling by bailing outMichael Howell-12/+1
2023-09-21diagnostics: avoid mismatch between variance index and hir genericMichael Howell-0/+23
This happens because variances are constructed from ty generics, and ty generics are always constructed with lifetimes first. See compiler/rustc_hir_analysis/src/collect/generics_of.rs:248-269 Fixes #83556
2023-09-10Generalize E0401León Orell Valerian Liehr-6/+6
2023-07-27Update the minimum external LLVM to 15Josh Stone-1/+0
2023-07-21Revert "Auto merge of #113166 - moulins:ref-niches-initial, r=oli-obk"David Tolnay-1/+0
This reverts commit 557359f92512ca88b62a602ebda291f17a953002, reversing changes made to 1e6c09a803fd543a98bfbe1624d697a55300a786.
2023-07-21add `naive_layout_of` queryMoulins-0/+1
2023-06-30Use structured suggestion when telling user about `for<'a>`Esteban Küber-4/+3
``` error[E0637]: `&` without an explicit lifetime name cannot be used here --> $DIR/E0637.rs:13:13 | LL | T: Into<&u32>, | ^ explicit lifetime name needed here | help: consider introducing a higher-ranked lifetime here | LL | T: for<'a> Into<&'a u32>, | +++++++ ++ ```
2023-06-12Adjust UI tests for `unit_bindings`许杰友 Jieyou Xu (Joe)-1/+1
- Either explicitly annotate `let x: () = expr;` where `x` has unit type, or remove the unit binding to leave only `expr;` instead. - Fix disjoint-capture-in-same-closure test
2023-05-01soften the wording for removing type ascriptionyukang-1/+1
2023-05-01Rip it outNilstrieb-7/+8
My type ascription Oh rip it out Ah If you think we live too much then You can sacrifice diagnostics Don't mix your garbage Into my syntax So many weird hacks keep diagnostics alive Yet I don't even step outside So many bad diagnostics keep tyasc alive Yet tyasc doesn't even bother to survive!
2023-04-22Encode lifetime param spans tooMichael Goulet-0/+48
2023-04-15add UI test for #79605SparkyPotato-0/+20
2023-04-02Move some UI tests into subdirectoriesjyn-0/+28
to avoid going over the existing limit now that the ui-fulldeps tests have been moved to ui.
2023-02-23diagnostics: remove inconsistent English article "this" from E0107Michael Howell-128/+128
Consider `tests/ui/const-generics/generic_const_exprs/issue-102768.stderr`, the error message where it gives additional notes about where the associated type is defined, and how the dead code lint doesn't have an article, like in `tests/ui/lint/dead-code/issue-85255.stderr`. They don't have articles, so it seems unnecessary to have one here.
2023-02-09Introduce `ReError`Esteban Küber-16/+3
CC #69314
2023-01-30Modify primary span label for E0308Esteban Küber-12/+12
The previous output was unintuitive to users.
2023-01-15make error emitted on `impl &Trait` nicerEzra Shaw-0/+117
2023-01-11Move /src/test to /testsAlbert Larsan-0/+3556