about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-06-24 06:27:17 +0200
committerGitHub <noreply@github.com>2024-06-24 06:27:17 +0200
commitb94d2754b595220167c7ab4b7e4b68f4efa8dc34 (patch)
tree0f504fdb9bfca03ccde3dbef5f5f4b4dfcabf6cb
parent9892b3e9fe9a620ca9cf29c3415c4c8a07d1dcea (diff)
parent25446c25fc48f186e3a35697af42be644b0ff3fb (diff)
downloadrust-b94d2754b595220167c7ab4b7e4b68f4efa8dc34.tar.gz
rust-b94d2754b595220167c7ab4b7e4b68f4efa8dc34.zip
Rollup merge of #126888 - compiler-errors:oops-debug-printing, r=dtolnay
Remove stray println from rustfmt's `rewrite_static`

r? `@calebcartwright` `@ytmimi` -- though anyone should probably r+ this so it gets into nightly sooner than later, since it's obviously wrong.

This can just be fixed in-tree, since I don't think we want to wait until the next sync to fix this.

Fix https://github.com/rust-lang/rustfmt/issues/6210
Fix https://github.com/rust-lang/rust/issues/126887
-rw-r--r--src/tools/rustfmt/src/items.rs1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/tools/rustfmt/src/items.rs b/src/tools/rustfmt/src/items.rs
index c8ea104e9d6..eb11604b277 100644
--- a/src/tools/rustfmt/src/items.rs
+++ b/src/tools/rustfmt/src/items.rs
@@ -1994,7 +1994,6 @@ fn rewrite_static(
     static_parts: &StaticParts<'_>,
     offset: Indent,
 ) -> Option<String> {
-    println!("rewriting static");
     let colon = colon_spaces(context.config);
     let mut prefix = format!(
         "{}{}{}{} {}{}{}",