]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_builtin_macros/src/asm.rs
Rollup merge of #105975 - jeremystucki:rustc-remove-needless-lifetimes, r=eholk
[rust.git] / compiler / rustc_builtin_macros / src / asm.rs
index a34c17a4258fec5c36d26bcb96b9eb6b52a59de9..925392b500ad27196d33e92c7a81b475762a33a0 100644 (file)
@@ -352,7 +352,7 @@ pub fn parse_asm_args<'a>(
 ///
 /// This function must be called immediately after the option token is parsed.
 /// Otherwise, the suggestion will be incorrect.
-fn err_duplicate_option<'a>(p: &mut Parser<'a>, symbol: Symbol, span: Span) {
+fn err_duplicate_option(p: &mut Parser<'_>, symbol: Symbol, span: Span) {
     let mut err = p
         .sess
         .span_diagnostic
@@ -564,7 +564,7 @@ fn expand_preparsed_asm(ecx: &mut ExtCtxt<'_>, args: AsmArgs) -> Option<ast::Inl
         let template_snippet = ecx.source_map().span_to_snippet(template_sp).ok();
         template_strs.push((
             template_str,
-            template_snippet.as_ref().map(|s| Symbol::intern(s)),
+            template_snippet.as_deref().map(Symbol::intern),
             template_sp,
         ));
         let template_str = template_str.as_str();