@@ -3,9 +3,10 @@ use std::iter;
33use rustc_abi:: { CanonAbi , ExternAbi } ;
44use rustc_ast:: util:: parser:: ExprPrecedence ;
55use rustc_errors:: { Applicability , Diag , ErrorGuaranteed , StashKey , inline_fluent} ;
6+ use rustc_hir:: attrs:: AttributeKind ;
67use rustc_hir:: def:: { self , CtorKind , Namespace , Res } ;
78use rustc_hir:: def_id:: DefId ;
8- use rustc_hir:: { self as hir, HirId , LangItem } ;
9+ use rustc_hir:: { self as hir, HirId , LangItem , find_attr } ;
910use rustc_hir_analysis:: autoderef:: Autoderef ;
1011use rustc_infer:: infer:: BoundRegionConversionTime ;
1112use rustc_infer:: traits:: { Obligation , ObligationCause , ObligationCauseCode } ;
@@ -526,7 +527,10 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
526527 // `#[rustc_evaluate_where_clauses]` trigger special output
527528 // to let us test the trait evaluation system.
528529 if self . has_rustc_attrs
529- && self . tcx . has_attr ( def_id, sym:: rustc_evaluate_where_clauses)
530+ && find_attr ! (
531+ self . tcx. get_all_attrs( def_id) ,
532+ AttributeKind :: RustcEvaluateWhereClauses
533+ )
530534 {
531535 let predicates = self . tcx . predicates_of ( def_id) ;
532536 let predicates = predicates. instantiate ( self . tcx , args) ;
0 commit comments