incr.comp.: Use the awesome new '_ in a few places.
This commit is contained in:
parent
c531d9f733
commit
410f8509b5
@ -461,8 +461,8 @@ impl DepGraph {
|
|||||||
self.data.as_ref().and_then(|data| data.colors.borrow().get(dep_node).cloned())
|
self.data.as_ref().and_then(|data| data.colors.borrow().get(dep_node).cloned())
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn try_mark_green<'a, 'tcx>(&self,
|
pub fn try_mark_green<'tcx>(&self,
|
||||||
tcx: TyCtxt<'a, 'tcx, 'tcx>,
|
tcx: TyCtxt<'_, 'tcx, 'tcx>,
|
||||||
dep_node: &DepNode)
|
dep_node: &DepNode)
|
||||||
-> Option<DepNodeIndex> {
|
-> Option<DepNodeIndex> {
|
||||||
debug!("try_mark_green({:?}) - BEGIN", dep_node);
|
debug!("try_mark_green({:?}) - BEGIN", dep_node);
|
||||||
|
@ -31,7 +31,7 @@ pub(super) trait QueryDescription<'tcx>: QueryConfig {
|
|||||||
false
|
false
|
||||||
}
|
}
|
||||||
|
|
||||||
fn try_load_from_disk<'a>(_: TyCtxt<'a, 'tcx, 'tcx>,
|
fn try_load_from_disk(_: TyCtxt<'_, 'tcx, 'tcx>,
|
||||||
_: SerializedDepNodeIndex)
|
_: SerializedDepNodeIndex)
|
||||||
-> Option<Self::Value> {
|
-> Option<Self::Value> {
|
||||||
bug!("QueryDescription::load_from_disk() called for unsupport query.")
|
bug!("QueryDescription::load_from_disk() called for unsupport query.")
|
||||||
@ -556,7 +556,7 @@ impl<'tcx> QueryDescription<'tcx> for queries::typeck_tables_of<'tcx> {
|
|||||||
def_id.is_local()
|
def_id.is_local()
|
||||||
}
|
}
|
||||||
|
|
||||||
fn try_load_from_disk<'a>(tcx: TyCtxt<'a, 'tcx, 'tcx>,
|
fn try_load_from_disk(tcx: TyCtxt<'_, 'tcx, 'tcx>,
|
||||||
id: SerializedDepNodeIndex)
|
id: SerializedDepNodeIndex)
|
||||||
-> Option<Self::Value> {
|
-> Option<Self::Value> {
|
||||||
let typeck_tables: Option<ty::TypeckTables<'tcx>> = tcx
|
let typeck_tables: Option<ty::TypeckTables<'tcx>> = tcx
|
||||||
|
@ -291,8 +291,8 @@ impl<'sess> OnDiskCache<'sess> {
|
|||||||
|
|
||||||
/// Returns the cached query result if there is something in the cache for
|
/// Returns the cached query result if there is something in the cache for
|
||||||
/// the given SerializedDepNodeIndex. Otherwise returns None.
|
/// the given SerializedDepNodeIndex. Otherwise returns None.
|
||||||
pub fn try_load_query_result<'a, 'tcx, T>(&self,
|
pub fn try_load_query_result<'tcx, T>(&self,
|
||||||
tcx: TyCtxt<'a, 'tcx, 'tcx>,
|
tcx: TyCtxt<'_, 'tcx, 'tcx>,
|
||||||
dep_node_index: SerializedDepNodeIndex)
|
dep_node_index: SerializedDepNodeIndex)
|
||||||
-> Option<T>
|
-> Option<T>
|
||||||
where T: Decodable
|
where T: Decodable
|
||||||
@ -319,8 +319,8 @@ impl<'sess> OnDiskCache<'sess> {
|
|||||||
x.extend(diagnostics.into_iter());
|
x.extend(diagnostics.into_iter());
|
||||||
}
|
}
|
||||||
|
|
||||||
fn load_indexed<'a, 'tcx, T>(&self,
|
fn load_indexed<'tcx, T>(&self,
|
||||||
tcx: TyCtxt<'a, 'tcx, 'tcx>,
|
tcx: TyCtxt<'_, 'tcx, 'tcx>,
|
||||||
dep_node_index: SerializedDepNodeIndex,
|
dep_node_index: SerializedDepNodeIndex,
|
||||||
index: &FxHashMap<SerializedDepNodeIndex,
|
index: &FxHashMap<SerializedDepNodeIndex,
|
||||||
AbsoluteBytePos>,
|
AbsoluteBytePos>,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user