Skip to content

Commit

Permalink
Update from rust-lang/rust#28742
Browse files Browse the repository at this point in the history
  • Loading branch information
thepowersgang committed Oct 4, 2015
1 parent 04168fb commit ab0c7b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ impl Pass
debug!("{}Checking method {:?} (A {})", Indent(self.lvl), id, unknown_assume);
self.lvl += 1;
let rv = if id.krate == 0 {
self.crate_method_is_safe(tcx, id.node, name, unknown_assume)
self.crate_method_is_safe(tcx, tcx.map.as_local_node_id(id).unwrap(), name, unknown_assume)
}
else {
for a in tcx.get_attrs(id).iter()
Expand Down

0 comments on commit ab0c7b4

Please sign in to comment.