X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=compiler%2Frustc_ast_passes%2Fsrc%2Ffeature_gate.rs;h=62d0721c35fb1edd9f94ab33cbda8ac1d57c8185;hb=ce9818f2b7beaed0039f42605e2f547e9e461430;hp=d65bc820f8fb161ec5510b5aee6f20f9ea00347a;hpb=ce3bc76a8662727c70e4894d8e49c4689505d7bc;p=rust.git diff --git a/compiler/rustc_ast_passes/src/feature_gate.rs b/compiler/rustc_ast_passes/src/feature_gate.rs index d65bc820f8f..62d0721c35f 100644 --- a/compiler/rustc_ast_passes/src/feature_gate.rs +++ b/compiler/rustc_ast_passes/src/feature_gate.rs @@ -156,6 +156,14 @@ fn check_abi(&self, abi: ast::StrLit) { "efiapi ABI is experimental and subject to change" ); } + "C-cmse-nonsecure-call" => { + gate_feature_post!( + &self, + abi_c_cmse_nonsecure_call, + span, + "C-cmse-nonsecure-call ABI is experimental and subject to change" + ); + } abi => self .sess .parse_sess @@ -370,7 +378,7 @@ fn visit_item(&mut self, i: &'a ast::Item) { gate_feature_post!( &self, negative_impls, - span.to(of_trait.as_ref().map(|t| t.path.span).unwrap_or(span)), + span.to(of_trait.as_ref().map_or(span, |t| t.path.span)), "negative trait bounds are not yet fully implemented; \ use marker types for now" );