Actually infer args in visitors
This commit is contained in:
parent
3605675bb1
commit
8759f00c73
30 changed files with 257 additions and 97 deletions
|
@ -1224,6 +1224,13 @@ impl<'tcx> Visitor<'tcx> for TypePrivacyVisitor<'tcx> {
|
|||
}
|
||||
}
|
||||
} else {
|
||||
let local_id = self.tcx.hir().local_def_id(inf.hir_id);
|
||||
if let Some(did) = self.tcx.opt_const_param_of(local_id) {
|
||||
if self.visit_def_id(did, "inferred", &"").is_break() {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
// FIXME see above note for same issue.
|
||||
if self.visit(rustc_typeck::hir_ty_to_ty(self.tcx, &inf.to_ty())).is_break() {
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue