From 0ebf5bdf043a27fd3dfb7f92e0cb63d88954c44d Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 19 Apr 2024 03:47:29 +0200 Subject: Adding upstream version 115.8.0esr. Signed-off-by: Daniel Baumann --- third_party/rust/autocfg/examples/versions.rs | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 third_party/rust/autocfg/examples/versions.rs (limited to 'third_party/rust/autocfg/examples/versions.rs') diff --git a/third_party/rust/autocfg/examples/versions.rs b/third_party/rust/autocfg/examples/versions.rs new file mode 100644 index 0000000000..992919b7c6 --- /dev/null +++ b/third_party/rust/autocfg/examples/versions.rs @@ -0,0 +1,9 @@ +extern crate autocfg; + +fn main() { + // Normally, cargo will set `OUT_DIR` for build scripts. + let ac = autocfg::AutoCfg::with_dir("target").unwrap(); + for i in 0..100 { + ac.emit_rustc_version(1, i); + } +} -- cgit v1.2.3