As discussed in #2301, cargo silently builds a cdylib without LTO when the same crate also has rlib outputs, as rustc would otherwise error. The only sign this has happened currently is the output binaries being way larger than expected. A warning would be very helpful for this.