Skip to content

Commit 9c46ed7

Browse files
committed
Remove ad-hoc AttrItem.as_str
1 parent 8249e05 commit 9c46ed7

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

frontend/exporter/src/types/copied.rs

-9
Original file line numberDiff line numberDiff line change
@@ -2379,15 +2379,6 @@ pub struct AttrItem {
23792379
pub path: String,
23802380
pub args: AttrArgs,
23812381
pub tokens: Option<TokenStream>,
2382-
/// String representation of the item. This may not exactly match what the user wrote because
2383-
/// the whitespace is parsed and pretty-printed.
2384-
#[value({
2385-
use rustc_ast_pretty::pprust::PrintState;
2386-
rustc_ast_pretty::pprust::State::to_string(|s| {
2387-
s.print_attr_item(self, rustc_span::DUMMY_SP)
2388-
})
2389-
})]
2390-
pub as_str: String,
23912382
}
23922383

23932384
#[cfg(feature = "rustc")]

0 commit comments

Comments
 (0)