Skip to content

Commit 9d0b949

Browse files
committed
smoke_test: Move unstable_name_collisions lint config into cargo module
We should not allow this rule across the entire package. Instead we can only allow it in the relevant functions.
1 parent 012f947 commit 9d0b949

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

crates_io_smoke_test/src/cargo.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ use secrecy::{ExposeSecret, SecretString};
33
use std::path::Path;
44
use tokio::process::Command;
55

6+
#[allow(unstable_name_collisions)]
67
pub async fn new_lib(parent_path: &Path, name: &str) -> anyhow::Result<()> {
78
Command::new("cargo")
89
.args(["new", "--lib", name])
@@ -14,6 +15,7 @@ pub async fn new_lib(parent_path: &Path, name: &str) -> anyhow::Result<()> {
1415
.map_err(Into::into)
1516
}
1617

18+
#[allow(unstable_name_collisions)]
1719
pub async fn publish(project_path: &Path, token: &SecretString) -> anyhow::Result<()> {
1820
Command::new("cargo")
1921
.args(["publish", "--registry", "staging", "--allow-dirty"])

crates_io_smoke_test/src/main.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#![allow(unstable_name_collisions)]
2-
31
mod api;
42
mod cargo;
53
mod exit_status_ext;

0 commit comments

Comments
 (0)