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 @@ -1148,19 +1148,11 @@ impl<'tcx> Visitor<'tcx> for TypePrivacyVisitor<'tcx> {
1148
1148
if self . visit ( ty) . is_break ( ) {
1149
1149
return ;
1150
1150
}
1151
+ } else {
1152
+ // We don't do anything for const infers here.
1151
1153
}
1152
1154
} else {
1153
- let local_id = self . tcx . hir ( ) . local_def_id ( inf. hir_id ) ;
1154
- 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
- return ;
1163
- }
1155
+ bug ! ( "visit_infer without typeck_results" ) ;
1164
1156
}
1165
1157
intravisit:: walk_inf ( self , inf) ;
1166
1158
}
You can’t perform that action at this time.
0 commit comments