-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
opt-level = s
and opt-level = z
don't seem to work
#7240
Comments
They need to be specified as a string, like: [profile.dev]
opt-level = 's' The TOML language does not allow bare words as values. |
Ah, interesting! Considers this a bug report about an unhelpful error message then |
Looks like the error message is coming from https://github.com/alexcrichton/toml-rs |
@aleksator I recently opened toml-rs/toml-rs#379 regarding the confusing error message here (it has cropped up in a few other places). I left some very rough guidance there, where |
Fixed in toml-rs 0.5.7 (thank you @ehuss and @alexcrichton!). |
Yep, just updated via #8772. |
Problem
Specifying
opt-level = s
oropt-level = z
for a profile fails with the following error:Steps
cargo new repro
Cargo.toml
.cargo build
Possible Solution(s)
Fix the
Cargo.toml
parser?Notes
Output of
cargo version
:The text was updated successfully, but these errors were encountered: