Use more accurate spans for trait/impl method arg divergence
This commit is contained in:
@@ -587,6 +587,7 @@ impl<'a, 'tcx> Lift<'tcx> for ty::error::TypeError<'a> {
|
||||
UnsafetyMismatch(x) => UnsafetyMismatch(x),
|
||||
AbiMismatch(x) => AbiMismatch(x),
|
||||
Mutability => Mutability,
|
||||
ArgumentMutability(i) => ArgumentMutability(i),
|
||||
TupleSize(x) => TupleSize(x),
|
||||
FixedArraySize(x) => FixedArraySize(x),
|
||||
ArgCount => ArgCount,
|
||||
@@ -607,6 +608,7 @@ impl<'a, 'tcx> Lift<'tcx> for ty::error::TypeError<'a> {
|
||||
CyclicTy(t) => return tcx.lift(t).map(|t| CyclicTy(t)),
|
||||
CyclicConst(ct) => return tcx.lift(ct).map(|ct| CyclicConst(ct)),
|
||||
ProjectionMismatched(x) => ProjectionMismatched(x),
|
||||
ArgumentSorts(x, i) => return tcx.lift(x).map(|x| ArgumentSorts(x, i)),
|
||||
Sorts(x) => return tcx.lift(x).map(Sorts),
|
||||
ExistentialMismatch(x) => return tcx.lift(x).map(ExistentialMismatch),
|
||||
ConstMismatch(x) => return tcx.lift(x).map(ConstMismatch),
|
||||
|
||||
Reference in New Issue
Block a user