You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was trying out different optimization levels on a project. I started with s:
[profile.release]
opt-level = "s"
I wanted to compare it to 3, so I changed it:
[profile.release]
opt-level = "3"
This gives the error:
error: failed to parse manifest at `C:\Users\steve\tmp\oss101\Cargo.toml`
Caused by:
must be an integer, `z`, or `s`, but found: 3 for key `profile.release.opt-level`
The error is that it's the string "3" not the integer 3, but the error message doesn't make this very clear.
The text was updated successfully, but these errors were encountered:
…lexcrichton
Expand error message to explain that a string was found
With `opt-level = "3"` this previously said:
must be an integer, `z`, or `s`, but found: 3 for ...
The error message doesn't make that super clear.
This should now be a bit more clear.
Fixes#8234
---
We could even include a bit more saying that `"3"` should become 3 (either unconditionally or after trying to parse `"3"` into an integer?
cc @steveklabnik
I was trying out different optimization levels on a project. I started with
s
:I wanted to compare it to
3
, so I changed it:This gives the error:
The error is that it's the string
"3"
not the integer3
, but the error message doesn't make this very clear.The text was updated successfully, but these errors were encountered: