Don't pass lint back out of lint decorator
This commit is contained in:
@@ -273,7 +273,6 @@ fn overlap<'tcx>(
|
||||
causing the impls to overlap",
|
||||
infcx.resolve_vars_if_possible(failing_obligation.predicate)
|
||||
));
|
||||
lint
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
@@ -194,7 +194,6 @@ fn lint_object_unsafe_trait(
|
||||
// Only provide the help if its a local trait, otherwise it's not
|
||||
violation.solution().add_to(err);
|
||||
}
|
||||
err
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
@@ -450,7 +450,6 @@ fn report_conflicting_impls<'tcx>(
|
||||
msg,
|
||||
|err| {
|
||||
decorate(tcx, &overlap, impl_span, err);
|
||||
err
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user