Uh oh!
There was an error while loading. Please reload this page.
Docs: clarify that certain intrinsics are not unsafe - #86308
Conversation
rust-highfive
commented
Jun 14, 2021
r? @kennytm (rust-highfive has picked a reviewer for you, use r? to override) |
RalfJung
commented
Jun 15, 2021
Maybe add a comment in |
lqd
commented
Jun 15, 2021
Btw: #86327 will fix the rustdoc issue which made these intrinsics' signatures appear unsafe to call in the libcore/libstd docs. |
bstrie
commented
Jun 16, 2021
Great to hear that the rustdoc bug is fixed. I still think that this PR would be useful, since the idea of any safe function declared inside an extern block is surprising, and users used to the normal semantics of extern blocks could just as easily assume that the lack of a visible |
JohnTitor
left a comment
There was a problem hiding this comment.
Looks reasonable to me! It's a bit unfortunate that we have to write a lot of the same comments but it should be fine for now.
JohnTitor
commented
Jul 2, 2021
r? @JohnTitor@bors r+ rollup |
bors
commented
Jul 2, 2021
📌 Commit 16168dd has been approved by |
Rollup of 7 pull requests Successful merges: - rust-lang#84029 (add `track_path::path` fn for usage in `proc_macro`s) - rust-lang#85001 (Merge `sys_common::bytestring` back into `os_str_bytes`) - rust-lang#86308 (Docs: clarify that certain intrinsics are not unsafe) - rust-lang#86796 (Add a regression test for issue-70703) - rust-lang#86803 (Remove & from Command::args calls in documentation) - rust-lang#86807 (Fix double import in wasm thread ) - rust-lang#86813 (Add a help message to `unused_doc_comments` lint) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
As determined by the hardcoded list at
rust/compiler/rustc_typeck/src/check/intrinsic.rs
Lines 59 to 92 in 003b8ea