1
Fork 0
rust/compiler/rustc_builtin_macros/src
bors c0e32983f5 Auto merge of #127543 - carbotaniuman:more_unsafe_attr_verification, r=estebank,traviscross
More unsafe attr verification

This code denies unsafe on attributes such as `#[test]` and `#[ignore]`, while also changing the `MetaItem` parsing so `unsafe` in args like `#[allow(unsafe(dead_code))]` is not accidentally allowed.

Tracking:

- https://github.com/rust-lang/rust/issues/123757
2024-08-01 10:40:45 +00:00
..
assert Reformat use declarations. 2024-07-29 08:26:52 +10:00
deriving reject pointee without ?Sized 2024-08-01 02:00:05 +08:00
format_foreign Use as_deref in compiler (but only where it makes sense) 2022-11-16 21:58:58 +00:00
alloc_error_handler.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
asm.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
assert.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
cfg.rs Add toggle for parse_meta_item unsafe parsing 2024-07-30 18:28:43 -05:00
cfg_accessible.rs Deny unsafe on more builtin attributes 2024-07-29 21:00:09 -05:00
cfg_eval.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
cmdline_attrs.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
compile_error.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
concat.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
concat_bytes.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
concat_idents.rs Adjust some pubs. 2024-04-26 13:29:20 +10:00
derive.rs Add toggle for parse_meta_item unsafe parsing 2024-07-30 18:28:43 -05:00
edition_panic.rs Adjust some pubs. 2024-04-26 13:29:20 +10:00
env.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
errors.rs Add toggle for parse_meta_item unsafe parsing 2024-07-30 18:28:43 -05:00
format.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
format_foreign.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
global_allocator.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
lib.rs Auto merge of #128083 - Mark-Simulacrum:bump-bootstrap, r=albertlarsan68 2024-07-30 17:49:08 +00:00
log_syntax.rs Adjust some pubs. 2024-04-26 13:29:20 +10:00
pattern_type.rs Mark Parser::eat/check methods as must_use 2024-07-29 21:29:08 -04:00
proc_macro_harness.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
source_util.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
standard_library_imports.rs Rename all ParseSess variables/fields/lifetimes as psess. 2024-03-05 08:11:45 +11:00
test.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
test_harness.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
trace_macros.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
util.rs Deny unsafe on more builtin attributes 2024-07-29 21:00:09 -05:00