Skip to content

Commit

Permalink
Merge pull request #409 from Maytha8/std-tests
Browse files Browse the repository at this point in the history
Add feature gate to tests that use std
  • Loading branch information
dtolnay authored Jan 10, 2025
2 parents 349f696 + 693a6cd commit 8f2a76b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/test_expr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ fn test_rustup() {
}

// Regression test for https://github.com/dtolnay/thiserror/issues/335
#[cfg(feature = "std")]
#[test]
#[allow(non_snake_case)]
fn test_assoc_type_equality_constraint() {
Expand Down
2 changes: 2 additions & 0 deletions tests/test_path.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![cfg(feature = "std")]

use core::fmt::Display;
use ref_cast::RefCast;
use std::path::{Path, PathBuf};
Expand Down

0 comments on commit 8f2a76b

Please sign in to comment.