about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorMatthias Krüger <476013+matthiaskrgr@users.noreply.github.com>2025-07-08 19:29:38 +0200
committerGitHub <noreply@github.com>2025-07-08 19:29:38 +0200
commitcbf7f80d5c65fd73169b8999513e1b934b84976c (patch)
tree84a0e7a989b4bb97c0bf667176a5dbaf0ae98df6 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parentbc9b313cb5d784e88c5e7d272b46ac385970bd51 (diff)
parent717041232ae0ae0ae445a2a302510aab3375ea47 (diff)
downloadrust-cbf7f80d5c65fd73169b8999513e1b934b84976c.tar.gz
rust-cbf7f80d5c65fd73169b8999513e1b934b84976c.zip
Rollup merge of #143555 - obi1kenobi:pg/target-feature-not-unsafe-rustdoc-json, r=aDotInTheVoid
Don't mark `#[target_feature]` safe fns as unsafe in rustdoc JSON.

Fixes https://github.com/rust-lang/rust/issues/142655 by explicitly checking whether functions are safe but using `#[target_feature]`, instead of relying on the `FnHeader::is_unsafe()` method which considers such functions unsafe.

I don't believe this merits a bump of the rustdoc JSON `FORMAT_VERSION` constant, since the format is unchanged and this is just a small bugfix.

r? aDotInTheVoid
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions