Use unused_generic_params
from crate metadata
This commit is contained in:
parent
f1b1ed7e18
commit
ee2d42882f
5 changed files with 28 additions and 10 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue