]> git.lizzy.rs Git - rust.git/commitdiff
Auto merge of #47791 - estebank:mismatched-trait-impl, r=nikomatsakis
authorbors <bors@rust-lang.org>
Sat, 3 Feb 2018 01:26:56 +0000 (01:26 +0000)
committerbors <bors@rust-lang.org>
Sat, 3 Feb 2018 01:26:56 +0000 (01:26 +0000)
Tweak presentation on lifetime trait mismatch

 - On trait/impl method discrepancy, add label pointing at trait signature.
 - Point only at method definition when referring to named lifetimes on lifetime mismatch.
 - When the sub and sup expectations are the same, tweak the output to avoid repeated spans.

Fix #30790, CC #18759.

1  2 
src/librustc/infer/error_reporting/mod.rs
src/test/ui/issue-46472.stderr

Simple merge