rust/compiler/rustc_parse/src/parser
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
..
mut_visit Move some tests from rustc_expand to rustc_parse. 2024-05-06 09:06:02 +10:00
tokenstream Move some tests from rustc_expand to rustc_parse. 2024-05-06 09:06:02 +10:00
attr.rs Remove a Span from TokenKind::Interpolated. 2024-05-13 10:30:30 +10:00
attr_wrapper.rs Simplify static_assert_sizes. 2024-04-18 15:36:25 +10:00
diagnostics.rs Clarify that the diff_marker is talking about version control system 2024-05-17 15:45:50 +02:00
expr.rs Clarify that the diff_marker is talking about version control system 2024-05-17 15:45:50 +02:00
generics.rs Parsing , pre-lowering support for precise captures 2024-04-15 16:45:01 -04:00
item.rs Auto merge of #125077 - spastorino:add-new-fnsafety-enum2, r=jackh726 2024-05-18 19:35:24 +00:00
mod.rs Rename Unsafe to Safety 2024-05-17 18:33:37 -03:00
nonterminal.rs Auto merge of #123865 - eholk:expr_2021, r=fmease 2024-05-17 21:54:14 +00:00
pat.rs Remove a Span from TokenKind::Interpolated. 2024-05-13 10:30:30 +10:00
path.rs delegation: Implement list delegation 2024-05-15 02:32:59 +03:00
stmt.rs Clarify that the diff_marker is talking about version control system 2024-05-17 15:45:50 +02:00
tests.rs Move some tests from rustc_expand to rustc_parse. 2024-05-06 09:06:02 +10:00
ty.rs Rename Unsafe to Safety 2024-05-17 18:33:37 -03:00