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
commit514fe39e250569a3c894c116a8abe95f635fef1f (patch)
treedb5f1c8eb2e75b98cd2251c583bb6181d0717884
parentbd0a886b7ee9a83b49c6ff7ef18c9a759073e915 (diff)
parent22aac496cc674222f14d162c545158e54942e9a5 (diff)
downloadrust-514fe39e250569a3c894c116a8abe95f635fef1f.tar.gz
rust-514fe39e250569a3c894c116a8abe95f635fef1f.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/items.rs1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/items.rs b/src/items.rs
index c8ea104e9d6..eb11604b277 100644
--- a/src/items.rs
+++ b/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!(
         "{}{}{}{} {}{}{}",