We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
visit_infer
1 parent b2d8f0c commit cbc6d35Copy full SHA for cbc6d35
compiler/rustc_privacy/src/lib.rs
@@ -1148,19 +1148,11 @@ impl<'tcx> Visitor<'tcx> for TypePrivacyVisitor<'tcx> {
1148
if self.visit(ty).is_break() {
1149
return;
1150
}
1151
+ } else {
1152
+ // We don't do anything for const infers here.
1153
1154
} 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) {
1155
- if self.visit_def_id(did, "inferred", &"").is_break() {
1156
- return;
1157
- }
1158
1159
-
1160
- // FIXME see above note for same issue.
1161
- if self.visit(rustc_typeck::hir_ty_to_ty(self.tcx, &inf.to_ty())).is_break() {
1162
1163
+ bug!("visit_infer without typeck_results");
1164
1165
intravisit::walk_inf(self, inf);
1166
0 commit comments