diff options
| author | bors <bors@rust-lang.org> | 2024-05-18 19:35:24 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-05-18 19:35:24 +0000 |
| commit | 37dfd973b77996b4ec0c24f75cef14af059c6523 (patch) | |
| tree | 1d96c99b10c20607c891f4be345804af2a722701 /tests/coverage/branch/lazy-boolean.coverage | |
| parent | 4f589e322d20c9ba7cc7e92369faf01d2737825c (diff) | |
| parent | 0590d71ce2a0dada4f8970ed024f253552902016 (diff) | |
| download | rust-37dfd973b77996b4ec0c24f75cef14af059c6523.tar.gz rust-37dfd973b77996b4ec0c24f75cef14af059c6523.zip | |
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.
Diffstat (limited to 'tests/coverage/branch/lazy-boolean.coverage')
0 files changed, 0 insertions, 0 deletions
