Skip to content

Commit 9b193de

Browse files
committed
Remove two comments that shouldn't be there.
1 parent 8b21296 commit 9b193de

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

compiler/rustc_ast_passes/src/ast_validation.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -881,7 +881,6 @@ impl<'a> Visitor<'a> for AstValidator<'a> {
881881
&item.vis,
882882
errors::VisibilityNotPermittedNote::TraitImpl,
883883
);
884-
// njn: use Dummy here
885884
if let TyKind::Err(_) = self_ty.kind {
886885
this.dcx().emit_err(errors::ObsoleteAuto { span: item.span });
887886
}

compiler/rustc_errors/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1276,7 +1276,6 @@ impl DiagCtxtInner {
12761276
fn emit_stashed_diagnostics(&mut self) {
12771277
let has_errors = !self.err_guars.is_empty();
12781278
for (_, diag) in std::mem::take(&mut self.stashed_diagnostics).into_iter() {
1279-
// Decrement the count tracking the stash; emitting will increment it.
12801279
if diag.is_error() {
12811280
if diag.is_lint.is_none() {
12821281
self.stashed_err_count -= 1;

0 commit comments

Comments
 (0)