Skip to content

Commit

Permalink
Attempt rust 1.0 compat for ci/verify-check-cfg
Browse files Browse the repository at this point in the history
I can't use rust 1.0 on my computer (M1 Mac),
so I am relying on CI to check this.
  • Loading branch information
Techcable authored and cuviper committed Sep 27, 2024
1 parent ac78be8 commit a8703c1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ci/verify-check-cfg/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
name = "autocfg-verify-check-cfg"
description = "A dummy crate to verify autocfg is emitting check-cfg directives"
version = "0.1.0"
edition = "2021"
edition = "2015"
# only for testing
publish = false

Expand Down
4 changes: 3 additions & 1 deletion ci/verify-check-cfg/build.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
extern crate autocfg;

pub fn main() {
let cfg = autocfg::AutoCfg::new().unwrap();

Expand All @@ -8,7 +10,7 @@ pub fn main() {
// always true
cfg.emit_rustc_version(1, 0);
// should always be false
cfg.emit_rustc_version(7, u32::MAX as usize);
cfg.emit_rustc_version(7, std::u32::MAX as usize);

// always true
cfg.emit_has_path("std::vec::Vec");
Expand Down

0 comments on commit a8703c1

Please sign in to comment.