rust/tests/ui/empty
Noratrieb 01503d0c1e Avoid extra path trimming in method not found error
Method errors have an extra check that force trim paths whenever the
normal string is longer than 10 characters, which can be quite unhelpful
when multiple items have the same name (for example an `Error`).

A user reported this force trimming as being quite unhelpful when they
had a method error where the precise path of the `Error` mattered.

The code uses `tcx.short_string` already to get the normal path, which
tries to be clever around trimming paths if necessary, so there is no
reason for this extra force trimming.
2025-05-24 23:31:07 +02:00
..
auxiliary
empty-attributes.rs
empty-attributes.stderr
empty-comment.rs
empty-comment.stderr
empty-linkname.rs
empty-linkname.stderr
empty-macro-use.rs
empty-macro-use.stderr
empty-never-array.rs compiletest: Make diagnostic kind mandatory on line annotations 2025-04-30 10:44:24 +03:00
empty-never-array.stderr compiletest: Make diagnostic kind mandatory on line annotations 2025-04-30 10:44:24 +03:00
empty-struct-braces-expr.rs
empty-struct-braces-expr.stderr Avoid extra path trimming in method not found error 2025-05-24 23:31:07 +02:00
empty-struct-braces-pat-1.rs
empty-struct-braces-pat-1.stderr
empty-struct-braces-pat-2.rs
empty-struct-braces-pat-2.stderr Show diff suggestion format on verbose replacement 2025-02-10 20:21:39 +00:00
empty-struct-braces-pat-3.rs
empty-struct-braces-pat-3.stderr Show diff suggestion format on verbose replacement 2025-02-10 20:21:39 +00:00
empty-struct-tuple-pat.rs
empty-struct-tuple-pat.stderr Trim suggestion parts to the subset that is purely additive 2025-02-14 00:44:10 -08:00
empty-struct-unit-expr.rs
empty-struct-unit-expr.stderr
empty-struct-unit-pat.rs
empty-struct-unit-pat.stderr Show diff suggestion format on verbose replacement 2025-02-10 20:21:39 +00:00
issue-37026.rs
issue-37026.stderr
no-link.rs