about summary refs log tree commit diff
path: root/compiler/rustc_lint/src/late.rs
diff options
context:
space:
mode:
authorZalathar <Zalathar@users.noreply.github.com>2025-01-30 16:20:09 +1100
committerZalathar <Zalathar@users.noreply.github.com>2025-02-01 12:38:54 +1100
commit24cdaa146a166e679cbc3fc5187315b043090af2 (patch)
treefae749274d49618dbf7e7ae692965fce9e3576e0 /compiler/rustc_lint/src/late.rs
parent854f22563c8daf92709fae18ee6aed52953835cd (diff)
downloadrust-24cdaa146a166e679cbc3fc5187315b043090af2.tar.gz
rust-24cdaa146a166e679cbc3fc5187315b043090af2.zip
Rename `tcx.ensure()` to `tcx.ensure_ok()`
Diffstat (limited to 'compiler/rustc_lint/src/late.rs')
-rw-r--r--compiler/rustc_lint/src/late.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_lint/src/late.rs b/compiler/rustc_lint/src/late.rs
index c6d7b839e19..826ecc22c24 100644
--- a/compiler/rustc_lint/src/late.rs
+++ b/compiler/rustc_lint/src/late.rs
@@ -458,7 +458,7 @@ pub fn check_crate<'tcx>(tcx: TyCtxt<'tcx>) {
         || {
             tcx.sess.time("module_lints", || {
                 // Run per-module lints
-                tcx.hir().par_for_each_module(|module| tcx.ensure().lint_mod(module));
+                tcx.hir().par_for_each_module(|module| tcx.ensure_ok().lint_mod(module));
             });
         },
     );