about summary refs log tree commit diff
path: root/tests/ui/where-clauses
AgeCommit message (Collapse)AuthorLines
2025-08-22On E0277, point at type that doesn't implement boundEsteban Küber-1/+6
When encountering an unmet trait bound, point at local type that doesn't implement the trait: ``` error[E0277]: the trait bound `Bar<T>: Foo` is not satisfied --> $DIR/issue-64855.rs:9:19 | LL | pub struct Bar<T>(<Self as Foo>::Type) where Self: ; | ^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound | help: the trait `Foo` is not implemented for `Bar<T>` --> $DIR/issue-64855.rs:9:1 | LL | pub struct Bar<T>(<Self as Foo>::Type) where Self: ; | ^^^^^^^^^^^^^^^^^ ```
2025-08-21split up context.rsJana Dönszelmann-2/+2
2025-08-21refactor target checking, move out of context.rs and rename MaybeWarn to PolicyJana Dönszelmann-4/+4
2025-08-19bless tests with new lint messagesKarol Zwolak-2/+2
2025-08-16Fix deprecation attribute on foreign statics & typesJonathan Brouwer-2/+2
2025-08-14Update uitestsJonathan Brouwer-60/+60
Signed-off-by: Jonathan Brouwer <jonathantbrouwer@gmail.com>
2025-07-20Consider param-env for fast pathMichael Goulet-7/+24
2025-07-04Remove Symbol for Named LateParam/Bound variantsMichael Goulet-2/+2
2025-05-09move (and remove) impl Trait testslcnr-0/+26
2025-03-01Implment `#[cfg]` and `#[cfg_attr]` in `where` clausesFrank King-0/+953
2025-02-03Check Sizedness of return type in WFMichael Goulet-3/+11
2025-01-22Don't pick `T: FnPtr` nested goalsBoxy-11/+78
2024-12-07Use trait name instead of full constraint in suggestion messageEsteban Küber-2/+2
``` help: consider restricting type parameter `T` with traits `Copy` and `Trait` | LL | fn duplicate_custom<T: Copy + Trait>(t: S<T>) -> (S<T>, S<T>) { | ++++++++++++++ ``` ``` help: consider restricting type parameter `V` with trait `Copy` | LL | fn index<'a, K, V: std::marker::Copy>(map: &'a HashMap<K, V>, k: K) -> &'a V { | +++++++++++++++++++ ```
2024-12-07reword trait bound suggestion message to include the boundsEsteban Küber-2/+2
2024-11-26tests: remove `//@ pretty-expanded` usages许杰友 Jieyou Xu (Joe)-8/+2
Done with ```bash sd '//@ pretty-expanded.*\n' '' tests/ui/**/*.rs ``` and ``` sd '//@pretty-expanded.*\n' '' tests/ui/**/*.rs ```
2024-11-02On long E0277 primary span label, move it to a `help`Esteban Küber-1/+2
Long span labels don't read well.
2024-06-19Taint infcx when reporting errorsOli Scherer-0/+38
2024-06-03Make WHERE_CLAUSES_OBJECT_SAFETY a regular object safety violationMichael Goulet-3/+2
2024-03-18update region debug formattingBoxy-2/+2
2024-02-29Detect empty leading where-clauses on type aliasesLeón Orell Valerian Liehr-4/+37
2024-02-16[AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives许杰友 Jieyou Xu (Joe)-30/+30
2024-02-07Update testsr0cky-9/+39
2024-01-24Deduplicate more sized errors on call exprsEsteban Küber-2/+2
Change the implicit `Sized` `Obligation` `Span` for call expressions to include the whole expression. This aids the existing deduplication machinery to reduce the number of errors caused by a single unsized expression.
2023-12-19rename to verbose-internalsjyn-1/+1
2023-11-24Show number in error message even for one errorNilstrieb-11/+11
Co-authored-by: Adrian <adrian.iosdev@gmail.com>
2023-11-13rename `ReLateBound` to `ReBound`lcnr-2/+2
other changes: - `Region::new_late_bound` -> `Region::new_bound` - `Region::is_late_bound` -> `Region::is_bound`
2023-09-10Point out if a local trait has no implementationsMichael Goulet-0/+15
2023-08-15Clean up some bad ui testing annotationsMichael Goulet-1/+0
2023-08-10Unlock trailing where-clauses for lazy type aliasesLeón Orell Valerian Liehr-2/+4
2023-07-11Lint against misplaced where-clauses on assoc tys in traitsLeón Orell Valerian Liehr-0/+186
2023-05-24Move testsCaio-0/+37
2023-04-12Tweak output for 'add line' suggestionEsteban Küber-2/+4
2023-04-05Bless testsThom Chiovoloni-2/+2
2023-02-21Specify what 'this' actually isMichael Goulet-2/+2
2023-02-03Autotrait bounds on dyn-safe trait methodsDavid Tolnay-0/+38
2023-01-11Filter impl and where-clause candidates that reference errorsMichael Goulet-0/+23
2023-01-11Move /src/test to /testsAlbert Larsan-0/+570