Remove out-of-date comment.
Keys and values now must be `Copy` due to erasing.
This commit is contained in:
parent
18d13b5332
commit
e1ed3bf01d
1 changed files with 0 additions and 3 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue