Add effects during lowering for ~const
bounds
This commit is contained in:
parent
2d5d56bb59
commit
1c837cb6f7
3 changed files with 121 additions and 17 deletions
|
@ -2652,6 +2652,15 @@ pub struct NormalAttr {
|
|||
pub tokens: Option<LazyAttrTokenStream>,
|
||||
}
|
||||
|
||||
impl NormalAttr {
|
||||
pub fn from_ident(ident: Ident) -> Self {
|
||||
Self {
|
||||
item: AttrItem { path: Path::from_ident(ident), args: AttrArgs::Empty, tokens: None },
|
||||
tokens: None,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Clone, Encodable, Decodable, Debug, HashStable_Generic)]
|
||||
pub struct AttrItem {
|
||||
pub path: Path,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue