Skip to content

Commit 8635da7

Browse files
committed
Rename AssocTyWithoutBody to ImplAssocTyWithoutBody
1 parent ae28c07 commit 8635da7

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

compiler/rustc_ast_passes/src/ast_validation.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1535,7 +1535,7 @@ impl<'a> Visitor<'a> for AstValidator<'a> {
15351535
..
15361536
}) => {
15371537
if ty.is_none() {
1538-
self.session.emit_err(AssocTyWithoutBody {
1538+
self.session.emit_err(ImplAssocTyWithoutBody {
15391539
span: item.span,
15401540
replace_span: self.ending_semi_or_hi(item.span),
15411541
});

compiler/rustc_ast_passes/src/errors.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,8 @@ pub struct AssocFnWithoutBody {
160160
}
161161

162162
#[derive(Diagnostic)]
163-
#[diag(ast_passes_assoc_ty_without_body)]
164-
pub struct AssocTypeWithoutBody {
163+
#[diag(ast_passes_impl_assoc_ty_without_body)]
164+
pub struct ImplAssocTyWithoutBody {
165165
#[primary_span]
166166
pub span: Span,
167167
#[suggestion(code = " = <type>;", applicability = "has-placeholders")]

compiler/rustc_error_messages/locales/en-US/ast_passes.ftl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ ast_passes_assoc_fn_without_body =
6969
associated function in `impl` without body
7070
.suggestion = provide a definition for the function
7171
72-
ast_passes_assoc_ty_without_body =
72+
ast_passes_impl_assoc_ty_without_body =
7373
associated type in `impl` without body
7474
.suggestion = provide a definition for the type
7575

0 commit comments

Comments
 (0)