From afb298e33916b2f79844a6ae166588eff749bbc1 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Wed, 20 Dec 2023 16:22:00 -0800 Subject: [PATCH] Label the compiler versions in build.rs with a comment and link --- build.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/build.rs b/build.rs index 66d293b..a31b631 100644 --- a/build.rs +++ b/build.rs @@ -59,10 +59,14 @@ fn main() { }; if rustc < 51 { + // core::ptr::addr_of + // https://blog.rust-lang.org/2021/03/25/Rust-1.51.0.html#stabilized-apis println!("cargo:rustc-cfg=anyhow_no_ptr_addr_of"); } if rustc < 52 { + // core::fmt::Arguments::as_str + // https://blog.rust-lang.org/2021/05/06/Rust-1.52.0.html#stabilized-apis println!("cargo:rustc-cfg=anyhow_no_fmt_arguments_as_str"); } }