Generate stability attributes for derived impls
The attributes are copied from the item for which the trait impl is derived
This commit is contained in:
parent
be91042913
commit
629c2a840c
1 changed files with 1 additions and 1 deletions
|
|
@ -417,7 +417,7 @@ impl<'a> TraitDef<'a> {
|
|||
let mut attrs = newitem.attrs.clone();
|
||||
attrs.extend(item.attrs.iter().filter(|a| {
|
||||
match &a.name()[..] {
|
||||
"allow" | "warn" | "deny" | "forbid" => true,
|
||||
"allow" | "warn" | "deny" | "forbid" | "stable" | "unstable" => true,
|
||||
_ => false,
|
||||
}
|
||||
}).cloned());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue