Skip to content

Commit feef7ee

Browse files
committed
Add run-pass-recent-rustc tests
1 parent f5c6be8 commit feef7ee

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

tests/run-pass/rule_impl_use_bound.rs renamed to tests/run-pass-recent-rustc/rule_impl_use_bound.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Disabled because the `use<>`` syntax requires at least Rust 1.82.0 and fails the MSRV test in CI
12
use core::fmt::Debug;
23

34
// `--features trace` code names the return type, so doesn't work with `impl Trait`

tests/trybuild.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,14 @@ fn main() {
44

55
t.pass("tests/run-pass/*.rs");
66

7+
if version_check::is_min_version("1.82.0").unwrap_or(false) {
8+
// Tests that involve syntax that is not supported on the MSRV. This
9+
// version can be increased to any stable version as needed.
10+
t.pass("tests/run-pass-recent-rustc/*.rs");
11+
} else {
12+
eprintln!("!!! Skipped run-pass-recent-rustc !!!");
13+
}
14+
715
let expected_rust_ver = env!("CARGO_PKG_RUST_VERSION");
816
let run_anyway = args.iter().any(|a| a == "--compile-fail");
917

0 commit comments

Comments
 (0)