Closed
Description
The following override causes a linker error:
[profile.dev.overrides.std]
opt-level = 2
Whereas an override like [profile.dev.overrides."*"]
works fine. Here is a gist of the error: https://gist.github.com/ehuss/6973e2fad5663f10592f71de08b3eff0
I haven't investigated much, but this seems like a worrisome problem. Perhaps there is a simple explanation, but it may make profile overrides much more difficult to use, and we may want to make it easier if there is some workaround.
Maybe it has something to do with monomorphization of std code happens in the caller, or module re-exports?