about summary refs log tree commit diff
path: root/compiler/rustc_mir_transform/src/coverage/counters.rs
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2025-05-25 15:11:48 +0200
committerGitHub <noreply@github.com>2025-05-25 15:11:48 +0200
commit9460f64362271b4d9f32abd554b5fb9648c8f868 (patch)
treea6ebd35daf56421a7d3b7f0382be7a27a0c3d882 /compiler/rustc_mir_transform/src/coverage/counters.rs
parentc747b7da6cd4d7e9eee1e28e8fd20537a6218abd (diff)
parent01503d0c1e43a23de92ad1577cbdceb7afe47dab (diff)
downloadrust-9460f64362271b4d9f32abd554b5fb9648c8f868.tar.gz
rust-9460f64362271b4d9f32abd554b5fb9648c8f868.zip
Rollup merge of #141512 - Noratrieb:stop-trimming-this-much, r=compiler-errors
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.
Diffstat (limited to 'compiler/rustc_mir_transform/src/coverage/counters.rs')
0 files changed, 0 insertions, 0 deletions