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.
RefCell::take
1 parent 14ef636 commit b1ed492Copy full SHA for b1ed492
src/tools/rust-analyzer/crates/hir-def/src/lower.rs
@@ -65,6 +65,6 @@ impl<'a> LowerCtx<'a> {
65
}
66
67
pub fn take_impl_traits_bounds(&self) -> Vec<Vec<Interned<TypeBound>>> {
68
- self.impl_trait_bounds.borrow_mut().drain(..).collect()
+ self.impl_trait_bounds.take()
69
70
0 commit comments