Skip to content

Commit

Permalink
tweak pass description and fix lint fail post-rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
a-lafrance committed Oct 17, 2023
1 parent 5895102 commit 52ad819
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion compiler/rustc_lint/src/internal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -541,7 +541,7 @@ impl LateLintPass<'_> for BadOptAccess {
declare_tool_lint! {
pub rustc::SPAN_USE_EQ_CTXT,
Allow,
"Use of `==` with `Span::ctxt` rather than `Span::eq_ctxt`",
"forbid uses of `==` with `Span::ctxt`, suggest `Span::eq_ctxt` instead",
report_in_external_macro: true
}

Expand Down
2 changes: 1 addition & 1 deletion compiler/rustc_passes/src/loops.rs
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ impl<'a, 'hir> CheckLoopVisitor<'a, 'hir> {
AsyncClosure(closure_span) => {
self.sess.emit_err(BreakInsideAsyncBlock { span, closure_span, name });
}
UnlabeledBlock(block_span) if is_break && block_span.ctxt() == break_span.ctxt() => {
UnlabeledBlock(block_span) if is_break && block_span.eq_ctxt(break_span) => {
let suggestion = Some(OutsideLoopSuggestion { block_span, break_span });
self.sess.emit_err(OutsideLoop { span, name, is_break, suggestion });
}
Expand Down

0 comments on commit 52ad819

Please sign in to comment.