Add effects during lowering for ~const bounds

This commit is contained in:
Deadbeef 2023-06-30 14:01:24 +00:00
parent 2d5d56bb59
commit 1c837cb6f7
3 changed files with 121 additions and 17 deletions

View file

@ -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,