diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2023-12-17 22:25:47 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2023-12-18 16:06:21 +1100 |
| commit | 9df1576e1d477cfbfb4f39e779ce48552f9c28da (patch) | |
| tree | 8a456da5ceafc0884fc1983266c3ca839ca9f989 /compiler/rustc_parse/src/parser/attr_wrapper.rs | |
| parent | 9b1f87c7e8ff6798e0c770eb6229a77682948976 (diff) | |
| download | rust-9df1576e1d477cfbfb4f39e779ce48552f9c28da.tar.gz rust-9df1576e1d477cfbfb4f39e779ce48552f9c28da.zip | |
Rename `ParseSess::span_diagnostic` as `ParseSess::dcx`.
Diffstat (limited to 'compiler/rustc_parse/src/parser/attr_wrapper.rs')
| -rw-r--r-- | compiler/rustc_parse/src/parser/attr_wrapper.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_parse/src/parser/attr_wrapper.rs b/compiler/rustc_parse/src/parser/attr_wrapper.rs index 5e8447030f1..344128aab03 100644 --- a/compiler/rustc_parse/src/parser/attr_wrapper.rs +++ b/compiler/rustc_parse/src/parser/attr_wrapper.rs @@ -41,7 +41,7 @@ impl AttrWrapper { } pub(crate) fn take_for_recovery(self, sess: &ParseSess) -> AttrVec { - sess.span_diagnostic.span_delayed_bug( + sess.dcx.span_delayed_bug( self.attrs.get(0).map(|attr| attr.span).unwrap_or(DUMMY_SP), "AttrVec is taken for recovery but no error is produced", ); |
