diff options
Diffstat (limited to 'components/plugins/utils.rs')
-rw-r--r-- | components/plugins/utils.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/plugins/utils.rs b/components/plugins/utils.rs index 6f7f00f9109..e9db633f2d4 100644 --- a/components/plugins/utils.rs +++ b/components/plugins/utils.rs @@ -70,7 +70,7 @@ pub fn unsafe_context(map: &ast_map::Map, id: ast::NodeId) -> bool { match *itm { ast::MethodImplItem(ref meth) => match meth.node { ast::MethDecl(_, _, _, _, style, _, _, _) => match style { - ast::UnsafeFn => true, + ast::Unsafety::Unsafe => true, _ => false, }, _ => false, @@ -81,7 +81,7 @@ pub fn unsafe_context(map: &ast_map::Map, id: ast::NodeId) -> bool { Some(ast_map::NodeItem(itm)) => { match itm.node { ast::ItemFn(_, style, _, _, _) => match style { - ast::UnsafeFn => true, + ast::Unsafety::Unsafe => true, _ => false, }, _ => false, |