Remove needless lifetimes
This commit is contained in:
parent
ec711767a7
commit
d28832dde9
48 changed files with 182 additions and 182 deletions
|
|
@ -206,7 +206,7 @@ impl Assertion {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn check_dirty_clean_annotations<'tcx>(tcx: TyCtxt<'tcx>) {
|
||||
pub fn check_dirty_clean_annotations(tcx: TyCtxt<'_>) {
|
||||
// can't add `#[rustc_dirty]` etc without opting in to this feature
|
||||
if !tcx.features().rustc_attrs {
|
||||
return;
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ use super::fs::*;
|
|||
use super::file_format;
|
||||
use super::work_product;
|
||||
|
||||
pub fn dep_graph_tcx_init<'tcx>(tcx: TyCtxt<'tcx>) {
|
||||
pub fn dep_graph_tcx_init(tcx: TyCtxt<'_>) {
|
||||
if !tcx.dep_graph.is_fully_enabled() {
|
||||
return
|
||||
}
|
||||
|
|
@ -192,7 +192,7 @@ pub fn load_dep_graph(sess: &Session) -> DepGraphFuture {
|
|||
}))
|
||||
}
|
||||
|
||||
pub fn load_query_result_cache<'sess>(sess: &'sess Session) -> OnDiskCache<'sess> {
|
||||
pub fn load_query_result_cache(sess: &Session) -> OnDiskCache<'_> {
|
||||
if sess.opts.incremental.is_none() ||
|
||||
!sess.opts.debugging_opts.incremental_queries {
|
||||
return OnDiskCache::new_empty(sess.source_map());
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ use super::dirty_clean;
|
|||
use super::file_format;
|
||||
use super::work_product;
|
||||
|
||||
pub fn save_dep_graph<'tcx>(tcx: TyCtxt<'tcx>) {
|
||||
pub fn save_dep_graph(tcx: TyCtxt<'_>) {
|
||||
debug!("save_dep_graph()");
|
||||
tcx.dep_graph.with_ignore(|| {
|
||||
let sess = tcx.sess;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue