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"
6
6
repository = " https://github.com/rust-lang/miri"
7
7
version = " 0.1.0"
8
8
default-run = " miri-script"
9
- edition = " 2021 "
9
+ edition = " 2024 "
10
10
11
11
[workspace ]
12
12
# 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 {
213
213
let toolchain = & self . toolchain ;
214
214
let mut cmd = cmd ! (
215
215
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...}"
217
217
) ;
218
218
if first {
219
219
// Log an abbreviating command, and only once.
Original file line number Diff line number Diff line change @@ -183,18 +183,18 @@ fn basic() {
183
183
184
184
fn smoke_resume_arg ( ) {
185
185
fn drain < G : Coroutine < R , Yield = Y > + Unpin , R , Y > (
186
- gen : & mut G ,
186
+ gen_ : & mut G ,
187
187
inout : Vec < ( R , CoroutineState < Y , G :: Return > ) > ,
188
188
) where
189
189
Y : Debug + PartialEq ,
190
190
G :: Return : Debug + PartialEq ,
191
191
{
192
- let mut gen = Pin :: new ( gen ) ;
192
+ let mut gen_ = Pin :: new ( gen_ ) ;
193
193
194
194
for ( input, out) in inout {
195
- assert_eq ! ( gen . as_mut( ) . resume( input) , out) ;
195
+ assert_eq ! ( gen_ . as_mut( ) . resume( input) , out) ;
196
196
// 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 ( ) ) ) } ;
198
198
}
199
199
}
200
200
You can’t perform that action at this time.
0 commit comments