rust/compiler/rustc_typeck
Guillaume Gomez b0935b1ddf
Rollup merge of #98497 - compiler-errors:span-inference-note, r=lcnr
Improve some inference diagnostics

- Properly point out point location where "type must be known at this point", or else omit the note if it's not associated with a useful span.
- Fix up some type ambiguity diagnostics, errors shouldn't say "cannot infer type for reference `&'a ()`" when the given type has no inference variables.
2022-07-01 23:39:09 +02:00
..
2022-06-27 08:48:55 +10:00

For high-level intro to how type checking works in rustc, see the type checking chapter of the rustc dev guide.