rust/compiler/rustc_builtin_macros/src
bors eb1a5c9bb3 Auto merge of #125077 - spastorino:add-new-fnsafety-enum2, r=jackh726
Rename Unsafe to Safety

Alternative to #124455, which is to just have one Safety enum to use everywhere, this opens the posibility of adding `ast::Safety::Safe` that's useful for unsafe extern blocks.

This leaves us today with:

```rust
enum ast::Safety {
    Unsafe(Span),
    Default,
    // Safe (going to be added for unsafe extern blocks)
}

enum hir::Safety {
    Unsafe,
    Safe,
}
```

We would convert from `ast::Safety::Default` into the right Safety level according the context.
2024-05-18 19:35:24 +00:00
..
assert store the span of the nested part of the use tree in the ast 2024-04-14 18:45:28 +02:00
deriving Rename Unsafe to Safety 2024-05-17 18:33:37 -03: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 Rename Unsafe to Safety 2024-05-17 18:33:37 -03:00
asm.rs Move some functions from rustc_expand to rustc_builtin_macros. 2024-04-26 09:24:33 +10:00
assert.rs Adjust some pubs. 2024-04-26 13:29:20 +10:00
cfg_accessible.rs compiler: fix few needless_pass_by_ref_mut clippy lints 2024-03-28 12:04:00 +03:00
cfg_eval.rs Remove extern crate tracing from numerous crates. 2024-04-30 16:47:49 +10:00
cfg.rs Adjust some pubs. 2024-04-26 13:29:20 +10:00
cmdline_attrs.rs Rename all ParseSess variables/fields/lifetimes as psess. 2024-03-05 08:11:45 +11:00
compile_error.rs Adjust some pubs. 2024-04-26 13:29:20 +10:00
concat_bytes.rs Adjust some pubs. 2024-04-26 13:29:20 +10:00
concat_idents.rs Adjust some pubs. 2024-04-26 13:29:20 +10:00
concat.rs Adjust some pubs. 2024-04-26 13:29:20 +10:00
derive.rs Introduce DeriveResolution. 2024-04-26 07:55:21 +10:00
edition_panic.rs Adjust some pubs. 2024-04-26 13:29:20 +10:00
env.rs Adjust some pubs. 2024-04-26 13:29:20 +10:00
errors.rs Rollup merge of #124391 - nnethercote:builtin_macros-cleanups, r=fee1-dead 2024-04-26 19:25:55 -04:00
format_foreign.rs Fix println! ICE when parsing percent prefix number 2024-05-18 01:05:56 +00:00
format.rs Rollup merge of #124919 - nnethercote:Recovered-Yes-ErrorGuaranteed, r=compiler-errors 2024-05-09 19:09:30 +02:00
global_allocator.rs Rename Unsafe to Safety 2024-05-17 18:33:37 -03:00
lib.rs Remove extern crate tracing from numerous crates. 2024-04-30 16:47:49 +10:00
log_syntax.rs Adjust some pubs. 2024-04-26 13:29:20 +10:00
pattern_type.rs Adjust some pubs. 2024-04-26 13:29:20 +10:00
proc_macro_harness.rs Rename consuming chaining methods on DiagnosticBuilder. 2024-01-10 07:40:00 +11:00
source_util.rs Adjust some pubs. 2024-04-26 13:29:20 +10:00
standard_library_imports.rs Rename all ParseSess variables/fields/lifetimes as psess. 2024-03-05 08:11:45 +11:00
test_harness.rs Various improvements to entrypoint code 2024-05-04 14:48:42 +02:00
test.rs Rename Unsafe to Safety 2024-05-17 18:33:37 -03:00
trace_macros.rs Adjust some pubs. 2024-04-26 13:29:20 +10:00
util.rs Adjust some pubs. 2024-04-26 13:29:20 +10:00