1
Fork 0

Use unused_generic_params from crate metadata

This commit is contained in:
Michael Goulet 2023-03-14 00:35:34 +00:00
parent f1b1ed7e18
commit ee2d42882f
5 changed files with 28 additions and 10 deletions

View file

@ -63,7 +63,7 @@ impl<'tcx> Key for ty::InstanceDef<'tcx> {
#[inline(always)]
fn query_crate_is_local(&self) -> bool {
true
self.def_id().is_local()
}
fn default_span(&self, tcx: TyCtxt<'_>) -> Span {
@ -76,7 +76,7 @@ impl<'tcx> Key for ty::Instance<'tcx> {
#[inline(always)]
fn query_crate_is_local(&self) -> bool {
true
self.def_id().is_local()
}
fn default_span(&self, tcx: TyCtxt<'_>) -> Span {