about summary refs log tree commit diff
path: root/compiler/rustc_middle/src/query
diff options
context:
space:
mode:
authorCamille GILLOT <gillot.camille@gmail.com>2022-02-01 18:28:24 +0100
committerCamille GILLOT <gillot.camille@gmail.com>2022-02-09 20:11:01 +0100
commite52131efad56b2c55a3ca2a09011d71f1ae358a5 (patch)
treee5724fa66c4fab653bdb3c240bef0085d4170238 /compiler/rustc_middle/src/query
parentf72f15ca2861f8635f6240b083952f3bd3b78dee (diff)
downloadrust-e52131efad56b2c55a3ca2a09011d71f1ae358a5.tar.gz
rust-e52131efad56b2c55a3ca2a09011d71f1ae358a5.zip
Use a slice for object_lifetime_defaults.
Diffstat (limited to 'compiler/rustc_middle/src/query')
-rw-r--r--compiler/rustc_middle/src/query/mod.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/compiler/rustc_middle/src/query/mod.rs b/compiler/rustc_middle/src/query/mod.rs
index 387db37f783..f6963cf110b 100644
--- a/compiler/rustc_middle/src/query/mod.rs
+++ b/compiler/rustc_middle/src/query/mod.rs
@@ -1490,9 +1490,7 @@ rustc_queries! {
     /// for each parameter if a trait object were to be passed for that parameter.
     /// For example, for `struct Foo<'a, T, U>`, this would be `['static, 'static]`.
     /// For `struct Foo<'a, T: 'a, U>`, this would instead be `['a, 'static]`.
-    query object_lifetime_defaults_map(_: LocalDefId)
-        -> Option<Vec<ObjectLifetimeDefault>> {
-        storage(ArenaCacheSelector<'tcx>)
+    query object_lifetime_defaults(_: LocalDefId) -> Option<&'tcx [ObjectLifetimeDefault]> {
         desc { "looking up lifetime defaults for a region on an item" }
     }
     query late_bound_vars_map(_: LocalDefId)