diff options
| author | Matthias Krüger <476013+matthiaskrgr@users.noreply.github.com> | 2025-07-08 19:29:38 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-07-08 19:29:38 +0200 |
| commit | cbf7f80d5c65fd73169b8999513e1b934b84976c (patch) | |
| tree | 84a0e7a989b4bb97c0bf667176a5dbaf0ae98df6 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp | |
| parent | bc9b313cb5d784e88c5e7d272b46ac385970bd51 (diff) | |
| parent | 717041232ae0ae0ae445a2a302510aab3375ea47 (diff) | |
| download | rust-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
