mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 13:59:08 +00:00
Lints
This commit is contained in:
parent
478d4a2d44
commit
36beda63ba
1 changed files with 3 additions and 6 deletions
|
@ -236,7 +236,7 @@ pub trait LayoutInterner<'a>: Sized {
|
|||
static SCRATCHPAD: RefCell<Option<Vec<(InLayout<'static>, InLayout<'static>)>>> = RefCell::new(Some(Vec::with_capacity(64)));
|
||||
}
|
||||
|
||||
let answer = SCRATCHPAD.with(|f| {
|
||||
SCRATCHPAD.with(|f| {
|
||||
// SAFETY: the promotion to lifetime 'a only lasts during equivalence-checking; the
|
||||
// scratchpad stack is cleared after every use.
|
||||
let mut stack: Vec<(InLayout<'a>, InLayout<'a>)> =
|
||||
|
@ -249,9 +249,7 @@ pub trait LayoutInterner<'a>: Sized {
|
|||
unsafe { std::mem::transmute(stack) };
|
||||
f.replace(Some(stack));
|
||||
answer
|
||||
});
|
||||
|
||||
answer
|
||||
})
|
||||
}
|
||||
|
||||
fn to_doc<'b, D, A>(
|
||||
|
@ -550,8 +548,7 @@ impl<'a> GlobalLayoutInterner<'a> {
|
|||
vec: &mut vec,
|
||||
target_info: self.0.target_info,
|
||||
};
|
||||
let done = reify::reify_lambda_set_captures(arena, &mut interner, slot, normalized.set);
|
||||
done
|
||||
reify::reify_lambda_set_captures(arena, &mut interner, slot, normalized.set)
|
||||
} else {
|
||||
normalized.set
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue