From f54a458c3a05f4ffd61c71edaaf15785836aed3b Mon Sep 17 00:00:00 2001 From: Folkert Date: Fri, 26 Jul 2024 19:27:01 +0200 Subject: [PATCH] fixup! inline const monomorphization/evaluation --- compiler/rustc_codegen_ssa/src/mir/naked_asm.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/rustc_codegen_ssa/src/mir/naked_asm.rs b/compiler/rustc_codegen_ssa/src/mir/naked_asm.rs index 99b59f249924..74aaae168b26 100644 --- a/compiler/rustc_codegen_ssa/src/mir/naked_asm.rs +++ b/compiler/rustc_codegen_ssa/src/mir/naked_asm.rs @@ -36,7 +36,7 @@ pub fn codegen_naked_asm<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>>( let mut template_vec = Vec::new(); template_vec.push(rustc_ast::ast::InlineAsmTemplatePiece::String(begin.into())); template_vec.extend(template.iter().cloned()); - template_vec.push(rustc_ast::ast::InlineAsmTemplatePiece::String(end)); + template_vec.push(rustc_ast::ast::InlineAsmTemplatePiece::String(end.into())); cx.codegen_global_asm(&template_vec, &operands, options, line_spans); }