Skip to content

Commit

Permalink
Remove ad-hoc AttrItem.as_str
Browse files Browse the repository at this point in the history
  • Loading branch information
Nadrieril committed Aug 29, 2024
1 parent 8249e05 commit 9c46ed7
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions frontend/exporter/src/types/copied.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2379,15 +2379,6 @@ pub struct AttrItem {
pub path: String,
pub args: AttrArgs,
pub tokens: Option<TokenStream>,
/// String representation of the item. This may not exactly match what the user wrote because
/// the whitespace is parsed and pretty-printed.
#[value({
use rustc_ast_pretty::pprust::PrintState;
rustc_ast_pretty::pprust::State::to_string(|s| {
s.print_attr_item(self, rustc_span::DUMMY_SP)
})
})]
pub as_str: String,
}

#[cfg(feature = "rustc")]
Expand Down

0 comments on commit 9c46ed7

Please sign in to comment.