Add BoundCtxt
in visit_param_bounds
to check questions in bounds
This commit is contained in:
parent
27af517549
commit
4375b36117
5 changed files with 67 additions and 57 deletions
|
@ -3,6 +3,7 @@
|
|||
// completely accurate (some things might be counted twice, others missed).
|
||||
|
||||
use rustc_ast::visit as ast_visit;
|
||||
use rustc_ast::visit::BoundCtxt;
|
||||
use rustc_ast::{self as ast, AttrId, NodeId};
|
||||
use rustc_data_structures::fx::{FxHashMap, FxHashSet};
|
||||
use rustc_hir as hir;
|
||||
|
@ -302,7 +303,7 @@ impl<'v> ast_visit::Visitor<'v> for StatCollector<'v> {
|
|||
ast_visit::walk_assoc_item(self, item, ctxt);
|
||||
}
|
||||
|
||||
fn visit_param_bound(&mut self, bounds: &'v ast::GenericBound) {
|
||||
fn visit_param_bound(&mut self, bounds: &'v ast::GenericBound, _ctxt: BoundCtxt) {
|
||||
self.record("GenericBound", Id::None, bounds);
|
||||
ast_visit::walk_param_bound(self, bounds)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue