add note to opt_const_param_of
This commit is contained in:
parent
7e11379f3b
commit
e8d16fdf9f
1 changed files with 5 additions and 1 deletions
|
|
@ -103,9 +103,13 @@ rustc_queries! {
|
|||
/// // ^ While calling `opt_const_param_of` for other bodies returns `None`.
|
||||
/// }
|
||||
/// ```
|
||||
// It looks like caching this query on disk actually slightly
|
||||
// worsened performance in #74376.
|
||||
//
|
||||
// Once const generics are more prevalently used, we might want to
|
||||
// consider only caching calls returning `Some`.
|
||||
query opt_const_param_of(key: LocalDefId) -> Option<DefId> {
|
||||
desc { |tcx| "computing the optional const parameter of `{}`", tcx.def_path_str(key.to_def_id()) }
|
||||
// FIXME(#74113): consider storing this query on disk.
|
||||
}
|
||||
|
||||
/// Records the type of every item.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue