]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #32447 - nodakai:dots-in-err-idx, r=Manishearth
authorManish Goregaokar <manishsmail@gmail.com>
Sat, 26 Mar 2016 03:37:21 +0000 (09:07 +0530)
committerManish Goregaokar <manishsmail@gmail.com>
Sat, 26 Mar 2016 08:12:03 +0000 (13:42 +0530)
Remove ungrammatical dots from the error index.

They were probably meant as a shorthand for omitted code.

Part of #32446 but there should be a separate fix for the issue.

src/librustc/diagnostics.rs

index f474f7d4585f9fcdcd8bced82bf6604af98a6675..9348c05d444613ee930062f449f99d28e53fb83f 100644 (file)
@@ -1261,7 +1261,7 @@ fn foo<T>(t: T) where T: Trait<AssociatedType = &'static str> {
 fn foo<T: Index<u8>>(x: T){}
 
 #[rustc_on_unimplemented = "the type `{Self}` cannot be indexed by `{Idx}`"]
-trait Index<Idx> { ... }
+trait Index<Idx> { /* ... */ }
 
 foo(true); // `bool` does not implement `Index<u8>`
 ```
@@ -1291,7 +1291,7 @@ trait Index<Idx> { ... }
 fn foo<T: Index<u8>>(x: T){}
 
 #[rustc_on_unimplemented = "the type `{Self}` cannot be indexed by `{Idx}`"]
-trait Index<Idx> { ... }
+trait Index<Idx> { /* ... */ }
 
 foo(true); // `bool` does not implement `Index<u8>`
 ```
@@ -1319,7 +1319,7 @@ trait Index<Idx> { ... }
 fn foo<T: Index<u8>>(x: T){}
 
 #[rustc_on_unimplemented = "the type `{Self}` cannot be indexed by `{Idx}`"]
-trait Index<Idx> { ... }
+trait Index<Idx> { /* ... */ }
 
 foo(true); // `bool` does not implement `Index<u8>`
 ```