Support cfg and cfg_attr on generic parameters
This commit is contained in:
parent
605ea9d05c
commit
0b58bb32f6
6 changed files with 111 additions and 106 deletions
|
|
@ -1439,9 +1439,9 @@ impl<'a, 'b> MutVisitor for InvocationCollector<'a, 'b> {
|
|||
}
|
||||
}
|
||||
|
||||
fn visit_generic_param(&mut self, param: &mut ast::GenericParam) {
|
||||
self.cfg.disallow_cfg_on_generic_param(¶m);
|
||||
noop_visit_generic_param(param, self)
|
||||
fn visit_generic_params(&mut self, params: &mut Vec<ast::GenericParam>) {
|
||||
self.cfg.configure_generic_params(params);
|
||||
noop_visit_generic_params(params, self);
|
||||
}
|
||||
|
||||
fn visit_attribute(&mut self, at: &mut ast::Attribute) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue