Skip to content

Commit d14b3af

Browse files
committed
[Gardening] UPDATE - tidy fixes
1 parent 72f766a commit d14b3af

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

compiler/rustc_attr/src/builtin.rs

+6-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,12 @@ fn handle_errors(sess: &ParseSess, span: Span, error: AttrError) {
6363
sess.emit_err(session_diagnostics::MultipleStabilityLevels { span });
6464
}
6565
AttrError::UnsupportedLiteral(reason, is_bytestr) => {
66-
sess.emit_err(session_diagnostics::UnsupportedLiteral { span, reason, is_bytestr, source_map: sess.source_map() });
66+
sess.emit_err(session_diagnostics::UnsupportedLiteral {
67+
span,
68+
reason,
69+
is_bytestr,
70+
source_map: sess.source_map(),
71+
});
6772
}
6873
}
6974
}

compiler/rustc_attr/src/session_diagnostics.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use rustc_errors::{
66
};
77
use rustc_macros::SessionDiagnostic;
88
use rustc_session::SessionDiagnostic;
9-
use rustc_span::{Span, Symbol, source_map::SourceMap};
9+
use rustc_span::{source_map::SourceMap, Span, Symbol};
1010

1111
use crate::UnsupportedLiteralReason;
1212

compiler/rustc_typeck/src/errors.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ use rustc_errors::{error_code, Applicability, DiagnosticBuilder, ErrorGuaranteed
33
use rustc_macros::{LintDiagnostic, SessionDiagnostic, SessionSubdiagnostic};
44
use rustc_middle::ty::Ty;
55
use rustc_session::SessionDiagnostic;
6-
use rustc_span::{symbol::Ident, Span, Symbol, source_map::SourceMap};
6+
use rustc_span::{source_map::SourceMap, symbol::Ident, Span, Symbol};
77

88
#[derive(SessionDiagnostic)]
99
#[diag(typeck::field_multiply_specified_in_initializer, code = "E0062")]

0 commit comments

Comments
 (0)