about summary refs log tree commit diff
path: root/tests
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-06-20 14:07:04 +0200
committerGitHub <noreply@github.com>2024-06-20 14:07:04 +0200
commitef2e8bfcbfb10d54b8b8a0cdbe509783c7db5023 (patch)
treeaa2aaa1a9e1624a084668dabcb8dd65313652847 /tests
parent7b91d11abb8883d903cbd09b07e022ede814b89d (diff)
parentb5a5647ee0f8af226fcc44a3e6b054fc758a785e (diff)
Rollup merge of #126717 - nnethercote:rustfmt-use-pre-cleanups, r=jieyouxu
Clean up some comments near `use` declarations

#125443 will reformat all `use` declarations in the repository. There are a few edge cases involving comments on `use` declarations that require care. This PR cleans up some clumsy comment cases, taking us a step closer to #125443 being able to merge.

r? ``@lqd``
Diffstat (limited to 'tests')
-rw-r--r--tests/mir-opt/issue_76432.rs2
-rw-r--r--tests/run-make/symlinked-libraries/rmake.rs1
2 files changed, 2 insertions, 1 deletions
diff --git a/tests/mir-opt/issue_76432.rs b/tests/mir-opt/issue_76432.rs
index be5ccbd49e2..0daeb85434f 100644
--- a/tests/mir-opt/issue_76432.rs
+++ b/tests/mir-opt/issue_76432.rs
@@ -3,9 +3,9 @@
 //@ compile-flags: -Zmir-enable-passes=-NormalizeArrayLen
 // Check that we do not insert StorageDead at each target if StorageDead was never seen
 
-// EMIT_MIR issue_76432.test.SimplifyComparisonIntegral.diff
 use std::fmt::Debug;
 
+// EMIT_MIR issue_76432.test.SimplifyComparisonIntegral.diff
 fn test<T: Copy + Debug + PartialEq>(x: T) {
     let v: &[T] = &[x, x, x];
     match v {
diff --git a/tests/run-make/symlinked-libraries/rmake.rs b/tests/run-make/symlinked-libraries/rmake.rs
index eaf0c44206a..3f02f19ccd5 100644
--- a/tests/run-make/symlinked-libraries/rmake.rs
+++ b/tests/run-make/symlinked-libraries/rmake.rs
@@ -6,6 +6,7 @@
 // See https://github.com/rust-lang/rust/issues/12459
 
 //@ ignore-cross-compile
+
 use run_make_support::{create_symlink, dynamic_lib_name, fs_wrapper, rustc};
 
 fn main() {