diff options
| author | Rich Kadel <richkadel@google.com> | 2020-12-14 00:25:29 -0800 |
|---|---|---|
| committer | Rich Kadel <richkadel@google.com> | 2020-12-14 12:55:46 -0800 |
| commit | 3043a7b5d9c990c63335cb31869fff58f8ca5617 (patch) | |
| tree | a506c00ae3c0ac9b835c180219f750b535d901d8 /src/test/codegen/src-hash-algorithm | |
| parent | 0e527baf775221dc25cba5c48cbf44d28893d8cd (diff) | |
| download | rust-3043a7b5d9c990c63335cb31869fff58f8ca5617.tar.gz rust-3043a7b5d9c990c63335cb31869fff58f8ca5617.zip | |
Improve warnings on incompatible options involving -Zinstrument-coverage
Adds checks for: * `no_core` attribute * explicitly-enabled `legacy` symbol mangling * mir_opt_level > 1 (which enables inlining) I removed code from the `Inline` MIR pass that forcibly disabled inlining if `-Zinstrument-coverage` was set. The default `mir_opt_level` does not enable inlining anyway. But if the level is explicitly set and is greater than 1, I issue a warning. The new warnings show up in tests, which is much better for diagnosing potential option conflicts in these cases.
Diffstat (limited to 'src/test/codegen/src-hash-algorithm')
0 files changed, 0 insertions, 0 deletions
