We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
visit_infer
1 parent c0aa0fa commit a3c55acCopy full SHA for a3c55ac
compiler/rustc_privacy/src/lib.rs
@@ -1250,19 +1250,11 @@ impl<'tcx> Visitor<'tcx> for TypePrivacyVisitor<'tcx> {
1250
if self.visit(ty).is_break() {
1251
return;
1252
}
1253
+ } else {
1254
+ // We don't do anything for const infers here.
1255
1256
} 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) {
1257
- if self.visit_def_id(did, "inferred", &"").is_break() {
1258
- return;
1259
- }
1260
1261
-
1262
- // FIXME see above note for same issue.
1263
- if self.visit(rustc_typeck::hir_ty_to_ty(self.tcx, &inf.to_ty())).is_break() {
1264
1265
+ bug!("visit_infer without typeck_results");
1266
1267
intravisit::walk_inf(self, inf);
1268
0 commit comments