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.
This commit is contained in:
commit
515e87dde2
|
@ -1261,7 +1261,7 @@ compiled:
|
||||||
fn foo<T: Index<u8>>(x: T){}
|
fn foo<T: Index<u8>>(x: T){}
|
||||||
|
|
||||||
#[rustc_on_unimplemented = "the type `{Self}` cannot be indexed by `{Idx}`"]
|
#[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>`
|
foo(true); // `bool` does not implement `Index<u8>`
|
||||||
```
|
```
|
||||||
|
@ -1291,7 +1291,7 @@ compiled:
|
||||||
fn foo<T: Index<u8>>(x: T){}
|
fn foo<T: Index<u8>>(x: T){}
|
||||||
|
|
||||||
#[rustc_on_unimplemented = "the type `{Self}` cannot be indexed by `{Idx}`"]
|
#[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>`
|
foo(true); // `bool` does not implement `Index<u8>`
|
||||||
```
|
```
|
||||||
|
@ -1319,7 +1319,7 @@ compiled:
|
||||||
fn foo<T: Index<u8>>(x: T){}
|
fn foo<T: Index<u8>>(x: T){}
|
||||||
|
|
||||||
#[rustc_on_unimplemented = "the type `{Self}` cannot be indexed by `{Idx}`"]
|
#[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>`
|
foo(true); // `bool` does not implement `Index<u8>`
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in New Issue