Skip to content

Commit cb5ac97

Browse files
committed
fix formatting
1 parent 93ab8c2 commit cb5ac97

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/librustc_mir/util/borrowck_errors.rs

+10-10
Original file line numberDiff line numberDiff line change
@@ -54,16 +54,16 @@ impl Origin {
5454

5555
pub trait BorrowckErrors<'cx> {
5656
fn struct_span_err_with_code<S: Into<MultiSpan>>(self,
57-
sp: S,
58-
msg: &str,
59-
code: DiagnosticId)
60-
-> DiagnosticBuilder<'cx>
57+
sp: S,
58+
msg: &str,
59+
code: DiagnosticId)
60+
-> DiagnosticBuilder<'cx>
6161
where Self: Sized + Copy;
6262

6363
fn struct_span_err<S: Into<MultiSpan>>(self,
64-
sp: S,
65-
msg: &str)
66-
-> DiagnosticBuilder<'cx>
64+
sp: S,
65+
msg: &str)
66+
-> DiagnosticBuilder<'cx>
6767
where Self: Sized + Copy;
6868

6969
/// Cancels the given error if we shouldn't emit errors for a given
@@ -72,9 +72,9 @@ pub trait BorrowckErrors<'cx> {
7272
/// Always make sure that the error gets passed through this function
7373
/// before you return it.
7474
fn cancel_if_wrong_origin(self,
75-
diag: DiagnosticBuilder<'cx>,
76-
o: Origin)
77-
-> DiagnosticBuilder<'cx>
75+
diag: DiagnosticBuilder<'cx>,
76+
o: Origin)
77+
-> DiagnosticBuilder<'cx>
7878
where Self: Sized + Copy;
7979

8080
fn cannot_move_when_borrowed(self, span: Span, desc: &str, o: Origin)

0 commit comments

Comments
 (0)