]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_builtin_macros/src/format.rs
Rollup merge of #100592 - cjgillot:debug-import-kind, r=TaKO8Ki
[rust.git] / compiler / rustc_builtin_macros / src / format.rs
index 53c13873b1016f65dd6ab38ea06a0d28d419c2d9..08026c9d357846cc144cf718541b240a5a7aee05 100644 (file)
@@ -923,7 +923,7 @@ fn build_piece(
                 }
 
                 // Build the format
-                let fill = self.ecx.expr_lit(sp, ast::LitKind::Char(fill));
+                let fill = self.ecx.expr_char(sp, fill);
                 let align = |name| {
                     let mut p = Context::rtpath(self.ecx, sym::Alignment);
                     p.push(Ident::new(name, sp));