use rustc_data_structures::fx::FxHashMap;
use rustc_data_structures::stable_hasher::{HashStable, StableHasher,
StableHasherResult};
-use rustc_data_structures::sync::Lrc;
use rustc_macros::HashStable;
/// A trait's definition with type information.
// Query provider for `trait_impls_of`.
pub(super) fn trait_impls_of_provider<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>,
trait_id: DefId)
- -> Lrc<TraitImpls> {
+ -> &'tcx TraitImpls {
let mut impls = TraitImpls::default();
{
}
}
- Lrc::new(impls)
+ tcx.arena.alloc(impls)
}
impl<'a> HashStable<StableHashingContext<'a>> for TraitImpls {