RS.CLIPPY.PRINT_STDERR

Printing on stderr

This checker is a Clippy lint created by The Rust Project Contributors. The documentation shown here is a copy of the original documentation for: print_stderr. Copyright ©2025 The Rust Team. All rights reserved.

What it does

Checks for printing on stderr. The purpose of this lint is to catch debugging remnants.

Why restrict this?

People often print on stderr while debugging an application and might forget to remove those prints afterward.

Known problems

Only catches eprint! and eprintln! calls.

Example

eprintln!("Hello world!");

Configuration

  • allow-print-in-tests: Whether print macros (ex. println!) should be allowed in test functions or #[cfg(test)]

    (default: false)