Skip to content

Commit

Permalink
Auto merge of #16465 - Veykril:eprintln, r=Veykril
Browse files Browse the repository at this point in the history
minor: Remove `stdx::eprintln` overwrite
  • Loading branch information
bors committed Jan 31, 2024
2 parents 1ab1a25 + 23f4b7f commit 42cb1a2
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 15 deletions.
5 changes: 0 additions & 5 deletions crates/rust-analyzer/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,6 @@

pub mod cli;

#[allow(unused)]
macro_rules! eprintln {
($($tt:tt)*) => { stdx::eprintln!($($tt)*) };
}

mod caps;
mod cargo_target_spec;
mod diagnostics;
Expand Down
10 changes: 0 additions & 10 deletions crates/stdx/src/macros.rs
Original file line number Diff line number Diff line change
@@ -1,15 +1,5 @@
//! Convenience macros.
#[macro_export]
macro_rules! eprintln {
($($tt:tt)*) => {{
if $crate::is_ci() {
panic!("Forgot to remove debug-print?")
}
std::eprintln!($($tt)*)
}}
}

/// Appends formatted string to a `String`.
#[macro_export]
macro_rules! format_to {
Expand Down

0 comments on commit 42cb1a2

Please sign in to comment.