-
Notifications
You must be signed in to change notification settings - Fork 7
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 #39 from statiolake/atcoder-202004-warning
Add warning for incompatibility with AtCoder 202004
- Loading branch information
Showing
4 changed files
with
82 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -59,3 +59,4 @@ assert_cli = "0.6.3" | |
|
||
[features] | ||
derive = ["proconio-derive"] | ||
disable_compat_warning = [] |
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
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#![allow(path_statements, clippy::no_effect)] | ||
|
||
#[cfg(not(feature = "disable_compat_warning"))] | ||
const _: () = { | ||
#[rustfmt::skip] | ||
(WARN, "please use proconio v0.3.x in AtCoder 2020"); | ||
|
||
#[deprecated(note = "this version of proconio is not compatible\n\ | ||
please use the v0.3.x version instead \ | ||
if you use this in the AtCoder 2020 update.\n\ | ||
note: for uses outside of AtCoder, \ | ||
you can disable this warning \ | ||
via the `disable_compat_warning` feature.")] | ||
const WARN: () = (); | ||
}; |