From: Manish Goregaokar Date: Sat, 26 Mar 2016 03:37:21 +0000 (+0530) Subject: Rollup merge of #32447 - nodakai:dots-in-err-idx, r=Manishearth X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=515e87dde2f76477e1b324275ba4fef9a61ae5f1;hp=b55d7729c2cc7401600915ed4b17c291fe0dd8c2;p=rust.git Rollup merge of #32447 - nodakai:dots-in-err-idx, r=Manishearth 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. --- diff --git a/src/librustc/diagnostics.rs b/src/librustc/diagnostics.rs index f474f7d4585..9348c05d444 100644 --- a/src/librustc/diagnostics.rs +++ b/src/librustc/diagnostics.rs @@ -1261,7 +1261,7 @@ fn foo(t: T) where T: Trait { fn foo>(x: T){} #[rustc_on_unimplemented = "the type `{Self}` cannot be indexed by `{Idx}`"] -trait Index { ... } +trait Index { /* ... */ } foo(true); // `bool` does not implement `Index` ``` @@ -1291,7 +1291,7 @@ trait Index { ... } fn foo>(x: T){} #[rustc_on_unimplemented = "the type `{Self}` cannot be indexed by `{Idx}`"] -trait Index { ... } +trait Index { /* ... */ } foo(true); // `bool` does not implement `Index` ``` @@ -1319,7 +1319,7 @@ trait Index { ... } fn foo>(x: T){} #[rustc_on_unimplemented = "the type `{Self}` cannot be indexed by `{Idx}`"] -trait Index { ... } +trait Index { /* ... */ } foo(true); // `bool` does not implement `Index` ```