Remove out-of-date comment.

Keys and values now must be `Copy` due to erasing.
This commit is contained in:
Nicholas Nethercote 2026-02-10 12:22:40 +11:00
parent 18d13b5332
commit e1ed3bf01d

View file

@ -21,9 +21,6 @@ pub trait QueryCacheKey = Hash + Eq + Copy + Debug + for<'a> HashStable<StableHa
/// Types implementing this trait are associated with actual key/value types
/// by the `Cache` associated type of the `rustc_middle::query::Key` trait.
pub trait QueryCache: Sized {
// `Key` and `Value` are `Copy` instead of `Clone` to ensure copying them stays cheap,
// but it isn't strictly necessary.
// FIXME: Is that comment still true?
type Key: QueryCacheKey;
type Value: Copy;