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 48b4030 commit a833a49Copy full SHA for a833a49
src/stacked_borrows/stack.rs
@@ -41,7 +41,6 @@ pub struct Stack {
41
42
impl Stack {
43
pub fn retain(&mut self, tags: &FxHashSet<SbTag>) {
44
- #[cfg(feature = "stack-cache")]
45
let mut first_removed = None;
46
47
let mut read_idx = 1;
@@ -73,6 +72,9 @@ impl Stack {
73
72
}
74
self.borrows.truncate(write_idx);
75
+ #[cfg(not(feature = "stack-cache"))]
76
+ drop(first_removed); // This is only needed for the stack-cache
77
+
78
#[cfg(feature = "stack-cache")]
79
if let Some(first_removed) = first_removed {
80
// Either end of unique_range may have shifted, all we really know is that we can't
0 commit comments