summary refs log tree commit diff
path: root/compiler/rustc_metadata/src/rmeta/decoder
diff options
context:
space:
mode:
authorKyle Matsuda <kyle.yoshio.matsuda@gmail.com>2023-04-20 12:33:32 -0600
committerKyle Matsuda <kyle.yoshio.matsuda@gmail.com>2023-04-21 09:57:37 -0600
commit5a69b5d0f9753a7e780849ec930b1bb48653588b (patch)
treef281b832750475228585796d21a8be0f50bda2f6 /compiler/rustc_metadata/src/rmeta/decoder
parente54854f6a93f4121ac55d895830414d33bd3aa8e (diff)
downloadrust-5a69b5d0f9753a7e780849ec930b1bb48653588b.tar.gz
rust-5a69b5d0f9753a7e780849ec930b1bb48653588b.zip
Changes from review
Diffstat (limited to 'compiler/rustc_metadata/src/rmeta/decoder')
-rw-r--r--compiler/rustc_metadata/src/rmeta/decoder/cstore_impl.rs6
1 files changed, 1 insertions, 5 deletions
diff --git a/compiler/rustc_metadata/src/rmeta/decoder/cstore_impl.rs b/compiler/rustc_metadata/src/rmeta/decoder/cstore_impl.rs
index 0ca1d9ac6ff..92d69aeb771 100644
--- a/compiler/rustc_metadata/src/rmeta/decoder/cstore_impl.rs
+++ b/compiler/rustc_metadata/src/rmeta/decoder/cstore_impl.rs
@@ -203,11 +203,7 @@ impl IntoArgs for (CrateNum, SimplifiedType) {
 }
 
 provide! { tcx, def_id, other, cdata,
-    explicit_item_bounds => {
-        let lazy = cdata.root.tables.explicit_item_bounds.get(cdata, def_id.index);
-        let output = if lazy.is_default() { &mut [] } else { tcx.arena.alloc_from_iter(lazy.decode((cdata, tcx))) };
-        ty::EarlyBinder(&*output)
-    }
+    explicit_item_bounds => { cdata.get_explicit_item_bounds(def_id.index, tcx) }
     explicit_predicates_of => { table }
     generics_of => { table }
     inferred_outlives_of => { table_defaulted_array }