rust/compiler/rustc_infer/src
Matthias Krüger 6535e66fa5
Rollup merge of #109641 - compiler-errors:dont-elaborate-non-obl, r=oli-obk
Don't elaborate non-obligations into obligations

It's suspicious to elaborate a `PolyTraitRef` or `Predicate` into an `Obligation`, since the former does not have a param-env associated with it, but the latter does. This is a footgun that, while not being misused *currently* in the compiler, easily could be misused by someone less familiar with the elaborator's inner workings.

This PR just changes the API -- ideally, the elaborator wouldn't even have to deal with obligations if we're not elaborating obligations, but that would require a bit more abstraction than I could be bothered with today.
2023-03-27 08:46:55 +02:00
..
errors Migrate diagnostic 2023-03-03 05:02:34 +00:00
infer fix type suggestions in match arms 2023-03-25 22:27:24 +01:00
traits Don't elaborate non-obligations into obligations 2023-03-26 20:33:54 +00:00
lib.rs Simplify message paths 2023-03-11 22:51:57 +01:00