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 RFC 2383: Stabilize `lint_reasons` 🎉 2024-06-25 17:22:22 +02:00
empty-attributes.stderr RFC 2383: Stabilize `lint_reasons` 🎉 2024-06-25 17:22:22 +02:00
empty-comment.rs
empty-comment.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
empty-linkname.rs
empty-linkname.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
empty-macro-use.rs [AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives 2024-02-16 20:02:50 +00:00
empty-macro-use.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
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 [AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives 2024-02-16 20:02:50 +00:00
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 [AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives 2024-02-16 20:02:50 +00:00
empty-struct-braces-pat-1.stderr Suggest the struct variant pattern syntax on usage of unit variant pattern for a struct variant 2024-08-28 22:55:57 +09:00
empty-struct-braces-pat-2.rs [AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives 2024-02-16 20:02:50 +00:00
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 [AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives 2024-02-16 20:02:50 +00:00
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 [AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives 2024-02-16 20:02:50 +00:00
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 [AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives 2024-02-16 20:02:50 +00:00
empty-struct-unit-expr.stderr
empty-struct-unit-pat.rs [AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives 2024-02-16 20:02:50 +00:00
empty-struct-unit-pat.stderr Show diff suggestion format on verbose replacement 2025-02-10 20:21:39 +00:00
issue-37026.rs [AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives 2024-02-16 20:02:50 +00:00
issue-37026.stderr
no-link.rs [AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives 2024-02-16 20:02:50 +00:00