File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -22,8 +22,7 @@ use rustc_span::symbol::Ident;
2222use rustc_span:: { sym, Span , Symbol , DUMMY_SP } ;
2323use rustc_target:: abi:: { Size , VariantIdx } ;
2424use rustc_trait_selection:: infer:: InferCtxtExt ;
25- use rustc_trait_selection:: traits:: NormalizeExt ;
26- use rustc_trait_selection:: traits:: query:: normalize:: AtExt ;
25+ use rustc_trait_selection:: traits:: query:: normalize:: QueryNormalizeExt ;
2726use std:: iter;
2827
2928use crate :: { match_def_path, path_res, paths} ;
@@ -284,7 +283,7 @@ fn is_normalizable_helper<'tcx>(
284283 cache. insert ( ty, false ) ;
285284 let infcx = cx. tcx . infer_ctxt ( ) . build ( ) ;
286285 let cause = rustc_middle:: traits:: ObligationCause :: dummy ( ) ;
287- let result = if infcx. at ( & cause, param_env) . normalize ( ty) . is_ok ( ) {
286+ let result = if infcx. at ( & cause, param_env) . query_normalize ( ty) . is_ok ( ) {
288287 match ty. kind ( ) {
289288 ty:: Adt ( def, substs) => def. variants ( ) . iter ( ) . all ( |variant| {
290289 variant
You can’t perform that action at this time.
0 commit comments