From 9add5812e219b86b1ad422876a00d8922a1dc618 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Sat, 23 Jan 2021 14:56:03 -0800 Subject: [PATCH] Update track_caller cfg link to show what version it's in --- serde_test/build.rs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/serde_test/build.rs b/serde_test/build.rs index 1db68e5d..f3e3a78e 100644 --- a/serde_test/build.rs +++ b/serde_test/build.rs @@ -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"); }