Skip to content

Commit 9844956

Browse files
committed
Auto merge of #130724 - compiler-errors:bump, r=Mark-Simulacrum
Bump stage0 to beta-2024-09-22 and rustfmt to nightly-2024-09-22 I'm doing this to apply the changes to version sorting (rust-lang/rustfmt#6284) that have occurred since rustfmt last upgraded (and a few other miscellaneous changes, like changes to expression overflowing: rust-lang/rustfmt#6260). Eagerly updating rustfmt and formatting-the-world will ideally move some of the pressure off of the beta bump which will happen at the beginning of the next release cycle. You can verify this is correct by checking out the changes, reverting the last commit, reapplying them, and diffing the changes: ``` git fetch git@github.com:compiler-errors/rust.git bump git checkout -b bump FETCH_HEAD git reset --hard HEAD~5 ./x.py fmt --all git diff FETCH_HEAD # ignore the changes to stage0, and rustfmt.toml, # and test file changes in rustdoc-js-std, run-make. ``` Or just take my word for it? Up to the reviewer. r? release
2 parents ff83717 + 9329afd commit 9844956

27 files changed

+77
-99
lines changed

build_system/abi_cafe.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use crate::path::{Dirs, RelPath};
22
use crate::prepare::GitRepo;
3-
use crate::utils::{spawn_and_wait, CargoProject, Compiler};
4-
use crate::{build_sysroot, CodegenBackend, SysrootKind};
3+
use crate::utils::{CargoProject, Compiler, spawn_and_wait};
4+
use crate::{CodegenBackend, SysrootKind, build_sysroot};
55

66
static ABI_CAFE_REPO: GitRepo = GitRepo::github(
77
"Gankra",

build_system/bench.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use std::path::Path;
55
use crate::path::{Dirs, RelPath};
66
use crate::prepare::GitRepo;
77
use crate::rustc_info::get_file_name;
8-
use crate::utils::{hyperfine_command, spawn_and_wait, Compiler};
8+
use crate::utils::{Compiler, hyperfine_command, spawn_and_wait};
99

1010
static SIMPLE_RAYTRACER_REPO: GitRepo = GitRepo::github(
1111
"ebobby",

build_system/build_sysroot.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ use std::{env, fs};
55
use crate::path::{Dirs, RelPath};
66
use crate::rustc_info::get_file_name;
77
use crate::utils::{
8-
remove_dir_if_exists, spawn_and_wait, try_hard_link, CargoProject, Compiler, LogGroup,
8+
CargoProject, Compiler, LogGroup, remove_dir_if_exists, spawn_and_wait, try_hard_link,
99
};
10-
use crate::{config, CodegenBackend, SysrootKind};
10+
use crate::{CodegenBackend, SysrootKind, config};
1111

1212
static DIST_DIR: RelPath = RelPath::DIST;
1313
static BIN_DIR: RelPath = RelPath::DIST.join("bin");

build_system/tests.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ use std::path::PathBuf;
44
use std::process::Command;
55

66
use crate::path::{Dirs, RelPath};
7-
use crate::prepare::{apply_patches, GitRepo};
7+
use crate::prepare::{GitRepo, apply_patches};
88
use crate::rustc_info::get_default_sysroot;
99
use crate::shared_utils::rustflags_from_env;
10-
use crate::utils::{spawn_and_wait, CargoProject, Compiler, LogGroup};
11-
use crate::{build_sysroot, config, CodegenBackend, SysrootKind};
10+
use crate::utils::{CargoProject, Compiler, LogGroup, spawn_and_wait};
11+
use crate::{CodegenBackend, SysrootKind, build_sysroot, config};
1212

1313
static BUILD_EXAMPLE_OUT_DIR: RelPath = RelPath::BUILD.join("example");
1414

example/std_example.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -238,10 +238,9 @@ unsafe fn test_simd() {
238238
let (zero0, zero1) = std::mem::transmute::<_, (u64, u64)>(x);
239239
assert_eq!((zero0, zero1), (0, 0));
240240
assert_eq!(std::mem::transmute::<_, [u16; 8]>(or), [7, 7, 7, 7, 7, 7, 7, 7]);
241-
assert_eq!(
242-
std::mem::transmute::<_, [u16; 8]>(cmp_eq),
243-
[0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff]
244-
);
241+
assert_eq!(std::mem::transmute::<_, [u16; 8]>(cmp_eq), [
242+
0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff
243+
]);
245244
assert_eq!(std::mem::transmute::<_, [u16; 8]>(cmp_lt), [0, 0, 0, 0, 0, 0, 0, 0]);
246245

247246
test_mm_slli_si128();

src/abi/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ use cranelift_module::ModuleError;
1313
use rustc_codegen_ssa::base::is_call_from_compiler_builtins_to_upstream_monomorphization;
1414
use rustc_codegen_ssa::errors::CompilerBuiltinsCannotCall;
1515
use rustc_middle::middle::codegen_fn_attrs::CodegenFnAttrFlags;
16+
use rustc_middle::ty::TypeVisitableExt;
1617
use rustc_middle::ty::layout::FnAbiOf;
1718
use rustc_middle::ty::print::with_no_trimmed_paths;
18-
use rustc_middle::ty::TypeVisitableExt;
1919
use rustc_session::Session;
2020
use rustc_span::source_map::Spanned;
2121
use rustc_target::abi::call::{Conv, FnAbi, PassMode};

src/abi/pass_mode.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use cranelift_codegen::ir::{ArgumentExtension, ArgumentPurpose};
44
use rustc_target::abi::call::{
55
ArgAbi, ArgAttributes, ArgExtension as RustcArgExtension, CastTarget, PassMode, Reg, RegKind,
66
};
7-
use smallvec::{smallvec, SmallVec};
7+
use smallvec::{SmallVec, smallvec};
88

99
use crate::prelude::*;
1010
use crate::value_and_place::assert_assignable;

src/abi/returning.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//! Return value handling
22
33
use rustc_target::abi::call::{ArgAbi, PassMode};
4-
use smallvec::{smallvec, SmallVec};
4+
use smallvec::{SmallVec, smallvec};
55

66
use crate::prelude::*;
77

src/allocator.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
// Adapted from rustc
33

44
use rustc_ast::expand::allocator::{
5-
alloc_error_handler_name, default_fn_name, global_fn_name, AllocatorKind, AllocatorTy,
6-
ALLOCATOR_METHODS, NO_ALLOC_SHIM_IS_UNSTABLE,
5+
ALLOCATOR_METHODS, AllocatorKind, AllocatorTy, NO_ALLOC_SHIM_IS_UNSTABLE,
6+
alloc_error_handler_name, default_fn_name, global_fn_name,
77
};
88
use rustc_codegen_ssa::base::allocator_kind_for_codegen;
99
use rustc_session::config::OomStrategy;

src/base.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
//! Codegen of a single function
22
3-
use cranelift_codegen::ir::UserFuncName;
43
use cranelift_codegen::CodegenError;
4+
use cranelift_codegen::ir::UserFuncName;
55
use cranelift_frontend::{FunctionBuilder, FunctionBuilderContext};
66
use cranelift_module::ModuleError;
77
use rustc_ast::InlineAsmOptions;
88
use rustc_codegen_ssa::base::is_call_from_compiler_builtins_to_upstream_monomorphization;
99
use rustc_index::IndexVec;
1010
use rustc_middle::middle::codegen_fn_attrs::CodegenFnAttrFlags;
11+
use rustc_middle::ty::TypeVisitableExt;
1112
use rustc_middle::ty::adjustment::PointerCoercion;
1213
use rustc_middle::ty::layout::FnAbiOf;
1314
use rustc_middle::ty::print::with_no_trimmed_paths;
14-
use rustc_middle::ty::TypeVisitableExt;
1515

1616
use crate::constant::ConstantCx;
1717
use crate::debuginfo::{FunctionDebugContext, TypeDebugContext};

0 commit comments

Comments
 (0)