From a8c5c3e60e9d16c9cd9f7a7151e79f54ad37ec5e Mon Sep 17 00:00:00 2001 From: eth3lbert Date: Tue, 2 Jul 2024 05:26:04 +0800 Subject: [PATCH] test: migrate rustc_info_cache to snapbox --- tests/testsuite/rustc_info_cache.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/testsuite/rustc_info_cache.rs b/tests/testsuite/rustc_info_cache.rs index 2f825d12d449..0b67d091a4f3 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()