about summary refs log tree commit diff
diff options
context:
space:
mode:
authorantoyo <antoyo@users.noreply.github.com>2025-01-14 10:14:25 -0500
committerGitHub <noreply@github.com>2025-01-14 10:14:25 -0500
commitf703358a139b96b99c6ddfea06f6b5bd6ae51f3f (patch)
tree026bd5f81e1b5fc13b1b4d998455755cd2135ead
parent59a81c2ca1edc88ad3ac4b27a8e03977ffb8e73a (diff)
parent232d8a4fc090c0401502a8b385b52d6fb8577381 (diff)
downloadrust-f703358a139b96b99c6ddfea06f6b5bd6ae51f3f.tar.gz
rust-f703358a139b96b99c6ddfea06f6b5bd6ae51f3f.zip
Merge pull request #597 from rust-lang/sync_from_rust_2025_01_14
Sync from rust 2025/01/14
-rw-r--r--.rustfmt.toml4
-rw-r--r--src/intrinsic/mod.rs4
-rw-r--r--tests/lang_tests_common.rs8
3 files changed, 8 insertions, 8 deletions
diff --git a/.rustfmt.toml b/.rustfmt.toml
index 725aec25a07..a11bc41680d 100644
--- a/.rustfmt.toml
+++ b/.rustfmt.toml
@@ -1,3 +1,5 @@
-version = "Two"
+style_edition = "2024"
 use_small_heuristics = "Max"
 merge_derives = false
+group_imports = "StdExternalCrate"
+imports_granularity = "Module"
diff --git a/src/intrinsic/mod.rs b/src/intrinsic/mod.rs
index 11f9604c6d2..42d189d1b7d 100644
--- a/src/intrinsic/mod.rs
+++ b/src/intrinsic/mod.rs
@@ -13,11 +13,11 @@ use rustc_codegen_ssa::common::IntPredicate;
 use rustc_codegen_ssa::errors::InvalidMonomorphization;
 use rustc_codegen_ssa::mir::operand::{OperandRef, OperandValue};
 use rustc_codegen_ssa::mir::place::{PlaceRef, PlaceValue};
-use rustc_codegen_ssa::traits::BaseTypeCodegenMethods;
 #[cfg(feature = "master")]
 use rustc_codegen_ssa::traits::MiscCodegenMethods;
 use rustc_codegen_ssa::traits::{
-    ArgAbiBuilderMethods, BuilderMethods, ConstCodegenMethods, IntrinsicCallBuilderMethods,
+    ArgAbiBuilderMethods, BaseTypeCodegenMethods, BuilderMethods, ConstCodegenMethods,
+    IntrinsicCallBuilderMethods,
 };
 use rustc_middle::bug;
 #[cfg(feature = "master")]
diff --git a/tests/lang_tests_common.rs b/tests/lang_tests_common.rs
index fafb7be55ce..64c932a2658 100644
--- a/tests/lang_tests_common.rs
+++ b/tests/lang_tests_common.rs
@@ -1,10 +1,8 @@
 //! The common code for `tests/lang_tests_*.rs`
 
-use std::{
-    env::{self, current_dir},
-    path::{Path, PathBuf},
-    process::Command,
-};
+use std::env::{self, current_dir};
+use std::path::{Path, PathBuf};
+use std::process::Command;
 
 use boml::Toml;
 use lang_tester::LangTester;