1
Fork 0

find_field does not need to be a query.

This commit is contained in:
Camille GILLOT 2024-07-14 12:36:58 +00:00
parent 0ffbddd09e
commit b494d98b18
4 changed files with 73 additions and 55 deletions

View file

@ -2280,10 +2280,6 @@ rustc_queries! {
desc { "whether the item should be made inlinable across crates" }
separate_provide_extern
}
query find_field((def_id, ident): (DefId, rustc_span::symbol::Ident)) -> Option<rustc_target::abi::FieldIdx> {
desc { |tcx| "find the index of maybe nested field `{ident}` in `{}`", tcx.def_path_str(def_id) }
}
}
rustc_query_append! { define_callbacks! }