Update track_caller cfg link to show what version it's in

This commit is contained in:
David Tolnay 2021-01-23 14:56:03 -08:00
parent 5fd52100b6
commit 9add5812e2
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82

View File

@ -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");
}