@@ -383,7 +383,7 @@ pub(crate) fn associated_ty_data_query(
383383 // Lower bounds -- we could/should maybe move this to a separate query in `lower`
384384 let type_alias_data = db. type_alias_data ( type_alias) ;
385385 let generic_params = generics ( db. upcast ( ) , type_alias. into ( ) ) ;
386- let bound_vars = generic_params. bound_vars_subst ( DebruijnIndex :: INNERMOST ) ;
386+ // let bound_vars = generic_params.bound_vars_subst(DebruijnIndex::INNERMOST);
387387 let resolver = hir_def:: resolver:: HasResolver :: resolver ( type_alias, db. upcast ( ) ) ;
388388 let ctx = crate :: TyLoweringContext :: new ( db, & resolver)
389389 . with_type_param_mode ( crate :: lower:: TypeParamLoweringMode :: Variable ) ;
@@ -396,8 +396,10 @@ pub(crate) fn associated_ty_data_query(
396396 . filter_map ( |pred| generic_predicate_to_inline_bound ( db, & pred, & self_ty) )
397397 . collect ( ) ;
398398
399- let where_clauses = convert_where_clauses ( db, type_alias. into ( ) , & bound_vars) ;
400- let bound_data = rust_ir:: AssociatedTyDatumBound { bounds, where_clauses } ;
399+ // FIXME: Re-enable where clauses on associated types when an upstream chalk bug is fixed.
400+ // (rust-analyzer#9052)
401+ // let where_clauses = convert_where_clauses(db, type_alias.into(), &bound_vars);
402+ let bound_data = rust_ir:: AssociatedTyDatumBound { bounds, where_clauses : vec ! [ ] } ;
401403 let datum = AssociatedTyDatum {
402404 trait_id : to_chalk_trait_id ( trait_) ,
403405 id,
0 commit comments