about summary refs log tree commit diff
path: root/compiler/rustc_builtin_macros/src
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2023-12-18 21:14:02 +1100
committerNicholas Nethercote <n.nethercote@gmail.com>2023-12-24 07:59:21 +1100
commitd51db05d7ee1a12ee168f2d1ccc93ccc11b216c7 (patch)
tree6a1bd10bfc900bacf504f9b5e5b7b64378d00e04 /compiler/rustc_builtin_macros/src
parentec9af0d6cb6386c7be6056a71366d275d5ca3e1e (diff)
downloadrust-d51db05d7ee1a12ee168f2d1ccc93ccc11b216c7.tar.gz
rust-d51db05d7ee1a12ee168f2d1ccc93ccc11b216c7.zip
Remove `ParseSess` methods that duplicate `DiagCtxt` methods.
Also add missing `#[track_caller]` attributes to `DiagCtxt` methods as
necessary to keep tests working.
Diffstat (limited to 'compiler/rustc_builtin_macros/src')
-rw-r--r--compiler/rustc_builtin_macros/src/asm.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_builtin_macros/src/asm.rs b/compiler/rustc_builtin_macros/src/asm.rs
index b2b9e494053..b5801c1b0f1 100644
--- a/compiler/rustc_builtin_macros/src/asm.rs
+++ b/compiler/rustc_builtin_macros/src/asm.rs
@@ -422,7 +422,7 @@ fn parse_reg<'a>(
             ast::InlineAsmRegOrRegClass::Reg(symbol)
         }
         _ => {
-            return Err(p.sess.create_err(errors::ExpectedRegisterClassOrExplicitRegister {
+            return Err(p.dcx().create_err(errors::ExpectedRegisterClassOrExplicitRegister {
                 span: p.token.span,
             }));
         }