Skip to content

Commit

Permalink
[Gardening] UPDATE - tidy fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
JhonnyBillM committed Sep 5, 2022
1 parent 72f766a commit d14b3af
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
7 changes: 6 additions & 1 deletion compiler/rustc_attr/src/builtin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,12 @@ fn handle_errors(sess: &ParseSess, span: Span, error: AttrError) {
sess.emit_err(session_diagnostics::MultipleStabilityLevels { span });
}
AttrError::UnsupportedLiteral(reason, is_bytestr) => {
sess.emit_err(session_diagnostics::UnsupportedLiteral { span, reason, is_bytestr, source_map: sess.source_map() });
sess.emit_err(session_diagnostics::UnsupportedLiteral {
span,
reason,
is_bytestr,
source_map: sess.source_map(),
});
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion compiler/rustc_attr/src/session_diagnostics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use rustc_errors::{
};
use rustc_macros::SessionDiagnostic;
use rustc_session::SessionDiagnostic;
use rustc_span::{Span, Symbol, source_map::SourceMap};
use rustc_span::{source_map::SourceMap, Span, Symbol};

use crate::UnsupportedLiteralReason;

Expand Down
2 changes: 1 addition & 1 deletion compiler/rustc_typeck/src/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use rustc_errors::{error_code, Applicability, DiagnosticBuilder, ErrorGuaranteed
use rustc_macros::{LintDiagnostic, SessionDiagnostic, SessionSubdiagnostic};
use rustc_middle::ty::Ty;
use rustc_session::SessionDiagnostic;
use rustc_span::{symbol::Ident, Span, Symbol, source_map::SourceMap};
use rustc_span::{source_map::SourceMap, symbol::Ident, Span, Symbol};

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

0 comments on commit d14b3af

Please sign in to comment.