<!-- Thank you for filing a bug report! 🐛 Please provide a short summary of the bug, along with any information you feel relevant to replicating the bug. --> I tried this code: ```rust thread_local! { static LOCAL: String = String::new(); } fn main() {} ``` I expected to see this happen: rust outputs warning for unused static `LOCAL`. Instead, this happened: no warning ### Meta Rust version: current stable (1.69.0), beta, and nightly <!-- TRIAGEBOT_START --> <!-- TRIAGEBOT_ASSIGN_START --> <!-- TRIAGEBOT_ASSIGN_DATA_START$${"user":"mj10021"}$$TRIAGEBOT_ASSIGN_DATA_END --> <!-- TRIAGEBOT_ASSIGN_END --> <!-- TRIAGEBOT_END -->