Custom target names containing bin
lead to 'failed to parse the cfg from rustc --print=cfg
' error
#7363
Labels
C-bug
Category: bug
Steps to Reproduce
cargo new foo --lib
andcd foo
Create file named
custom-bin-target.json
with the following content:Run
cargo build --target custom-bin-target.json
The Error
The following error occurs:
Debugging
When renaming the target file to
custom-target.json
, the error disappears. Renaming toa-b-c.json
andtarget.json
works too, but anything with the substring "bin" leads to the same error (e.g.bin.json
oraabinoo.json
). So the problem seems to be the substring "bin", but I have now idea why.Versions
The text was updated successfully, but these errors were encountered: