Skip to content

Commit af29599

Browse files
committed
Fix raw identifiers not handled correctly in EqualityConstraintToAssocConstraintSuggestion
1 parent 834db8b commit af29599

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/rustc_ast_passes/src/ast_validation.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1464,12 +1464,12 @@ fn deny_equality_constraints(
14641464
if let Some(bound) = bound_opt {
14651465
err.assoc_constraint_suggestion.push(
14661466
EqualityConstraintToAssocConstraintSuggestion {
1467-
assoc_ty: assoc_ty_ident.name.to_string(),
1467+
assoc_ty: assoc_ty_ident.to_string(),
14681468
suggestion: vec![(
14691469
predicate.span,
14701470
format!(
14711471
"{}: {}",
1472-
qself_ty_ident.name,
1472+
qself_ty_ident,
14731473
pprust::path_to_string(&bound)
14741474
),
14751475
)],

0 commit comments

Comments
 (0)