Closed
Description
Some attributes are implicitly unsafe
, without containing the unsafe
token in Rust. I will refer to these as "unsafe attributes". We probably need to replicate the work in #128 to make sure we detect these.
- Create tests for successfully denying all "unsafe attributes"
#[no_mangle]
Catch#[no_mangle]
#128#[link_section]
Catch#[no_mangle]
#128#[export_name]
Test#[export_name]
is blocked #177#[link]
maybe?
- Make all unsafe attribute tests pass
#[no_mangle]
Catch#[no_mangle]
#128#[link_section]
Turn us into a workspace #131#[export_name]
Test#[export_name]
is blocked #177#[link]
maybe?
Activity
unsafe
in user functions #63thomcc commentedon Apr 4, 2023
#[link]
is definitely something we need to forbid, but thankfully plrustc's lint againstextern
blocks does so. Closing as completed.