Skip to content

implement fuzzy matching in on_unimplemented - #33694

Merged
bors merged 2 commits into
rust-lang:masterfrom
arielb1:fuzzy-on-unimplemented
May 19, 2016
Merged

implement fuzzy matching in on_unimplemented#33694
bors merged 2 commits into
rust-lang:masterfrom
arielb1:fuzzy-on-unimplemented

Conversation

@arielb1

Copy link
Copy Markdown
Contributor

Comment threadsrc/libcore/slice.rs Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Copy link
Copy Markdown
Contributor

cc @GuillaumeGomez

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: incomplete sentence... "infer and error are fuzzy equal to all types", I guess?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: incomplete sentence... "infer and error are fuzzy equal to all types", I guess?

@nikomatsakis

Copy link
Copy Markdown
Contributor

Looks great!

r=me after nits and once we settle on a good wording for the error message :)

@arielb1
arielb1force-pushed the fuzzy-on-unimplemented branch from 363ff9c to b344c71CompareMay 18, 2016 16:13
@arielb1

arielb1 commented May 18, 2016

Copy link
Copy Markdown
ContributorAuthor

<updated>

Comment threadsrc/libcore/slice.rs Outdated
#[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"]

@nikomatsakisnikomatsakisMay 18, 2016

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: usize

@arielb1

Copy link
Copy Markdown
ContributorAuthor

@bors r=nikomatsakis

@bors

bors commented May 18, 2016

Copy link
Copy Markdown
Collaborator

📌 Commit b344c71 has been approved by nikomatsakis

@nikomatsakis

Copy link
Copy Markdown
Contributor

r=me modulo nit

@arielb1

Copy link
Copy Markdown
ContributorAuthor

@bors r=nikomatsakis

@bors

bors commented May 18, 2016

Copy link
Copy Markdown
Collaborator

📌 Commit b9a201c has been approved by nikomatsakis

@bors

bors commented May 19, 2016

Copy link
Copy Markdown
Collaborator

⌛ Testing commit b9a201c with merge d0ca0ca...

bors added a commit that referenced this pull request May 19, 2016
@bors
bors merged commit b9a201c into rust-lang:masterMay 19, 2016
@blussbluss added the relnotes Marks issues that should be documented in the release notes of the next release. label May 19, 2016
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

relnotesMarks issues that should be documented in the release notes of the next release.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@arielb1@nikomatsakis@bors@bluss