mirror of
https://github.com/rust-lang/rust.git
synced 2025-11-28 17:06:56 +00:00
fix: ensure bad `#[test]` invocs retain correct AST Fixes #109816 Ensures that a `StmtKind::Item` doesn't get converted into a plain `Item` (causing the ICE from the linked issue) Also unifies the error path a bit.