]> git.lizzy.rs Git - rust.git/commit
Rollup merge of #90884 - Nilstrieb:fix-span-trivial-trait-bound, r=estebank
authorMatthias Krüger <matthias.krueger@famsik.de>
Wed, 17 Nov 2021 14:58:04 +0000 (15:58 +0100)
committerGitHub <noreply@github.com>
Wed, 17 Nov 2021 14:58:04 +0000 (15:58 +0100)
commit23ad7a7697f7e02252cf0c3f7f22641f0adb51e4
treefa61947a2213d8ec05ae0ae867f0d5b7ce6d7a87
parentab958a7ab0f65536fb921896a526ce81e4dee32d
parent24acf8602969215469ac26a2c0042385096345d9
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