about summary refs log tree commit diff
path: root/tests/ui/rust-2021
AgeCommit message (Collapse)AuthorLines
2025-09-26Ignore more failing ui tests for GCC backendGuillaume Gomez-0/+1
2025-07-16future-incompat lints: don't link to the nightly edition-guide versiondianne-28/+28
2025-04-08UI tests: add missing diagnostic kinds where possibleVadim Petrochenkov-8/+8
2025-03-14Fix typo in hir lowering lint diagYotam Ofek-6/+6
2025-02-24Remove dyn_compatible_for_dispatchMichael Goulet-12/+12
2025-02-10Show diff suggestion format on verbose replacementEsteban Küber-14/+21
``` error[E0610]: `{integer}` is a primitive type and therefore doesn't have fields --> $DIR/attempted-access-non-fatal.rs:7:15 | LL | let _ = 2.l; | ^ | help: if intended to be a floating point literal, consider adding a `0` after the period and a `f64` suffix | LL - let _ = 2.l; LL + let _ = 2.0f64; | ```
2024-11-27Update tests to use new proc-macro headerEric Huss-11/+3
2024-10-11Don't assume traits used as type are trait objsVulnBandit-0/+224
2024-05-23Detect unused structs which implement private traitsr0cky-1/+3
2024-02-22Deduplicate some logic and reword outputEsteban Küber-1/+1
2024-02-22Tweak wording of "implemented trait isn't imported" suggestionEsteban Küber-1/+1
2024-02-22Consider methods from traits when suggesting typosEsteban Küber-1/+5
Do not provide a structured suggestion when the arguments don't match. ``` error[E0599]: no method named `test_mut` found for struct `Vec<{integer}>` in the current scope --> $DIR/auto-ref-slice-plus-ref.rs:7:7 | LL | a.test_mut(); | ^^^^^^^^ | = help: items from traits can only be used if the trait is implemented and in scope note: `MyIter` defines an item `test_mut`, perhaps you need to implement it --> $DIR/auto-ref-slice-plus-ref.rs:14:1 | LL | trait MyIter { | ^^^^^^^^^^^^ help: there is a method `get_mut` with a similar name, but with different arguments --> $SRC_DIR/core/src/slice/mod.rs:LL:COL ``` Consider methods beyond inherent ones when suggesting typos. ``` error[E0599]: no method named `owned` found for reference `&dyn Foo` in the current scope --> $DIR/object-pointer-types.rs:11:7 | LL | fn owned(self: Box<Self>); | --------- the method might not be found because of this arbitrary self type ... LL | x.owned(); | ^^^^^ help: there is a method with a similar name: `to_owned` ``` Fix #101013.
2024-02-16[AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives许杰友 Jieyou Xu (Joe)-80/+80
2023-11-24Show number in error message even for one errorNilstrieb-1/+1
Co-authored-by: Adrian <adrian.iosdev@gmail.com>
2023-04-12Special-case item attributes in the suggestion outputEsteban Küber-2/+0
2023-04-12Tweak output for 'add line' suggestionEsteban Küber-2/+4
2023-01-11Move /src/test to /testsAlbert Larsan-0/+1744