-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Closed
Labels
A-diagnosticsArea: Error and warning messages generated by Cargo itself.Area: Error and warning messages generated by Cargo itself.A-tomlArea: TOML parsing and handlingArea: TOML parsing and handlingC-bugCategory: bugCategory: bug
Description
Problem
Specifying opt-level = s
or opt-level = z
for a profile fails with the following error:
$ cargo build
error: failed to parse manifest at `/xoxo/stuff/cargo-opt-level-size-bug/Cargo.toml`
Caused by:
could not parse input as TOML
Caused by:
invalid number at line 10
Steps
- Create a new project with
cargo new repro
- Add
to
[profile.dev] opt-level = s
Cargo.toml
. - Run
cargo build
Possible Solution(s)
Fix the Cargo.toml
parser?
Notes
Output of cargo version
:
cargo 1.36.0 (c4fcfb725 2019-05-15)
cargo 1.38.0-nightly (26092da33 2019-07-31)
Metadata
Metadata
Assignees
Labels
A-diagnosticsArea: Error and warning messages generated by Cargo itself.Area: Error and warning messages generated by Cargo itself.A-tomlArea: TOML parsing and handlingArea: TOML parsing and handlingC-bugCategory: bugCategory: bug