Skip to content

Commit

Permalink
Auto merge of #12246 - epage:lint, r=weihanglo
Browse files Browse the repository at this point in the history
chore: Migrate print-ban from test to clippy

This should be more resilient to false positives like in #12245 where a string contains `println`.

See also #12224
  • Loading branch information
bors committed Jun 9, 2023
2 parents 173b88b + 9df5e79 commit 7a0b24b
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 107 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/main.yml
Expand Up @@ -218,6 +218,7 @@ jobs:
name: bors build finished
needs:
- build_std
- clippy
- docs
- lockfile
- resolver
Expand All @@ -234,6 +235,7 @@ jobs:
name: bors build finished
needs:
- build_std
- clippy
- docs
- lockfile
- resolver
Expand Down
2 changes: 2 additions & 0 deletions clippy.toml
@@ -1,3 +1,5 @@
allow-print-in-tests = true
allow-dbg-in-tests = true
disallowed-methods = [
{ path = "std::env::var", reason = "Use `Config::get_env` instead. See rust-lang/cargo#11588" },
{ path = "std::env::var_os", reason = "Use `Config::get_env_os` instead. See rust-lang/cargo#11588" },
Expand Down
3 changes: 3 additions & 0 deletions src/cargo/lib.rs
Expand Up @@ -6,6 +6,9 @@
#![allow(clippy::all)]
#![warn(clippy::disallowed_methods)]
#![warn(clippy::self_named_module_files)]
#![warn(clippy::print_stdout)]
#![warn(clippy::print_stderr)]
#![warn(clippy::dbg_macro)]
#![allow(rustdoc::private_intra_doc_links)]

//! # Cargo as a library
Expand Down
107 changes: 0 additions & 107 deletions tests/internal.rs

This file was deleted.

0 comments on commit 7a0b24b

Please sign in to comment.