Skip to content

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

Merged
mcarton merged 2 commits into
masterfrom
rustup
Sep 27, 2016
Merged

Rustup to *rustc 1.13.0-nightly (d0623cf7b 2016-09-26)* and bump to 0.0.91#1237
mcarton merged 2 commits into
masterfrom
rustup

Conversation

@mcarton

@mcartonmcarton commented Sep 22, 2016

Copy link
Copy Markdown
Contributor

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

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.

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.

Comment threadclippy_lints/src/len_zero.rs Outdated
ty::TyTrait(_) => {
cx.tcx
.trait_item_def_ids
.impl_or_trait_items

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.

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

@mcarton

Copy link
Copy Markdown
ContributorAuthor

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

@mcartonmcarton changed the title [DO-NOT-MERGE] Rustup to ??Rustup to ??Sep 23, 2016
@mcartonmcarton changed the title Rustup to ??Rustup to *rustc 1.13.0-nightly (d0623cf7b 2016-09-26)* and bump to 0.0.91Sep 27, 2016
@mcarton
mcarton merged commit fe27ac5 into masterSep 27, 2016
@mcarton
mcarton deleted the rustup branch September 27, 2016 23:15
Sign up for freeto 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

@mcarton@eddyb