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> {
22
22
fn main ( ) {
23
23
let foo = & Foo ( 1u32 ) ;
24
24
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
26
26
27
27
let bar = & Bar ( 1u32 ) ;
28
28
let bar_clone: Bar < u32 > = bar. clone ( ) ;
29
29
30
30
let deref = & & DerefExample ( 12u32 ) ;
31
31
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
33
33
34
34
let deref = & DerefExample ( 12u32 ) ;
35
35
let derefed: & u32 = deref. deref ( ) ;
36
36
37
37
let a = & & Foo ( 1u32 ) ;
38
38
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
40
40
}
41
41
42
42
fn generic < T > ( foo : & Foo < T > ) {
@@ -45,5 +45,5 @@ fn generic<T>(foo: &Foo<T>) {
45
45
46
46
fn non_generic ( foo : & Foo < u32 > ) {
47
47
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
49
49
}
You can’t perform that action at this time.
0 commit comments