We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c9258e commit 5075174Copy full SHA for 5075174
src/bootstrap/cache.rs
@@ -169,12 +169,20 @@ impl Ord for Interned<String> {
169
}
170
171
172
-#[derive(Default)]
173
struct TyIntern<T: Hash + Clone + Eq> {
174
items: Vec<T>,
175
set: HashMap<T, Interned<T>>,
176
177
+impl<T: Hash + Clone + Eq> Default for TyIntern<T> {
178
+ fn default() -> Self {
179
+ TyIntern {
180
+ items: Vec::new(),
181
+ set: Default::default(),
182
+ }
183
184
+}
185
+
186
impl<T: Hash + Clone + Eq> TyIntern<T> {
187
fn intern_borrow<B>(&mut self, item: &B) -> Interned<T>
188
where
0 commit comments