Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
Urhengulas committed Oct 9, 2024
1 parent 25b5179 commit 61251cf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
4 changes: 0 additions & 4 deletions xtask/src/backcompat.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,6 @@ pub fn test() {
};

for snapshot_test in all_snapshot_tests() {
if snapshot_test == "net" && rustc_is_msrv() {
continue;
}

let feature = match snapshot_test {
"alloc" => "alloc",
"net" => "ip_in_core",
Expand Down
10 changes: 5 additions & 5 deletions xtask/src/snapshot.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,19 @@ pub(crate) fn all_snapshot_tests() -> Vec<&'static str> {
"hints",
"hints_inner",
"dbg",
"net",
"panic_info",
];
const NIGHTLY_SNAPSHOT_TESTS: &[&str] = &["alloc"];
const POST_MSRV_SNAPSHOT_TESTS: &[&str] = &["net"];

let mut tests = STABLE_SNAPSHOT_TESTS.to_vec();
if rustc_is_nightly() {
tests.extend(NIGHTLY_SNAPSHOT_TESTS);
}
if !rustc_is_msrv() {
tests.extend(POST_MSRV_SNAPSHOT_TESTS);
}

tests
}

Expand Down Expand Up @@ -80,10 +84,6 @@ pub fn test_snapshot(overwrite: bool, snapshot: Option<Snapshot>) {

fn test_all_snapshots(overwrite: bool) {
for test in all_snapshot_tests() {
if test == "net" && rustc_is_msrv() {
continue;
}

let features = match test {
"alloc" => "alloc",
"net" => "ip_in_core",
Expand Down

0 comments on commit 61251cf

Please sign in to comment.