@@ -7,8 +7,8 @@ use std::num::NonZeroU64;
77use log:: trace;
88use smallvec:: SmallVec ;
99
10- use stacked:: diagnostics:: { RetagCause } ;
1110use rustc_data_structures:: fx:: { FxHashMap , FxHashSet } ;
11+ use stacked:: diagnostics:: RetagCause ;
1212
1313use crate :: * ;
1414
@@ -251,15 +251,14 @@ impl Method {
251251 machine : & MiriMachine < ' mir , ' tcx > ,
252252 ) -> Option < State > {
253253 match self {
254- Method :: StackedBorrows => {
254+ Method :: StackedBorrows =>
255255 Some ( State :: Stack ( RefCell :: new ( Stacks :: new_allocation (
256256 id,
257257 alloc. size ( ) ,
258258 global. unwrap ( ) ,
259259 kind,
260260 machine,
261- ) ) ) )
262- } ,
261+ ) ) ) ) ,
263262 Method :: Off => None ,
264263 }
265264 }
@@ -290,13 +289,7 @@ impl State {
290289 {
291290 match self {
292291 State :: Stack ( sb) =>
293- sb. borrow_mut ( ) . before_memory_read (
294- alloc_id,
295- prov_extra,
296- range,
297- state,
298- machine,
299- ) ,
292+ sb. borrow_mut ( ) . before_memory_read ( alloc_id, prov_extra, range, state, machine) ,
300293 }
301294 }
302295
@@ -310,13 +303,7 @@ impl State {
310303 ) -> InterpResult < ' tcx > {
311304 match self {
312305 State :: Stack ( sb) =>
313- sb. get_mut ( ) . before_memory_write (
314- alloc_id,
315- prov_extra,
316- range,
317- state,
318- machine,
319- ) ,
306+ sb. get_mut ( ) . before_memory_write ( alloc_id, prov_extra, range, state, machine) ,
320307 }
321308 }
322309
@@ -330,13 +317,7 @@ impl State {
330317 ) -> InterpResult < ' tcx > {
331318 match self {
332319 State :: Stack ( sb) =>
333- sb. get_mut ( ) . before_memory_deallocation (
334- alloc_id,
335- prov_extra,
336- range,
337- state,
338- machine,
339- ) ,
320+ sb. get_mut ( ) . before_memory_deallocation ( alloc_id, prov_extra, range, state, machine) ,
340321 }
341322 }
342323
0 commit comments