Skip to content

Commit

Permalink
change toolchain to 1.70 first
Browse files Browse the repository at this point in the history
  • Loading branch information
root committed Apr 24, 2024
1 parent 71cedf6 commit ee8c7ec
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 51 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ repos:
- id: cargo-doc-sanity
name: cargo-doc-sanity
description: cargo-doc-sanity
entry: bcargo doc --no-deps --all-features
entry: cargo doc --no-deps --all-features
language: system
types: [rust]
pass_filenames: false
Expand Down
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ typenum = "1.17.0"
zeroize = { version = "1.6.0", optional = true}

[dev-dependencies]
rustversion = "1.0.15"
trybuild = "1.0.85"

[features]
Expand Down
50 changes: 0 additions & 50 deletions tests/trybuild_tests_rt.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#[test]
fn test_compile_fails() {
let t = trybuild::TestCases::new();
// t.compile_fail("trybuild_tests/runtime/cannot_impl_minimally_representable_uints.rs");
t.compile_fail("trybuild_tests/runtime/cannot_cross_unwind_if_not_copy.rs");
t.compile_fail("trybuild_tests/runtime/cannot_return_exposed_secret.rs");
t.compile_fail("trybuild_tests/runtime/u0_cannot_call_expose_secret.rs");
Expand All @@ -19,53 +18,4 @@ fn test_compile_fails() {
feature = "alloc"
))]
t.pass("trybuild_tests/runtime/cannot_call_debug_clone_alloc_if_not_use.rs");
// t.compile_fail("trybuild_tests/test_compile_fail_two.rs");
// t.compile_fail("trybuild_tests/test_compile_fail_three.rs");

// #[cfg(all(feature = "cloneable-secret", not(feature = "alloc")))]
// t.compile_fail("trybuild_tests/test_compile_fail_four.rs");

// #[cfg(all(
// feature = "cloneable-secret",
// not(feature = "alloc"),
// not(feature = "zeroize")
// ))]
// t.compile_fail("trybuild_tests/test_compile_fail_five.rs");

// #[cfg(all(feature = "alloc", feature = "cloneable-secret"))]
// t.compile_fail("trybuild_tests/test_compile_fail_six.rs");

// // std env + alloc + no clone, no clone should error
// #[cfg(all(feature = "alloc", not(feature = "cloneable-secret")))]
// t.compile_fail("trybuild_tests/test_compile_fail_seven.rs");

// // no_std env + alloc + extern crate alloc::vec::Vec in main()
// #[cfg(all(feature = "alloc", not(feature = "cloneable-secret")))]
// t.compile_fail("trybuild_tests/test_compile_fail_eight.rs");

// #[cfg(all(
// feature = "cloneable-secret",
// not(feature = "alloc"),
// feature = "zeroize"
// ))]
// t.compile_fail("trybuild_tests/test_compile_fail_nine.rs");

// #[cfg(all(
// feature = "cloneable-secret",
// feature = "alloc",
// not(feature = "zeroize")
// ))]
// t.compile_fail("trybuild_tests/test_compile_fail_ten.rs");

// t.compile_fail("trybuild_tests/test_cannot_return_exposed_secret.rs");

// // t.compile_fail("trybuild_tests/test_compile_fail_eleven.rs");

// #[cfg(feature = "cloneable-secret")]
// t.pass("trybuild_tests/test_compile_pass_one.rs");

// // no_std env + no alloc + no cloneable-secret should work
// t.pass("trybuild_tests/test_compile_pass_two.rs");

// t.pass("trybuild_tests/test_compile_pass_three.rs");
}

0 comments on commit ee8c7ec

Please sign in to comment.