rust/compiler/rustc_trait_selection/src/traits
Esteban Küber 55f8c66a60 Point at return type when it influences non-first match arm
When encountering code like

```rust
fn foo() -> i32 {
    match 0 {
        1 => return 0,
        2 => "",
        _ => 1,
    }
}
```

Point at the return type and not at the prior arm, as that arm has type
`!` which isn't influencing the arm corresponding to arm `2`.

Fix #78124.
2023-08-14 21:43:56 +00:00
..
error_reporting Point at return type when it influences non-first match arm 2023-08-14 21:43:56 +00:00
query Rollup merge of #114079 - compiler-errors:closure-upvars, r=oli-obk 2023-08-02 13:46:54 +02:00
select Remove constness from ImplSource::Param 2023-08-14 02:17:30 +00:00
specialize Remove constness from TraitPredicate 2023-08-02 15:38:00 +00:00
auto_trait.rs Remove constness from TraitPredicate 2023-08-02 15:38:00 +00:00
coherence.rs normalize in trait_ref_is_knowable in new solver 2023-08-12 20:37:53 +02:00
const_evaluatable.rs refactor(rustc_middle): Substs -> GenericArg 2023-07-14 13:27:35 +01:00
engine.rs Remove constness from TraitPredicate 2023-08-02 15:38:00 +00:00
fulfill.rs Auto merge of #113742 - compiler-errors:dont-short-circuit-intercrate-global-preds, r=lcnr 2023-07-16 21:30:37 +00:00
misc.rs refactor(rustc_middle): Substs -> GenericArg 2023-07-14 13:27:35 +01:00
mod.rs Remove constness from TraitPredicate 2023-08-02 15:38:00 +00:00
object_safety.rs Remove constness from TraitPredicate 2023-08-02 15:38:00 +00:00
outlives_bounds.rs Re-format let-else per rustfmt update 2023-07-12 21:49:27 -04:00
project.rs Remove constness from TraitPredicate 2023-08-02 15:38:00 +00:00
structural_match.rs refactor(rustc_middle): Substs -> GenericArg 2023-07-14 13:27:35 +01:00
structural_normalize.rs Structurally normalize weak and inherent too 2023-08-07 19:05:59 +00:00
util.rs Remove constness from TraitPredicate 2023-08-02 15:38:00 +00:00
vtable.rs Remove constness from TraitPredicate 2023-08-02 15:38:00 +00:00
wf.rs Remove constness from TraitPredicate 2023-08-02 15:38:00 +00:00