about summary refs log tree commit diff
path: root/tests/ui/nll
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2025-02-20 23:05:38 +0000
committerMichael Goulet <michael@errs.io>2025-02-21 00:41:17 +0000
commit0a7ab1d6df4a2cfac819b0bada85b9142ac8ba26 (patch)
tree40adab0be475b174d0fa8d3041089a10f5b1b440 /tests/ui/nll
parent28b83ee59698ae069f5355b8e03f976406f410f5 (diff)
downloadrust-0a7ab1d6df4a2cfac819b0bada85b9142ac8ba26.tar.gz
rust-0a7ab1d6df4a2cfac819b0bada85b9142ac8ba26.zip
More sophisticated span trimming
Diffstat (limited to 'tests/ui/nll')
-rw-r--r--tests/ui/nll/borrowck-thread-local-static-mut-borrow-outlives-fn.stderr5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/ui/nll/borrowck-thread-local-static-mut-borrow-outlives-fn.stderr b/tests/ui/nll/borrowck-thread-local-static-mut-borrow-outlives-fn.stderr
index 7e11b23d681..9dbd6769693 100644
--- a/tests/ui/nll/borrowck-thread-local-static-mut-borrow-outlives-fn.stderr
+++ b/tests/ui/nll/borrowck-thread-local-static-mut-borrow-outlives-fn.stderr
@@ -9,9 +9,8 @@ LL |         S1 { a: unsafe { &mut X1 } }
    = note: `#[warn(static_mut_refs)]` on by default
 help: use `&raw mut` instead to create a raw pointer
    |
-LL -         S1 { a: unsafe { &mut X1 } }
-LL +         S1 { a: unsafe { &raw mut X1 } }
-   |
+LL |         S1 { a: unsafe { &raw mut X1 } }
+   |                           +++
 
 warning: 1 warning emitted