about summary refs log tree commit diff
path: root/tests/ui/statics
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2025-02-13 03:21:25 +0000
committerJubilee Young <workingjubilee@gmail.com>2025-02-14 00:44:10 -0800
commit6d71251cf9e40326461f90f8ff9a7024706aea87 (patch)
tree9632ff91f2996a68f9d9c4ebdb3f3ebf8cfa64f4 /tests/ui/statics
parentf6406dfd4efceb6f713e503aecda587304135ed9 (diff)
downloadrust-6d71251cf9e40326461f90f8ff9a7024706aea87.tar.gz
rust-6d71251cf9e40326461f90f8ff9a7024706aea87.zip
Trim suggestion parts to the subset that is purely additive
Diffstat (limited to 'tests/ui/statics')
-rw-r--r--tests/ui/statics/issue-15261.stderr2
-rw-r--r--tests/ui/statics/static-mut-shared-parens.stderr2
-rw-r--r--tests/ui/statics/static-mut-xc.stderr2
-rw-r--r--tests/ui/statics/static-recursive.stderr2
4 files changed, 4 insertions, 4 deletions
diff --git a/tests/ui/statics/issue-15261.stderr b/tests/ui/statics/issue-15261.stderr
index 4067d151de3..7e6aebcbb1f 100644
--- a/tests/ui/statics/issue-15261.stderr
+++ b/tests/ui/statics/issue-15261.stderr
@@ -10,7 +10,7 @@ LL | static n: &'static usize = unsafe { &n_mut };
 help: use `&raw const` instead to create a raw pointer
    |
 LL | static n: &'static usize = unsafe { &raw const n_mut };
-   |                                     ~~~~~~~~~~
+   |                                      +++++++++
 
 warning: 1 warning emitted
 
diff --git a/tests/ui/statics/static-mut-shared-parens.stderr b/tests/ui/statics/static-mut-shared-parens.stderr
index ad6ad68c315..3d4b55909cd 100644
--- a/tests/ui/statics/static-mut-shared-parens.stderr
+++ b/tests/ui/statics/static-mut-shared-parens.stderr
@@ -10,7 +10,7 @@ LL |     let _ = unsafe { (&TEST) as *const usize };
 help: use `&raw const` instead to create a raw pointer
    |
 LL |     let _ = unsafe { (&raw const TEST) as *const usize };
-   |                       ~~~~~~~~~~
+   |                        +++++++++
 
 warning: creating a mutable reference to mutable static is discouraged
   --> $DIR/static-mut-shared-parens.rs:11:22
diff --git a/tests/ui/statics/static-mut-xc.stderr b/tests/ui/statics/static-mut-xc.stderr
index 77ce49b883f..48cac28a6eb 100644
--- a/tests/ui/statics/static-mut-xc.stderr
+++ b/tests/ui/statics/static-mut-xc.stderr
@@ -55,7 +55,7 @@ LL |     static_bound(&static_mut_xc::a);
 help: use `&raw const` instead to create a raw pointer
    |
 LL |     static_bound(&raw const static_mut_xc::a);
-   |                  ~~~~~~~~~~
+   |                   +++++++++
 
 warning: creating a mutable reference to mutable static is discouraged
   --> $DIR/static-mut-xc.rs:35:22
diff --git a/tests/ui/statics/static-recursive.stderr b/tests/ui/statics/static-recursive.stderr
index f2dd5b8a6cf..039934dfc69 100644
--- a/tests/ui/statics/static-recursive.stderr
+++ b/tests/ui/statics/static-recursive.stderr
@@ -10,7 +10,7 @@ LL | static mut S: *const u8 = unsafe { &S as *const *const u8 as *const u8 };
 help: use `&raw const` instead to create a raw pointer
    |
 LL | static mut S: *const u8 = unsafe { &raw const S as *const *const u8 as *const u8 };
-   |                                    ~~~~~~~~~~
+   |                                     +++++++++
 
 warning: creating a shared reference to mutable static is discouraged
   --> $DIR/static-recursive.rs:19:20