about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2025-08-23 20:54:02 +0000
committerMichael Goulet <michael@errs.io>2025-08-23 22:11:43 +0000
commite4557f0ea4f7e015b3108dc509bce562f64528bc (patch)
treea61c489f78764e258dd646a7f8a458f33fd8e1e7 /src
parent6d6a08cf590ec26296447b8d2cf2329bb64c303a (diff)
downloadrust-e4557f0ea4f7e015b3108dc509bce562f64528bc.tar.gz
rust-e4557f0ea4f7e015b3108dc509bce562f64528bc.zip
Use unnamed lifetime spans as primary spans for MISMATCHED_LIFETIME_SYNTAXES
Diffstat (limited to 'src')
-rw-r--r--src/tools/clippy/tests/ui/ptr_arg.stderr4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tools/clippy/tests/ui/ptr_arg.stderr b/src/tools/clippy/tests/ui/ptr_arg.stderr
index 87235057349..f32e83d8b81 100644
--- a/src/tools/clippy/tests/ui/ptr_arg.stderr
+++ b/src/tools/clippy/tests/ui/ptr_arg.stderr
@@ -268,10 +268,10 @@ LL |     fn barbar(_x: &mut Vec<u32>, y: &mut String) {
    |                                     ^^^^^^^^^^^ help: change this to: `&mut str`
 
 error: eliding a lifetime that's named elsewhere is confusing
-  --> tests/ui/ptr_arg.rs:314:36
+  --> tests/ui/ptr_arg.rs:314:56
    |
 LL |     fn cow_good_ret_ty<'a>(input: &'a Cow<'a, str>) -> &str {
-   |                                    ^^     ^^           ---- the same lifetime is elided here
+   |                                    --     --           ^^^^ the same lifetime is elided here
    |                                    |      |
    |                                    |      the lifetime is named here
    |                                    the lifetime is named here