Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix warnings building tests on Windows #14315

Merged
merged 1 commit into from
Jul 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tests/testsuite/open_namespaces.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
use cargo_test_support::prelude::*;
use cargo_test_support::project;
use cargo_test_support::registry::RegistryBuilder;
use cargo_test_support::str;

#[cargo_test]
Expand Down Expand Up @@ -331,6 +330,7 @@ fn main() {}
#[cargo_test]
#[cfg(unix)] // until we get proper packaging support
fn publish_namespaced() {
use cargo_test_support::registry::RegistryBuilder;
let registry = RegistryBuilder::new().http_api().http_index().build();

let p = project()
Expand Down
2 changes: 1 addition & 1 deletion tests/testsuite/profile_trim_paths.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
//! Tests for `-Ztrim-paths`.
use cargo_test_support::basic_manifest;
use cargo_test_support::compare::assert_e2e;
use cargo_test_support::git;
use cargo_test_support::paths;
use cargo_test_support::prelude::*;
Expand Down Expand Up @@ -681,6 +680,7 @@ fn custom_build_env_var_trim_paths() {
#[cfg(unix)]
#[cargo_test(requires_lldb, nightly, reason = "-Zremap-path-scope is unstable")]
fn lldb_works_after_trimmed() {
use cargo_test_support::compare::assert_e2e;
use cargo_util::is_ci;

if !is_ci() {
Expand Down