diff options
| author | Camille GILLOT <gillot.camille@gmail.com> | 2024-07-02 09:38:49 +0000 |
|---|---|---|
| committer | Camille GILLOT <gillot.camille@gmail.com> | 2025-07-03 14:59:27 +0000 |
| commit | 3380bfd1a00fe3f85e8597bfdb9ad4d65df75da9 (patch) | |
| tree | 4f7f10aa2d1f4a6a111dfdaf76515fdfe4b3e127 /compiler/rustc_ast_passes | |
| parent | 6268d0aa34b46981533b09827c1454b8cf27e032 (diff) | |
| download | rust-3380bfd1a00fe3f85e8597bfdb9ad4d65df75da9.tar.gz rust-3380bfd1a00fe3f85e8597bfdb9ad4d65df75da9.zip | |
Replace kw_span by full span.
Diffstat (limited to 'compiler/rustc_ast_passes')
| -rw-r--r-- | compiler/rustc_ast_passes/src/ast_validation.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_ast_passes/src/ast_validation.rs b/compiler/rustc_ast_passes/src/ast_validation.rs index da248251203..53e2a1c695a 100644 --- a/compiler/rustc_ast_passes/src/ast_validation.rs +++ b/compiler/rustc_ast_passes/src/ast_validation.rs @@ -909,11 +909,11 @@ fn validate_generic_param_order(dcx: DiagCtxtHandle<'_>, generics: &[GenericPara } GenericParamKind::Type { default: None } => (), GenericParamKind::Lifetime => (), - GenericParamKind::Const { ty: _, kw_span: _, default: Some(default) } => { + GenericParamKind::Const { ty: _, span: _, default: Some(default) } => { ordered_params += " = "; ordered_params += &pprust::expr_to_string(&default.value); } - GenericParamKind::Const { ty: _, kw_span: _, default: None } => (), + GenericParamKind::Const { ty: _, span: _, default: None } => (), } first = false; } |
