diff --git a/tests/testsuite/rustc_info_cache.rs b/tests/testsuite/rustc_info_cache.rs index 2f825d12d44..0b67d091a4f 100644 --- a/tests/testsuite/rustc_info_cache.rs +++ b/tests/testsuite/rustc_info_cache.rs @@ -1,7 +1,5 @@ //! Tests for the cache file for the rustc version info. -#![allow(deprecated)] - use cargo_test_support::{basic_bin_manifest, paths::CargoPathExt}; use cargo_test_support::{basic_manifest, project}; use std::env; @@ -10,6 +8,7 @@ const MISS: &str = "[..] rustc info cache miss[..]"; const HIT: &str = "[..]rustc info cache hit[..]"; const UPDATE: &str = "[..]updated rustc info cache[..]"; +#[allow(deprecated)] #[cargo_test] fn rustc_info_cache() { let p = project() @@ -105,6 +104,7 @@ fn rustc_info_cache() { .run(); } +#[allow(deprecated)] #[cargo_test] fn rustc_info_cache_with_wrappers() { let wrapper_project = project()