rust/compiler/rustc_trait_selection/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
..
solve Rollup merge of #125191 - compiler-errors:wf, r=lcnr 2024-05-17 07:20:59 +02:00
traits Auto merge of #125077 - spastorino:add-new-fnsafety-enum2, r=jackh726 2024-05-18 19:35:24 +00:00
errors.rs Lift TraitRef into rustc_type_ir 2024-05-10 15:44:03 -04:00
infer.rs Remove trivial Binder::dummy calls 2024-05-16 14:24:23 -04:00
lib.rs Remove extern crate rustc_middle from rustc_trait_selection. 2024-05-13 08:20:18 +10:00
regions.rs Remove extern crate rustc_macros from numerous crates. 2024-04-29 10:21:54 +10:00