Skip to content

Commit 471ccd8

Browse files
committed
fix typo
1 parent aa8010b commit 471ccd8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

compiler/rustc_resolve/src/late.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3158,7 +3158,7 @@ impl<'a, 'ast, 'ra, 'tcx> LateResolutionVisitor<'a, 'ast, 'ra, 'tcx> {
31583158
result
31593159
}
31603160

3161-
/// When evaluating a `trait` use its associated types' idents for suggestions in EO425.
3161+
/// When evaluating a `trait` use its associated types' idents for suggestions in E0425.
31623162
fn resolve_trait_items(&mut self, trait_items: &'ast [Box<AssocItem>]) {
31633163
let trait_assoc_items =
31643164
replace(&mut self.diag_metadata.current_trait_assoc_items, Some(trait_items));

compiler/rustc_resolve/src/late/diagnostics.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -705,7 +705,7 @@ impl<'ast, 'ra, 'tcx> LateResolutionVisitor<'_, 'ast, 'ra, 'tcx> {
705705
if !enum_candidates.is_empty() {
706706
enum_candidates.sort();
707707

708-
// Contextualize for E0412 "cannot find type", but don't belabor the point
708+
// Contextualize for E0425 "cannot find type", but don't belabor the point
709709
// (that it's a variant) for E0573 "expected type, found variant".
710710
let preamble = if res.is_none() {
711711
let others = match enum_candidates.len() {

0 commit comments

Comments
 (0)