]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_passes/src/stability.rs
Rollup merge of #106767 - chbaker0:disable-unstable-features, r=Mark-Simulacrum
[rust.git] / compiler / rustc_passes / src / stability.rs
index da715523474f9bc6cb63c8da1b83880f71a67682..34e1abb78b2d4fa33323c278cd85d36d24a70fce 100644 (file)
@@ -147,7 +147,7 @@ fn annotate<F>(
         }
 
         if !self.tcx.features().staged_api {
-            // Propagate unstability.  This can happen even for non-staged-api crates in case
+            // Propagate unstability. This can happen even for non-staged-api crates in case
             // -Zforce-unstable-if-unmarked is set.
             if let Some(stab) = self.parent_stab {
                 if inherit_deprecation.yes() && stab.is_unstable() {
@@ -853,7 +853,7 @@ fn visit_path(&mut self, path: &hir::Path<'tcx>, id: hir::HirId) {
 /// Check whether a path is a `use` item that has been marked as unstable.
 ///
 /// See issue #94972 for details on why this is a special case
-fn is_unstable_reexport<'tcx>(tcx: TyCtxt<'tcx>, id: hir::HirId) -> bool {
+fn is_unstable_reexport(tcx: TyCtxt<'_>, id: hir::HirId) -> bool {
     // Get the LocalDefId so we can lookup the item to check the kind.
     let Some(def_id) = tcx.hir().opt_local_def_id(id) else { return false; };