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
..
2024-05-18 11:27:29 +03:00
2024-05-18 19:35:24 +00:00
2024-05-17 18:33:37 -03:00
2024-05-17 18:33:37 -03:00
2024-05-17 18:33:37 -03:00
2024-05-18 19:35:24 +00:00
2024-05-18 19:35:24 +00:00
2024-05-17 18:33:37 -03:00
2024-05-17 18:33:37 -03:00
2024-05-17 18:33:37 -03:00
2024-05-18 19:35:24 +00:00
2024-05-17 18:33:37 -03:00
2024-05-11 08:00:15 +02:00
2024-05-13 09:37:29 +02:00
2024-05-13 07:53:38 +10:00
2024-05-16 09:52:01 -04:00
2024-05-18 13:02:48 +00:00
2024-05-13 11:27:26 -07:00
2024-05-17 18:33:37 -03:00
2024-05-18 19:35:24 +00:00
2024-05-17 18:33:37 -03:00
2024-05-18 19:35:24 +00:00
2024-05-18 19:35:24 +00:00
2024-05-18 19:35:24 +00:00
2024-05-15 00:49:33 +02:00
2024-05-10 15:44:03 -04:00
2024-05-13 08:20:18 +10:00
2024-05-18 19:35:24 +00:00
2024-05-17 18:33:37 -03:00
2024-05-17 18:33:37 -03:00
2024-05-10 15:44:03 -04:00
2024-05-10 15:44:03 -04:00
2024-05-18 19:35:24 +00:00
2024-05-17 18:33:37 -03:00
2024-05-13 11:59:42 -04:00
2024-05-13 08:20:18 +10:00
2024-05-18 06:36:44 +00:00
2024-05-11 18:20:00 -04:00
2024-05-18 10:53:47 +00:00
2024-05-17 18:33:37 -03:00
2024-05-13 11:27:26 -07:00
2024-05-17 18:33:37 -03:00
2024-05-16 16:08:06 +00:00
2024-05-18 19:35:24 +00:00
2024-05-13 11:59:42 -04:00
2024-05-18 19:35:24 +00:00
2024-05-18 19:35:24 +00:00
2024-05-11 18:20:00 -04:00
2024-05-17 18:33:37 -03:00