Closed
Description
opened on Apr 4, 2020
rustc crashes ungracefully when given the following input (found by fuzz-rustc):
fn main() {
let _ = || {
#[cfg(any(target_arc+ = "arm"))]
fn _foo() {}
};
}
$ rustc -vV
rustc 1.44.0-nightly (74bd074ee 2020-04-03)
binary: rustc
commit-hash: 74bd074eefcf4915c73d1ab91bc90859664729e6
commit-date: 2020-04-03
host: x86_64-unknown-linux-gnu
release: 1.44.0-nightly
LLVM version: 9.0
$ rustc main.rs
error: expected one of `(`, `)`, `,`, `::`, or `=`, found `+`
--> main.rs:3:28
|
3 | #[cfg(any(target_arc+ = "arm"))]
| ^ expected one of `(`, `)`, `,`, `::`, or `=`
Aborted (core dumped)
Activity