This repository was archived by the owner on Apr 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 6 files changed +16
-1
lines changed
crates/compiler-builtins-smoke-test Expand file tree Collapse file tree 6 files changed +16
-1
lines changed Original file line number Diff line number Diff line change 11name : CI
22on : [push, pull_request]
33
4+ env :
5+ RUSTDOCFLAGS : -Dwarnings
6+ RUSTFLAGS : -Dwarnings
7+
48jobs :
59 docker :
610 name : Docker
Original file line number Diff line number Diff line change @@ -2,10 +2,14 @@ use std::env;
22
33fn main ( ) {
44 println ! ( "cargo:rerun-if-changed=build.rs" ) ;
5+ println ! ( "cargo::rustc-check-cfg=cfg(assert_no_panic)" ) ;
6+ println ! ( "cargo::rustc-check-cfg=cfg(feature, values(\" unstable\" ))" ) ;
57
68 #[ cfg( feature = "musl-reference-tests" ) ]
79 musl_reference_tests:: generate ( ) ;
810
11+ println ! ( "cargo::rustc-check-cfg=cfg(feature, values(\" checked\" ))" ) ;
12+ #[ allow( unexpected_cfgs) ]
913 if !cfg ! ( feature = "checked" ) {
1014 let lvl = env:: var ( "OPT_LEVEL" ) . unwrap ( ) ;
1115 if lvl != "0" {
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ run() {
1616 docker run \
1717 --rm \
1818 --user $( id -u) :$( id -g) \
19+ -e RUSTFLAGS \
1920 -e CARGO_HOME=/cargo \
2021 -e CARGO_TARGET_DIR=/target \
2122 -v " ${HOME} /.cargo" :/cargo \
Original file line number Diff line number Diff line change @@ -7,3 +7,6 @@ authors = ["Jorge Aparicio <jorge@japaric.io>"]
77test = false
88bench = false
99
10+ [features ]
11+ unstable = []
12+ checked = []
Original file line number Diff line number Diff line change 1+ fn main ( ) {
2+ println ! ( "cargo::rustc-check-cfg=cfg(assert_no_panic)" ) ;
3+ }
Original file line number Diff line number Diff line change 66#![ no_std]
77
88#[ path = "../../../src/math/mod.rs" ]
9- mod libm;
9+ pub mod libm;
You can’t perform that action at this time.
0 commit comments