File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ name = "miri-script"
66repository  = " https://github.com/rust-lang/miri" 
77version  = " 0.1.0" 
88default-run  = " miri-script" 
9- edition  = " 2021 " 
9+ edition  = " 2024 " 
1010
1111[workspace ]
1212#  We make this a workspace root so that cargo does not go looking in ../Cargo.toml for the workspace root.
Original file line number Diff line number Diff line change @@ -213,7 +213,7 @@ impl MiriEnv {
213213            let  toolchain = & self . toolchain ; 
214214            let  mut  cmd = cmd ! ( 
215215                self . sh, 
216-                 "rustfmt +{toolchain} --edition=2021  --config-path {config_path} --unstable-features --skip-children {flags...}" 
216+                 "rustfmt +{toolchain} --edition=2024  --config-path {config_path} --unstable-features --skip-children {flags...}" 
217217            ) ; 
218218            if  first { 
219219                // Log an abbreviating command, and only once. 
Original file line number Diff line number Diff line change @@ -183,18 +183,18 @@ fn basic() {
183183
184184fn  smoke_resume_arg ( )  { 
185185    fn  drain < G :  Coroutine < R ,  Yield  = Y >  + Unpin ,  R ,  Y > ( 
186-         gen :  & mut  G , 
186+         gen_ :  & mut  G , 
187187        inout :  Vec < ( R ,  CoroutineState < Y ,  G :: Return > ) > , 
188188    )  where 
189189        Y :  Debug  + PartialEq , 
190190        G :: Return :  Debug  + PartialEq , 
191191    { 
192-         let  mut  gen  = Pin :: new ( gen ) ; 
192+         let  mut  gen_  = Pin :: new ( gen_ ) ; 
193193
194194        for  ( input,  out)  in  inout { 
195-             assert_eq ! ( gen . as_mut( ) . resume( input) ,  out) ; 
195+             assert_eq ! ( gen_ . as_mut( ) . resume( input) ,  out) ; 
196196            // Test if the coroutine is valid (according to type invariants). 
197-             let  _ = unsafe  {  ManuallyDrop :: new ( ptr:: read ( gen . as_mut ( ) . get_unchecked_mut ( ) ) )  } ; 
197+             let  _ = unsafe  {  ManuallyDrop :: new ( ptr:: read ( gen_ . as_mut ( ) . get_unchecked_mut ( ) ) )  } ; 
198198        } 
199199    } 
200200
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments