File tree 6 files changed +16
-1
lines changed
crates/compiler-builtins-smoke-test
6 files changed +16
-1
lines changed Original file line number Diff line number Diff line change 1
1
name : CI
2
2
on : [push, pull_request]
3
3
4
+ env :
5
+ RUSTDOCFLAGS : -Dwarnings
6
+ RUSTFLAGS : -Dwarnings
7
+
4
8
jobs :
5
9
docker :
6
10
name : Docker
Original file line number Diff line number Diff line change @@ -2,10 +2,14 @@ use std::env;
2
2
3
3
fn main ( ) {
4
4
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\" ))" ) ;
5
7
6
8
#[ cfg( feature = "musl-reference-tests" ) ]
7
9
musl_reference_tests:: generate ( ) ;
8
10
11
+ println ! ( "cargo::rustc-check-cfg=cfg(feature, values(\" checked\" ))" ) ;
12
+ #[ allow( unexpected_cfgs) ]
9
13
if !cfg ! ( feature = "checked" ) {
10
14
let lvl = env:: var ( "OPT_LEVEL" ) . unwrap ( ) ;
11
15
if lvl != "0" {
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ run() {
16
16
docker run \
17
17
--rm \
18
18
--user $( id -u) :$( id -g) \
19
+ -e RUSTFLAGS \
19
20
-e CARGO_HOME=/cargo \
20
21
-e CARGO_TARGET_DIR=/target \
21
22
-v " ${HOME} /.cargo" :/cargo \
Original file line number Diff line number Diff line change 7
7
test = false
8
8
bench = false
9
9
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 6
6
#![ no_std]
7
7
8
8
#[ path = "../../../src/math/mod.rs" ]
9
- mod libm;
9
+ pub mod libm;
You can’t perform that action at this time.
0 commit comments