mirror of
https://github.com/servo/servo.git
synced 2025-07-23 23:33:43 +01:00
Upgrade to rustc 1.6.0-nightly (1805bba39 2015-11-26)
This commit is contained in:
parent
a515fe320b
commit
8d7d132c93
7 changed files with 50 additions and 49 deletions
|
@ -76,7 +76,7 @@ pub fn unsafe_context(map: &ast_map::Map, id: ast::NodeId) -> bool {
|
|||
match map.find(map.get_parent(id)) {
|
||||
Some(ast_map::NodeImplItem(itm)) => {
|
||||
match itm.node {
|
||||
hir::MethodImplItem(ref sig, _) => sig.unsafety == hir::Unsafety::Unsafe,
|
||||
hir::ImplItemKind::Method(ref sig, _) => sig.unsafety == hir::Unsafety::Unsafe,
|
||||
_ => false
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue