[breaking-change] don't glob export ast::TraitItemKind variants
This commit is contained in:
parent
73fa9b2da2
commit
dfe35da6b8
10 changed files with 38 additions and 40 deletions
|
|
@ -616,7 +616,7 @@ impl fold::Folder for ReplaceBodyWithLoop {
|
|||
|
||||
fn fold_trait_item(&mut self, i: P<ast::TraitItem>) -> SmallVector<P<ast::TraitItem>> {
|
||||
match i.node {
|
||||
ast::ConstTraitItem(..) => {
|
||||
ast::TraitItemKind::Const(..) => {
|
||||
self.within_static_or_const = true;
|
||||
let ret = fold::noop_fold_trait_item(i, self);
|
||||
self.within_static_or_const = false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue