rust/tests/ui/functions-closures
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
closure-expected-type
call-closure-from-overloaded-op.rs
capture-clauses-boxed-closures.rs
capture-clauses-unboxed-closures.rs
clone-closure.rs
closure-bounds-can-capture-chan.rs tests: remove `//@ pretty-expanded` usages 2024-11-26 02:50:48 +08:00
closure-immediate.rs
closure-inference.rs
closure-inference2.rs
closure-reform.rs
closure-returning-closure.rs
closure-to-fn-coercion.rs
closure_to_fn_coercion-expected-types.rs
copy-closure.rs
fn-abi.rs tests: remove `//@ pretty-expanded` usages 2024-11-26 02:50:48 +08:00
fn-bare-assign.rs
fn-bare-coerce-to-block.rs tests: remove `//@ pretty-expanded` usages 2024-11-26 02:50:48 +08:00
fn-bare-item.rs
fn-bare-size.rs
fn-bare-spawn.rs
fn-coerce-field.rs tests: remove `//@ pretty-expanded` usages 2024-11-26 02:50:48 +08:00
fn-help-with-err-generic-is-not-function.rs
fn-help-with-err-generic-is-not-function.stderr
fn-help-with-err.rs
fn-help-with-err.stderr Avoid extra path trimming in method not found error 2025-05-24 23:31:07 +02:00
fn-item-type-cast.rs
fn-item-type-coerce.rs tests: remove `//@ pretty-expanded` usages 2024-11-26 02:50:48 +08:00
fn-item-type-zero-sized.rs
fn-lval.rs tests: remove `//@ pretty-expanded` usages 2024-11-26 02:50:48 +08:00
fn-type-infer.rs tests: remove `//@ pretty-expanded` usages 2024-11-26 02:50:48 +08:00
implied-bounds-closure-arg-outlives.rs
nullable-pointer-opt-closures.rs
parallel-codegen-closures.rs
return-from-closure.rs