Skip to content
Myr

Label the compiler versions in build.rs with a comment and link

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by David Tolnay · committed by David Tolnay · parent a205cc9 · Browse files · 1 file+4 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+4 added−0 removed

  • other:+4 added−0 removed

1 file+4 added−0 removed

modified:build.rs+4 added
57 unmodified lines
58 None => return,59 };6061 if rustc < 51 {62 // core::ptr::addr_of63 // https://blog.rust-lang.org/2021/03/25/Rust-1.51.0.html#stabilized-apis64 println!("cargo:rustc-cfg=anyhow_no_ptr_addr_of");65 }6667 if rustc < 52 {68 // core::fmt::Arguments::as_str69 // https://blog.rust-lang.org/2021/05/06/Rust-1.52.0.html#stabilized-apis70 println!("cargo:rustc-cfg=anyhow_no_fmt_arguments_as_str");71 }72}73
62 unmodified lines