about summary refs log tree commit diff
path: root/tests/ui/mut
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2023-06-22 20:30:23 +0000
committerMichael Goulet <michael@errs.io>2023-07-10 20:09:26 +0000
commitfe870424a75aeb4727f9516808b2f5735d014ab6 (patch)
tree07c9822dad2b517f4ca63e325f7a03052be6c11f /tests/ui/mut
parent05b82e551e781154ad2af8a72f34712e97206859 (diff)
downloadrust-fe870424a75aeb4727f9516808b2f5735d014ab6.tar.gz
rust-fe870424a75aeb4727f9516808b2f5735d014ab6.zip
Do not set up wrong span for adjustments
Diffstat (limited to 'tests/ui/mut')
-rw-r--r--tests/ui/mut/mut-cant-alias.stderr2
-rw-r--r--tests/ui/mut/mut-suggestion.stderr4
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/ui/mut/mut-cant-alias.stderr b/tests/ui/mut/mut-cant-alias.stderr
index 6046c076f2e..d56e45db13d 100644
--- a/tests/ui/mut/mut-cant-alias.stderr
+++ b/tests/ui/mut/mut-cant-alias.stderr
@@ -6,7 +6,7 @@ LL |     let b1 = &mut *b;
 LL |     let b2 = &mut *b;
    |                    ^ second mutable borrow occurs here
 LL |     b1.use_mut();
-   |     ------------ first borrow later used here
+   |     -- first borrow later used here
 
 error: aborting due to previous error
 
diff --git a/tests/ui/mut/mut-suggestion.stderr b/tests/ui/mut/mut-suggestion.stderr
index d89c8b41304..1521ae4c5ea 100644
--- a/tests/ui/mut/mut-suggestion.stderr
+++ b/tests/ui/mut/mut-suggestion.stderr
@@ -2,7 +2,7 @@ error[E0596]: cannot borrow `arg` as mutable, as it is not declared as mutable
   --> $DIR/mut-suggestion.rs:12:5
    |
 LL |     arg.mutate();
-   |     ^^^^^^^^^^^^ cannot borrow as mutable
+   |     ^^^ cannot borrow as mutable
    |
 help: consider changing this to be mutable
    |
@@ -13,7 +13,7 @@ error[E0596]: cannot borrow `local` as mutable, as it is not declared as mutable
   --> $DIR/mut-suggestion.rs:20:5
    |
 LL |     local.mutate();
-   |     ^^^^^^^^^^^^^^ cannot borrow as mutable
+   |     ^^^^^ cannot borrow as mutable
    |
 help: consider changing this to be mutable
    |