mirror of
https://gitee.com/openharmony/third_party_rust_serde
synced 2024-11-23 15:01:05 +00:00
Update track_caller cfg link to show what version it's in
This commit is contained in:
parent
5fd52100b6
commit
9add5812e2
@ -11,11 +11,8 @@ fn main() {
|
||||
None => return,
|
||||
};
|
||||
|
||||
// Check ability to use #[track_caller]:
|
||||
// https://doc.rust-lang.org/reference/attributes/codegen.html#the-track_caller-attribute
|
||||
//
|
||||
// Perhaps sometime it will be possible to replace by built-in `version` attribute:
|
||||
// https://github.com/rust-lang/rust/issues/64796
|
||||
// #[track_caller] stabilized in Rust 1.46:
|
||||
// https://blog.rust-lang.org/2020/08/27/Rust-1.46.0.html#track_caller
|
||||
if minor >= 46 {
|
||||
println!("cargo:rustc-cfg=has_track_caller");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user