diff options
| author | Zalathar <Zalathar@users.noreply.github.com> | 2025-01-30 16:20:09 +1100 |
|---|---|---|
| committer | Zalathar <Zalathar@users.noreply.github.com> | 2025-02-01 12:38:54 +1100 |
| commit | 24cdaa146a166e679cbc3fc5187315b043090af2 (patch) | |
| tree | fae749274d49618dbf7e7ae692965fce9e3576e0 /compiler/rustc_metadata/src | |
| parent | 854f22563c8daf92709fae18ee6aed52953835cd (diff) | |
| download | rust-24cdaa146a166e679cbc3fc5187315b043090af2.tar.gz rust-24cdaa146a166e679cbc3fc5187315b043090af2.zip | |
Rename `tcx.ensure()` to `tcx.ensure_ok()`
Diffstat (limited to 'compiler/rustc_metadata/src')
| -rw-r--r-- | compiler/rustc_metadata/src/rmeta/decoder/cstore_impl.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_metadata/src/rmeta/decoder/cstore_impl.rs b/compiler/rustc_metadata/src/rmeta/decoder/cstore_impl.rs index da07ad8f6c0..5fcb9c85035 100644 --- a/compiler/rustc_metadata/src/rmeta/decoder/cstore_impl.rs +++ b/compiler/rustc_metadata/src/rmeta/decoder/cstore_impl.rs @@ -165,7 +165,7 @@ macro_rules! provide_one { // doesn't need to do this (and can't, as it would cause a query cycle). use rustc_middle::dep_graph::dep_kinds; if dep_kinds::$name != dep_kinds::crate_hash && $tcx.dep_graph.is_fully_enabled() { - $tcx.ensure().crate_hash($def_id.krate); + $tcx.ensure_ok().crate_hash($def_id.krate); } let cdata = rustc_data_structures::sync::FreezeReadGuard::map(CStore::from_tcx($tcx), |c| { |
