Skip to content

Commit

Permalink
fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
csmoe committed Mar 11, 2018
1 parent 93ab8c2 commit cb5ac97
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/librustc_mir/util/borrowck_errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,16 +54,16 @@ impl Origin {

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

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

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

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

0 comments on commit cb5ac97

Please sign in to comment.