File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed
compiler/rustc_trait_selection/src/traits Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,6 @@ use std::fmt::Debug;
2727use std:: ops:: ControlFlow ;
2828
2929use rustc_errors:: ErrorGuaranteed ;
30- use rustc_hir:: def:: DefKind ;
3130pub use rustc_infer:: traits:: * ;
3231use rustc_middle:: query:: Providers ;
3332use rustc_middle:: span_bug;
@@ -372,9 +371,7 @@ pub fn normalize_param_env_or_error<'tcx>(
372371 // should actually be okay since without `feature(generic_const_exprs)` the only
373372 // const arguments that have a non-empty param env are array repeat counts. These
374373 // do not appear in the type system though.
375- if let ty:: ConstKind :: Unevaluated ( uv) = c. kind ( )
376- && self . 0 . def_kind ( uv. def ) == DefKind :: AnonConst
377- {
374+ if let ty:: ConstKind :: Unevaluated ( _) = c. kind ( ) {
378375 let infcx = self . 0 . infer_ctxt ( ) . build ( TypingMode :: non_body_analysis ( ) ) ;
379376 let c = evaluate_const ( & infcx, c, ty:: ParamEnv :: empty ( ) ) ;
380377 // We should never wind up with any `infcx` local state when normalizing anon consts
You can’t perform that action at this time.
0 commit comments