rust/compiler/rustc_ast/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
..
attr Remove a Span from TokenKind::Interpolated. 2024-05-13 10:30:30 +10:00
expand Remove extern crate rustc_macros from numerous crates. 2024-04-29 10:21:54 +10:00
util Add classify::expr_is_complete 2024-05-11 18:18:20 -07:00
ast_traits.rs Remove NtIdent and NtLifetime. 2024-05-14 08:19:58 +10:00
ast.rs Auto merge of #125077 - spastorino:add-new-fnsafety-enum2, r=jackh726 2024-05-18 19:35:24 +00:00
entry.rs Various improvements to entrypoint code 2024-05-04 14:48:42 +02:00
format.rs Remove extern crate rustc_macros from numerous crates. 2024-04-29 10:21:54 +10:00
lib.rs Step bootstrap cfgs 2024-05-01 22:19:11 -04:00
mut_visit.rs Rename Unsafe to Safety 2024-05-17 18:33:37 -03:00
node_id.rs Replace no_ord_impl with orderable. 2023-11-22 18:38:17 +11:00
ptr.rs rustc_ast: Update P<T> docs to reflect mutable status. 2024-04-03 08:41:03 +00:00
token.rs Auto merge of #123865 - eholk:expr_2021, r=fmease 2024-05-17 21:54:14 +00:00
tokenstream.rs Remove NtIdent and NtLifetime. 2024-05-14 08:19:58 +10:00
visit.rs Rename Unsafe to Safety 2024-05-17 18:33:37 -03:00