about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRyan Levick <ryan.levick@gmail.com>2021-01-11 19:02:19 +0100
committerRyan Levick <me@ryanlevick.com>2021-03-03 11:22:55 +0100
commit316e9db0cf86852b0150d8f0d475ba9a1dcc4774 (patch)
treeb9847e32e214a62395451d8ac71553bf274cc030
parent95e330bd0197a658096dfa1922ec3b3e6a4e6b78 (diff)
downloadrust-316e9db0cf86852b0150d8f0d475ba9a1dcc4774.tar.gz
rust-316e9db0cf86852b0150d8f0d475ba9a1dcc4774.zip
Fix tidy error
-rw-r--r--src/test/ui/lint/noop-method-call.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/test/ui/lint/noop-method-call.rs b/src/test/ui/lint/noop-method-call.rs
index b8aa55e1e1d..bc61d619abe 100644
--- a/src/test/ui/lint/noop-method-call.rs
+++ b/src/test/ui/lint/noop-method-call.rs
@@ -22,21 +22,21 @@ impl<T> Deref for DerefExample<T> {
 fn main() {
     let foo = &Foo(1u32);
     let foo_clone: &Foo<u32> = foo.clone();
-    //~^ WARNING call to `.clone()` on a reference in this situation does nothing [noop_method_call]
+    //~^ WARNING call to `.clone()` on a reference in this situation does nothing
 
     let bar = &Bar(1u32);
     let bar_clone: Bar<u32> = bar.clone();
 
     let deref = &&DerefExample(12u32);
     let derefed: &DerefExample<u32> = deref.deref();
-    //~^ WARNING call to `.deref()` on a reference in this situation does nothing [noop_method_call]
+    //~^ WARNING call to `.deref()` on a reference in this situation does nothing
 
     let deref = &DerefExample(12u32);
     let derefed: &u32 = deref.deref();
 
     let a = &&Foo(1u32);
     let borrowed: &Foo<u32> = a.borrow();
-    //~^ WARNING call to `.borrow()` on a reference in this situation does nothing [noop_method_call]
+    //~^ WARNING call to `.borrow()` on a reference in this situation does nothing
 }
 
 fn generic<T>(foo: &Foo<T>) {
@@ -45,5 +45,5 @@ fn generic<T>(foo: &Foo<T>) {
 
 fn non_generic(foo: &Foo<u32>) {
     foo.clone();
-    //~^ WARNING call to `.clone()` on a reference in this situation does nothing [noop_method_call]
+    //~^ WARNING call to `.clone()` on a reference in this situation does nothing
 }