mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-06 08:36:52 -04:00
Fix a metadata table name.
The table names usually match the name of the corresponding query. The `trait_impl_trait_tys` table is an exception; this commit renames it `collect_return_position_impl_trait_in_trait_tys` to match the query.
This commit is contained in:
@@ -261,7 +261,8 @@ provide! { tcx, def_id, other, cdata,
|
||||
.coerce_unsized_info
|
||||
.get(cdata, def_id.index)
|
||||
.map(|lazy| lazy.decode((cdata, tcx)))
|
||||
.process_decoded(tcx, || panic!("{def_id:?} does not have coerce_unsized_info"))) }
|
||||
.process_decoded(tcx, || panic!("{def_id:?} does not have coerce_unsized_info")))
|
||||
}
|
||||
mir_const_qualif => { table }
|
||||
rendered_const => { table }
|
||||
rendered_precise_capturing_args => { table }
|
||||
@@ -300,10 +301,10 @@ provide! { tcx, def_id, other, cdata,
|
||||
Ok(cdata
|
||||
.root
|
||||
.tables
|
||||
.trait_impl_trait_tys
|
||||
.collect_return_position_impl_trait_in_trait_tys
|
||||
.get(cdata, def_id.index)
|
||||
.map(|lazy| lazy.decode((cdata, tcx)))
|
||||
.process_decoded(tcx, || panic!("{def_id:?} does not have trait_impl_trait_tys")))
|
||||
.process_decoded(tcx, || panic!("{def_id:?} does not have collect_return_position_impl_trait_in_trait_tys")))
|
||||
}
|
||||
|
||||
associated_types_for_impl_traits_in_trait_or_impl => { table }
|
||||
@@ -695,6 +696,7 @@ impl CrateStore for CStore {
|
||||
fn as_any(&self) -> &dyn Any {
|
||||
self
|
||||
}
|
||||
|
||||
fn untracked_as_any(&mut self) -> &mut dyn Any {
|
||||
self
|
||||
}
|
||||
|
||||
@@ -1628,7 +1628,7 @@ impl<'a, 'tcx> EncodeContext<'a, 'tcx> {
|
||||
if tcx.impl_method_has_trait_impl_trait_tys(def_id)
|
||||
&& let Ok(table) = self.tcx.collect_return_position_impl_trait_in_trait_tys(def_id)
|
||||
{
|
||||
record!(self.tables.trait_impl_trait_tys[def_id] <- table);
|
||||
record!(self.tables.collect_return_position_impl_trait_in_trait_tys[def_id] <- table);
|
||||
}
|
||||
if let DefKind::Impl { .. } | DefKind::Trait = def_kind {
|
||||
let table = tcx.associated_types_for_impl_traits_in_trait_or_impl(def_id);
|
||||
|
||||
@@ -466,7 +466,7 @@ define_tables! {
|
||||
macro_definition: Table<DefIndex, LazyValue<ast::DelimArgs>>,
|
||||
proc_macro: Table<DefIndex, MacroKind>,
|
||||
deduced_param_attrs: Table<DefIndex, LazyArray<DeducedParamAttrs>>,
|
||||
trait_impl_trait_tys: Table<DefIndex, LazyValue<DefIdMap<ty::EarlyBinder<'static, Ty<'static>>>>>,
|
||||
collect_return_position_impl_trait_in_trait_tys: Table<DefIndex, LazyValue<DefIdMap<ty::EarlyBinder<'static, Ty<'static>>>>>,
|
||||
doc_link_resolutions: Table<DefIndex, LazyValue<DocLinkResMap>>,
|
||||
doc_link_traits_in_scope: Table<DefIndex, LazyArray<DefId>>,
|
||||
assumed_wf_types_for_rpitit: Table<DefIndex, LazyArray<(Ty<'static>, Span)>>,
|
||||
|
||||
Reference in New Issue
Block a user