We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
opt_const_param_of
1 parent 7e11379 commit e8d16fdCopy full SHA for e8d16fd
src/librustc_middle/query/mod.rs
@@ -103,9 +103,13 @@ rustc_queries! {
103
/// // ^ While calling `opt_const_param_of` for other bodies returns `None`.
104
/// }
105
/// ```
106
+ // It looks like caching this query on disk actually slightly
107
+ // worsened performance in #74376.
108
+ //
109
+ // Once const generics are more prevalently used, we might want to
110
+ // consider only caching calls returning `Some`.
111
query opt_const_param_of(key: LocalDefId) -> Option<DefId> {
112
desc { |tcx| "computing the optional const parameter of `{}`", tcx.def_path_str(key.to_def_id()) }
- // FIXME(#74113): consider storing this query on disk.
113
}
114
115
/// Records the type of every item.
0 commit comments