Fix tidy errors
This commit is contained in:
parent
3fdc3fa1ec
commit
f5ec50358a
3 changed files with 13 additions and 9 deletions
|
@ -719,7 +719,11 @@ impl<'a, 'tcx> BorrowckCtxt<'a, 'tcx> {
|
||||||
|
|
||||||
let mut db = match err.cause {
|
let mut db = match err.cause {
|
||||||
MutabilityViolation => {
|
MutabilityViolation => {
|
||||||
struct_span_err!(self.tcx.sess, error_span, E0594, "cannot assign to {}", descr)
|
struct_span_err!(self.tcx.sess,
|
||||||
|
error_span,
|
||||||
|
E0594,
|
||||||
|
"cannot assign to {}",
|
||||||
|
descr)
|
||||||
}
|
}
|
||||||
BorrowViolation(euv::ClosureCapture(_)) => {
|
BorrowViolation(euv::ClosureCapture(_)) => {
|
||||||
struct_span_err!(self.tcx.sess, error_span, E0595,
|
struct_span_err!(self.tcx.sess, error_span, E0595,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue