rust/compiler/rustc_typeck
Matthias Krüger 23ad7a7697
Rollup merge of #90884 - Nilstrieb:fix-span-trivial-trait-bound, r=estebank
Fix span for non-satisfied trivial trait bounds

The spans for "trait bound not satisfied" errors in trivial trait bounds referenced the entire item (fn, impl, struct) before.
Now they only reference the obligation itself (`String: Copy`)

Address #90869
2021-11-17 15:58:04 +01:00
..
2021-09-20 22:21:42 -04:00

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