miniblog.
← Back to all posts
Wilfred Hughes
Jan 3, 2017 at 18:50
Found a Rust compiler bug, and it's fixed within a day.
https://github.com/rust-lang/rust/issues/38780
(not the first time the community had been so responsive!)
allow(dead_code) does not work for static externs · Issue #38780 · rust-lang/rust
The following Rust code: extern "C" { #[allow(dead_code)] static Qt: u64; } fn main() { println!("hello world"); } produces the warning: warning: foreign static item is never used: `Qt`, #[warn(dea...