File tree 1 file changed +2
-3
lines changed 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;
22
22
use rustc_span:: { sym, Span , Symbol , DUMMY_SP } ;
23
23
use rustc_target:: abi:: { Size , VariantIdx } ;
24
24
use 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 ;
27
26
use std:: iter;
28
27
29
28
use crate :: { match_def_path, path_res, paths} ;
@@ -284,7 +283,7 @@ fn is_normalizable_helper<'tcx>(
284
283
cache. insert ( ty, false ) ;
285
284
let infcx = cx. tcx . infer_ctxt ( ) . build ( ) ;
286
285
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 ( ) {
288
287
match ty. kind ( ) {
289
288
ty:: Adt ( def, substs) => def. variants ( ) . iter ( ) . all ( |variant| {
290
289
variant
You can’t perform that action at this time.
0 commit comments