File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -22,21 +22,21 @@ impl<T> Deref for DerefExample<T> {
2222fn main ( ) {
2323 let foo = & Foo ( 1u32 ) ;
2424 let foo_clone: & Foo < u32 > = foo. clone ( ) ;
25- //~^ WARNING call to `.clone()` on a reference in this situation does nothing [noop_method_call]
25+ //~^ WARNING call to `.clone()` on a reference in this situation does nothing
2626
2727 let bar = & Bar ( 1u32 ) ;
2828 let bar_clone: Bar < u32 > = bar. clone ( ) ;
2929
3030 let deref = & & DerefExample ( 12u32 ) ;
3131 let derefed: & DerefExample < u32 > = deref. deref ( ) ;
32- //~^ WARNING call to `.deref()` on a reference in this situation does nothing [noop_method_call]
32+ //~^ WARNING call to `.deref()` on a reference in this situation does nothing
3333
3434 let deref = & DerefExample ( 12u32 ) ;
3535 let derefed: & u32 = deref. deref ( ) ;
3636
3737 let a = & & Foo ( 1u32 ) ;
3838 let borrowed: & Foo < u32 > = a. borrow ( ) ;
39- //~^ WARNING call to `.borrow()` on a reference in this situation does nothing [noop_method_call]
39+ //~^ WARNING call to `.borrow()` on a reference in this situation does nothing
4040}
4141
4242fn generic < T > ( foo : & Foo < T > ) {
@@ -45,5 +45,5 @@ fn generic<T>(foo: &Foo<T>) {
4545
4646fn non_generic ( foo : & Foo < u32 > ) {
4747 foo. clone ( ) ;
48- //~^ WARNING call to `.clone()` on a reference in this situation does nothing [noop_method_call]
48+ //~^ WARNING call to `.clone()` on a reference in this situation does nothing
4949}
You can’t perform that action at this time.
0 commit comments