Skip to content

Commit e0a3c61

Browse files
committed
update miri-script and format edition to 2024
1 parent 15d129c commit e0a3c61

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

miri-script/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ name = "miri-script"
66
repository = "https://github.com/rust-lang/miri"
77
version = "0.1.0"
88
default-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.

miri-script/src/util.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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.

tests/pass/coroutine.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -183,18 +183,18 @@ fn basic() {
183183

184184
fn 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

0 commit comments

Comments
 (0)