Remove needless lifetimes

This commit is contained in:
Jeremy Stucki 2019-06-21 23:49:03 +02:00 committed by Jeremy Stucki
parent ec711767a7
commit d28832dde9
No known key found for this signature in database
GPG key ID: 8F548A5A2ED13F58
48 changed files with 182 additions and 182 deletions

View file

@ -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;

View file

@ -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());

View file

@ -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;