diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2023-12-01 13:35:19 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2023-12-02 09:01:35 +1100 |
| commit | a179a53565b63b7499c3199bae5eff810341b41f (patch) | |
| tree | 79b8fd76ebea1391d79601489e49fb5e30211d35 /compiler/rustc_attr/src/builtin.rs | |
| parent | 6e9573936f1ac8079c9b0b43306e82269f5be6e7 (diff) | |
| download | rust-a179a53565b63b7499c3199bae5eff810341b41f.tar.gz rust-a179a53565b63b7499c3199bae5eff810341b41f.zip | |
Use `Session::diagnostic` in more places.
Diffstat (limited to 'compiler/rustc_attr/src/builtin.rs')
| -rw-r--r-- | compiler/rustc_attr/src/builtin.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_attr/src/builtin.rs b/compiler/rustc_attr/src/builtin.rs index 9fd5c91f554..a6930fe0a17 100644 --- a/compiler/rustc_attr/src/builtin.rs +++ b/compiler/rustc_attr/src/builtin.rs @@ -945,7 +945,7 @@ pub fn parse_repr_attr(sess: &Session, attr: &Attribute) -> Vec<ReprAttr> { assert!(attr.has_name(sym::repr), "expected `#[repr(..)]`, found: {attr:?}"); use ReprAttr::*; let mut acc = Vec::new(); - let diagnostic = &sess.parse_sess.span_diagnostic; + let diagnostic = sess.diagnostic(); if let Some(items) = attr.meta_item_list() { for item in items { |
