Skip to content

Commit 8ab3799

Browse files
committed
Allow unexpected_cfgs in cfg-static
Otherwise build fails on nightly due to the use of an undeclared cfg attribute
1 parent 769ece7 commit 8ab3799

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cortex-m-rt/examples/cfg-static.rs

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
#![deny(warnings)]
55
#![no_main]
66
#![no_std]
7+
// This example uses an undefined cfg, `cfg(never)`
8+
#![allow(unexpected_cfgs)]
79

810
extern crate cortex_m_rt as rt;
911
extern crate panic_halt;

0 commit comments

Comments
 (0)