about summary refs log tree commit diff
path: root/compiler/rustc_mir/src/transform/coverage/debug.rs
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2021-06-03 18:56:31 -0700
committerAlex Crichton <alex@alexcrichton.com>2021-06-07 17:14:35 -0700
commitaba85ff82077f80b6406cbaaf6a54afe6df98332 (patch)
treecc30a389f47a407324046b2f102637bf9f25b9ae /compiler/rustc_mir/src/transform/coverage/debug.rs
parente4a60327063e82413eed50a10df3b7d19b77bda0 (diff)
downloadrust-aba85ff82077f80b6406cbaaf6a54afe6df98332.tar.gz
rust-aba85ff82077f80b6406cbaaf6a54afe6df98332.zip
Enable rustdoc to document safe wasm intrinsics
This commit fixes an issue not found during #84988 where rustdoc is used
to document cross-platform intrinsics but it was requiring that
functions which use `#[target_feature]` are `unsafe` erroneously, even
if they're WebAssembly specific. Rustdoc today, for example, already has
a special case where it enables annotations like
`#[target_feature(enable = "simd128")]` on platforms other than
WebAssembly. The purpose of this commit is to relax the "require all
`#[target_feature]` functions are `unsafe`" requirement for all targets
whenever rustdoc is running, enabling all targets to fully document
other targets, such as WebAssembly, where intrinsics functions aren't
always `unsafe`.
Diffstat (limited to 'compiler/rustc_mir/src/transform/coverage/debug.rs')
0 files changed, 0 insertions, 0 deletions