File tree Expand file tree Collapse file tree 1 file changed +3
-11
lines changed
compiler/rustc_privacy/src Expand file tree Collapse file tree 1 file changed +3
-11
lines changed Original file line number Diff line number Diff line change @@ -1250,19 +1250,11 @@ impl<'tcx> Visitor<'tcx> for TypePrivacyVisitor<'tcx> {
1250
1250
if self . visit ( ty) . is_break ( ) {
1251
1251
return ;
1252
1252
}
1253
+ } else {
1254
+ // We don't do anything for const infers here.
1253
1255
}
1254
1256
} else {
1255
- let local_id = self . tcx . hir ( ) . local_def_id ( inf. hir_id ) ;
1256
- 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
- return ;
1265
- }
1257
+ bug ! ( "visit_infer without typeck_results" ) ;
1266
1258
}
1267
1259
intravisit:: walk_inf ( self , inf) ;
1268
1260
}
You can’t perform that action at this time.
0 commit comments