Skip to content

Commit 2c29786

Browse files
committed
fix: scoped API change
1 parent ae3ca8b commit 2c29786

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

libs/@local/hashql/ast/src/lower/expander/fn.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ where
146146

147147
{
148148
let diagnostics = &mut expander.diagnostics;
149-
expander.scratch.scoped(|scratch| {
149+
expander.scratch.scoped_mut(|scratch| {
150150
let mut seen = fast_hash_map_with_capacity_in(generics.params.len(), scratch);
151151

152152
generics.params.retain(|param| {
@@ -207,7 +207,7 @@ where
207207

208208
{
209209
let diagnostics = &mut expander.diagnostics;
210-
expander.scratch.scoped(|scratch| {
210+
expander.scratch.scoped_mut(|scratch| {
211211
let mut seen = fast_hash_map_with_capacity_in(params.len(), scratch);
212212

213213
params.retain(|param| {

libs/@local/hashql/ast/src/lower/expander/type.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ where
311311
{
312312
// Generic constraints _may_ be recursive. To allow for that we must put the name of the
313313
// ident into view before we do anything
314-
let constraints = expander.scratch.scoped(|scratch| {
314+
let constraints = expander.scratch.scoped_mut(|scratch| {
315315
path_arguments_to_constraints_unvalidated(
316316
expander.heap,
317317
scratch,

libs/@local/hashql/ast/src/lower/expander/use.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ where
155155

156156
if let Some(UseKind::Named(bindings)) = &mut imports {
157157
let diagnostics = &mut expander.diagnostics;
158-
expander.scratch.scoped(|scratch| {
158+
expander.scratch.scoped_mut(|scratch| {
159159
let mut seen = fast_hash_map_with_capacity_in(bindings.len(), scratch);
160160

161161
bindings.retain(|binding| {

0 commit comments

Comments
 (0)