about summary refs log tree commit diff
path: root/tests/rustdoc-js-std/osstring-to-string.js
diff options
context:
space:
mode:
authorJacob Pratt <jacob@jhpratt.dev>2025-04-13 23:57:40 -0400
committerGitHub <noreply@github.com>2025-04-13 23:57:40 -0400
commit4a1d0cd1bd1d551e615e63b2e27a4aac46af8da8 (patch)
tree540a8f792cf2a3731ee09149c6287ad82e8d148d /tests/rustdoc-js-std/osstring-to-string.js
parentc0ad72ef6ac8d78e777765967be1f7b07d7fb663 (diff)
parentf472cc8cd4c57687aac38fe3589818f1cc7956ba (diff)
downloadrust-4a1d0cd1bd1d551e615e63b2e27a4aac46af8da8.tar.gz
rust-4a1d0cd1bd1d551e615e63b2e27a4aac46af8da8.zip
Rollup merge of #139718 - folkertdev:unsafe-attributes-earlier-editions, r=fmease
enforce unsafe attributes in pre-2024 editions by default

New unsafe attributes should emit an error when used without the `unsafe(...)` in all editions.

The `no_mangle`, `link_section` and `export_name` attributes are exceptions, and can still be used without an unsafe in earlier editions. The only attributes for which this change is relevant right now are `#[ffi_const]` and `#[ffi_pure]`.

This change is required for making `#[unsafe(naked)]` sound in pre-2024 editions.
Diffstat (limited to 'tests/rustdoc-js-std/osstring-to-string.js')
0 files changed, 0 insertions, 0 deletions