Introduce new-style attribute parsers for several attributes
note: compiler compiles but librustdoc and clippy don't
This commit is contained in:
parent
dbd3b7928e
commit
7e0f5b5016
50 changed files with 1519 additions and 1342 deletions
|
@ -175,6 +175,12 @@ pub enum Transparency {
|
|||
Opaque,
|
||||
}
|
||||
|
||||
impl Transparency {
|
||||
pub fn fallback(macro_rules: bool) -> Self {
|
||||
if macro_rules { Transparency::SemiTransparent } else { Transparency::Opaque }
|
||||
}
|
||||
}
|
||||
|
||||
impl LocalExpnId {
|
||||
/// The ID of the theoretical expansion that generates freshly parsed, unexpanded AST.
|
||||
pub const ROOT: LocalExpnId = LocalExpnId::ZERO;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue