about summary refs log tree commit diff
path: root/compiler/rustc_expand/src
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2024-07-04 09:04:51 +1000
committerNicholas Nethercote <n.nethercote@gmail.com>2024-07-07 15:58:10 +1000
commit14b859fa3be22289d810df1cc8bd2aaf6fc299be (patch)
tree2de40ad69e000fbdcd93f22bd123f18003e0be1d /compiler/rustc_expand/src
parentdd790ab8ef8cc2a89f04f2be73c86230595a48a3 (diff)
downloadrust-14b859fa3be22289d810df1cc8bd2aaf6fc299be.tar.gz
rust-14b859fa3be22289d810df1cc8bd2aaf6fc299be.zip
Rename `Attribute::tokens` (the inherent method).
To distinguish it from the `HasTokens` method.
Diffstat (limited to 'compiler/rustc_expand/src')
-rw-r--r--compiler/rustc_expand/src/config.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_expand/src/config.rs b/compiler/rustc_expand/src/config.rs
index 56cbb54fcec..561ac6bdd51 100644
--- a/compiler/rustc_expand/src/config.rs
+++ b/compiler/rustc_expand/src/config.rs
@@ -294,7 +294,7 @@ impl<'a> StripUnconfigured<'a> {
         attr: &Attribute,
         (item, item_span): (ast::AttrItem, Span),
     ) -> Attribute {
-        let orig_tokens = attr.tokens();
+        let orig_tokens = attr.get_tokens();
 
         // We are taking an attribute of the form `#[cfg_attr(pred, attr)]`
         // and producing an attribute of the form `#[attr]`. We