Uh oh!
There was an error while loading. Please reload this page.
implement fuzzy matching in on_unimplemented - #33694
Conversation
There was a problem hiding this comment.
Just to make sure the message is as clear as possible to the users that will be helped, maybe we can change to “slice index type must be usize”? I just think the “usizes” formulation will be confusing.
nikomatsakis
commented
May 18, 2016
There was a problem hiding this comment.
Nit: incomplete sentence... "infer and error are fuzzy equal to all types", I guess?
There was a problem hiding this comment.
Nit: incomplete sentence... "infer and error are fuzzy equal to all types", I guess?
nikomatsakis
commented
May 18, 2016
Looks great! r=me after nits and once we settle on a good wording for the error message :) |
363ff9c to
b344c71Compare
|
| #[stable(feature = "rust1", since = "1.0.0")] | ||
| #[allow(unused_attributes)] | ||
| #[rustc_on_unimplemented = "a usize is required to index into a slice"] | ||
| #[rustc_on_unimplemented = "slice indices are of type usize"] |
arielb1
commented
May 18, 2016
@bors r=nikomatsakis |
bors
commented
May 18, 2016
📌 Commit b344c71 has been approved by |
nikomatsakis
commented
May 18, 2016
r=me modulo nit |
arielb1
commented
May 18, 2016
@bors r=nikomatsakis |
bors
commented
May 18, 2016
📌 Commit b9a201c has been approved by |
bors
commented
May 19, 2016
implement fuzzy matching in on_unimplemented Fixes#31062 r? @nikomatsakis
Fixes#31062
r? @nikomatsakis