#![deny(unsafe_code)]
thread_local!(static KEY: u8 = 1);
fn main() {
}
will hit an unsafe_code warning due to an unsafe function internally defined in the thread local macro (the unsafe function is a recent addition). There's no way to allow() it.
The macro should take in attributes.