Skip to content

Add on_unimplemented note to Index #21658

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 28, 2015

Conversation

Manishearth
Copy link
Member

Helps issues like these

r? @gankro

rollup-worthy

@Gankra
Copy link
Contributor

Gankra commented Jan 26, 2015

@bors r+ 2b4d2 rollup

@Manishearth Manishearth force-pushed the index_on_unimplemented branch from 2b4d2ea to 8f922a1 Compare January 26, 2015 17:40
@Gankra
Copy link
Contributor

Gankra commented Jan 26, 2015

@bors r+ 8f922 rollup

@Manishearth Manishearth force-pushed the index_on_unimplemented branch from 8f922a1 to ef5a06f Compare January 26, 2015 17:50
@Gankra
Copy link
Contributor

Gankra commented Jan 26, 2015

@bors r+ ef5a06f rollup

@Gankra
Copy link
Contributor

Gankra commented Jan 26, 2015

FOR REALS THIS TIME

@@ -895,6 +895,7 @@ shr_impl_all! { u8 u16 u32 u64 usize i8 i16 i32 i64 isize }
/// }
/// ```
#[lang="index"]
#[rustc_on_unimplemented = "the type {Self} cannot be indexed by {Index}"]
Copy link
Contributor

Choose a reason for hiding this comment

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

Hmm, there should probably be backticks around {Self} and {Index} here.

@Manishearth Manishearth force-pushed the index_on_unimplemented branch from ef5a06f to 6a90eca Compare January 26, 2015 20:49
@Manishearth
Copy link
Member Author

@gankro Okay, perhaps not for reals? :> Need another r+ :p

@Gankra
Copy link
Contributor

Gankra commented Jan 26, 2015

What changed?

@Manishearth
Copy link
Member Author

Backticks were added.

@Gankra
Copy link
Contributor

Gankra commented Jan 26, 2015

@bors r+ 6a90 rollup

barosl added a commit to barosl/rust that referenced this pull request Jan 27, 2015
Manishearth added a commit to Manishearth/rust that referenced this pull request Jan 27, 2015
@bors bors merged commit 6a90eca into rust-lang:master Jan 28, 2015
@Manishearth Manishearth deleted the index_on_unimplemented branch September 3, 2015 17:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants