44use std:: ptr:: NonNull ;
55
66fn foo ( s : & mut Vec < u32 > , b : & u32 , x : & mut u32 ) {
7- //~^ ERROR: this argument is a mutable reference, but not used mutably
7+ //~^ ERROR: this argument is a mutable reference, but never used mutably
88 * x += * b + s. len ( ) as u32 ;
99}
1010
@@ -29,7 +29,7 @@ fn foo5(s: &mut Vec<u32>) {
2929}
3030
3131fn foo6 ( s : & mut Vec < u32 > ) {
32- //~^ ERROR: this argument is a mutable reference, but not used mutably
32+ //~^ ERROR: this argument is a mutable reference, but never used mutably
3333 non_mut_ref ( s) ;
3434}
3535
@@ -42,12 +42,12 @@ impl Bar {
4242 fn bar ( & mut self ) { }
4343
4444 fn mushroom ( & self , vec : & mut Vec < i32 > ) -> usize {
45- //~^ ERROR: this argument is a mutable reference, but not used mutably
45+ //~^ ERROR: this argument is a mutable reference, but never used mutably
4646 vec. len ( )
4747 }
4848
4949 fn badger ( & mut self , vec : & mut Vec < i32 > ) -> usize {
50- //~^ ERROR: this argument is a mutable reference, but not used mutably
50+ //~^ ERROR: this argument is a mutable reference, but never used mutably
5151 vec. len ( )
5252 }
5353}
@@ -124,35 +124,35 @@ async fn f7(x: &mut i32, y: i32, z: &mut i32, a: i32) {
124124}
125125
126126async fn a1 ( x : & mut i32 ) {
127- //~^ ERROR: this argument is a mutable reference, but not used mutably
127+ //~^ ERROR: this argument is a mutable reference, but never used mutably
128128 println ! ( "{:?}" , x) ;
129129}
130130async fn a2 ( x : & mut i32 , y : String ) {
131- //~^ ERROR: this argument is a mutable reference, but not used mutably
131+ //~^ ERROR: this argument is a mutable reference, but never used mutably
132132 println ! ( "{:?}" , x) ;
133133}
134134async fn a3 ( x : & mut i32 , y : String , z : String ) {
135- //~^ ERROR: this argument is a mutable reference, but not used mutably
135+ //~^ ERROR: this argument is a mutable reference, but never used mutably
136136 println ! ( "{:?}" , x) ;
137137}
138138async fn a4 ( x : & mut i32 , y : i32 ) {
139- //~^ ERROR: this argument is a mutable reference, but not used mutably
139+ //~^ ERROR: this argument is a mutable reference, but never used mutably
140140 println ! ( "{:?}" , x) ;
141141}
142142async fn a5 ( x : i32 , y : & mut i32 ) {
143- //~^ ERROR: this argument is a mutable reference, but not used mutably
143+ //~^ ERROR: this argument is a mutable reference, but never used mutably
144144 println ! ( "{:?}" , x) ;
145145}
146146async fn a6 ( x : i32 , y : & mut i32 ) {
147- //~^ ERROR: this argument is a mutable reference, but not used mutably
147+ //~^ ERROR: this argument is a mutable reference, but never used mutably
148148 println ! ( "{:?}" , x) ;
149149}
150150async fn a7 ( x : i32 , y : i32 , z : & mut i32 ) {
151- //~^ ERROR: this argument is a mutable reference, but not used mutably
151+ //~^ ERROR: this argument is a mutable reference, but never used mutably
152152 println ! ( "{:?}" , z) ;
153153}
154154async fn a8 ( x : i32 , a : & mut i32 , y : i32 , z : & mut i32 ) {
155- //~^ ERROR: this argument is a mutable reference, but not used mutably
155+ //~^ ERROR: this argument is a mutable reference, but never used mutably
156156 println ! ( "{:?}" , z) ;
157157}
158158
@@ -186,14 +186,14 @@ fn lint_attr(s: &mut u32) {}
186186
187187#[ cfg( not( feature = "a" ) ) ]
188188fn cfg_warn ( s : & mut u32 ) { }
189- //~^ ERROR: this argument is a mutable reference, but not used mutably
190- //~| NOTE: this is cfg-gated and may require further changes
189+ //~^ ERROR: this argument is a mutable reference, but never used mutably
190+ //~| NOTE: this is ` cfg` -gated and may require further changes
191191
192192#[ cfg( not( feature = "a" ) ) ]
193193mod foo {
194194 fn cfg_warn ( s : & mut u32 ) { }
195- //~^ ERROR: this argument is a mutable reference, but not used mutably
196- //~| NOTE: this is cfg-gated and may require further changes
195+ //~^ ERROR: this argument is a mutable reference, but never used mutably
196+ //~| NOTE: this is ` cfg` -gated and may require further changes
197197}
198198
199199fn main ( ) {
0 commit comments