about summary refs log tree commit diff
path: root/compiler/rustc_monomorphize/src/collector.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_monomorphize/src/collector.rs
parent854f22563c8daf92709fae18ee6aed52953835cd (diff)
downloadrust-24cdaa146a166e679cbc3fc5187315b043090af2.tar.gz
rust-24cdaa146a166e679cbc3fc5187315b043090af2.zip
Rename `tcx.ensure()` to `tcx.ensure_ok()`
Diffstat (limited to 'compiler/rustc_monomorphize/src/collector.rs')
-rw-r--r--compiler/rustc_monomorphize/src/collector.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_monomorphize/src/collector.rs b/compiler/rustc_monomorphize/src/collector.rs
index 246faed50e3..de8a20c5dee 100644
--- a/compiler/rustc_monomorphize/src/collector.rs
+++ b/compiler/rustc_monomorphize/src/collector.rs
@@ -1222,7 +1222,7 @@ fn collect_items_of_instance<'tcx>(
     mode: CollectionMode,
 ) -> (MonoItems<'tcx>, MonoItems<'tcx>) {
     // This item is getting monomorphized, do mono-time checks.
-    tcx.ensure().check_mono_item(instance);
+    tcx.ensure_ok().check_mono_item(instance);
 
     let body = tcx.instance_mir(instance.def);
     // Naively, in "used" collection mode, all functions get added to *both* `used_items` and