-
-
Notifications
You must be signed in to change notification settings - Fork 313
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1425 from dtolnay/alert
Perform build-time alerts in test suite using build-alert crate
- Loading branch information
Showing
4 changed files
with
18 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,16 @@ | ||
syn_test_suite_feature_check::check!(); | ||
#[cfg(debug_assertions)] | ||
build_alert::yellow! {" | ||
NOTE: use --release | ||
Syn's test suite has some tests that run on every source file | ||
and test case in the rust-lang/rust repo, which can be pretty | ||
slow in debug mode. Consider running cargo test with `--release` | ||
to speed things up. | ||
"} | ||
|
||
#[cfg(not(feature = "all-features"))] | ||
build_alert::red! {" | ||
ERROR: use --all-features | ||
Syn's test suite normally only works with all-features enabled. | ||
Run again with `--all-features`, or run with `--features test` | ||
to bypass this check. | ||
"} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.