Skip to content
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

Rustup to *rustc 1.13.0-nightly (d0623cf7b 2016-09-26)* and bump to 0.0.91 #1237

Merged
merged 2 commits into from
Sep 27, 2016

Conversation

mcarton
Copy link
Member

@mcarton mcarton commented Sep 22, 2016

println!("2: {:?}", ids);
ids.iter().any(|impl_id| {
impl_items.get(impl_id).map_or(false, |i| is_is_empty(i))
})
Copy link
Member

Choose a reason for hiding this comment

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

You should tcx.impl_or_trait_item(impl_id) so it can load it from an extern crate - unless this is meant to work only on local impls.

match ty.sty {
ty::TyTrait(_) => {
cx.tcx
.trait_item_def_ids
.impl_or_trait_items
Copy link
Member

Choose a reason for hiding this comment

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

Honestly, all of these places should probably use the respective tcx methods.

@mcarton
Copy link
Member Author

mcarton commented Sep 23, 2016

This should be working now, thanks to @eddyb for his suggestions.

@mcarton mcarton changed the title [DO-NOT-MERGE] Rustup to ?? Rustup to ?? Sep 23, 2016
@mcarton mcarton changed the title Rustup to ?? Rustup to *rustc 1.13.0-nightly (d0623cf7b 2016-09-26)* and bump to 0.0.91 Sep 27, 2016
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.

2 participants