about summary refs log tree commit diff
path: root/compiler/rustc_mir/src/transform/coverage/debug.rs
diff options
context:
space:
mode:
authorTomasz Miąsko <tomasz.miasko@gmail.com>2020-11-11 00:00:00 +0000
committerTomasz Miąsko <tomasz.miasko@gmail.com>2020-11-12 19:52:03 +0100
commit0b4af1614d91152564b852572afa63fab71162a1 (patch)
tree7cb76fbd1410929761c0f90799803d437274fe1b /compiler/rustc_mir/src/transform/coverage/debug.rs
parent9722952f0bed5815cb22cb4878be09fb39f92804 (diff)
downloadrust-0b4af1614d91152564b852572afa63fab71162a1.tar.gz
rust-0b4af1614d91152564b852572afa63fab71162a1.zip
Never inline when `no_sanitize` attributes differ
The inliner looks if a sanitizer is enabled before considering
`no_sanitize` attribute as possible source of incompatibility.

The MIR inlining could happen in a crate with sanitizer disabled, but
code generation in a crate with sanitizer enabled, thus the attribute
would be incorrectly ignored.

To avoid the issue never inline functions with different `no_sanitize`
attributes.
Diffstat (limited to 'compiler/rustc_mir/src/transform/coverage/debug.rs')
0 files changed, 0 insertions, 0 deletions