Tweak assoc type obligation spans
* Point at RHS of associated type in obligation span * Point at `impl` assoc type on projection error * Reduce verbosity of recursive obligations * Point at source of binding lifetime obligation * Tweak "required bound" note * Tweak "expected... found opaque (return) type" labels * Point at set type in impl assoc type WF errors
This commit is contained in:
parent
f0448f44bc
commit
5e1972eba7
92 changed files with 503 additions and 257 deletions
|
@ -118,8 +118,7 @@ impl<'tcx> fmt::Display for TypeError<'tcx> {
|
|||
ArgumentMutability(_) | Mutability => write!(f, "types differ in mutability"),
|
||||
TupleSize(values) => write!(
|
||||
f,
|
||||
"expected a tuple with {} element{}, \
|
||||
found one with {} element{}",
|
||||
"expected a tuple with {} element{}, found one with {} element{}",
|
||||
values.expected,
|
||||
pluralize!(values.expected),
|
||||
values.found,
|
||||
|
@ -127,8 +126,7 @@ impl<'tcx> fmt::Display for TypeError<'tcx> {
|
|||
),
|
||||
FixedArraySize(values) => write!(
|
||||
f,
|
||||
"expected an array with a fixed size of {} element{}, \
|
||||
found one with {} element{}",
|
||||
"expected an array with a fixed size of {} element{}, found one with {} element{}",
|
||||
values.expected,
|
||||
pluralize!(values.expected),
|
||||
values.found,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue