Skip to content

Commit 613ed6c

Browse files
authored
Rollup merge of #143380 - cjgillot:kw_span, r=compiler-errors
Replace kw_span by full span for generic const parameters. Small simplification extracted from rust-lang/rust#127241
2 parents bc72daa + 36bb9b3 commit 613ed6c

File tree

1 file changed

+2
-2
lines changed
  • clippy_utils/src/ast_utils

1 file changed

+2
-2
lines changed

clippy_utils/src/ast_utils/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -886,13 +886,13 @@ pub fn eq_generic_param(l: &GenericParam, r: &GenericParam) -> bool {
886886
(
887887
Const {
888888
ty: lt,
889-
kw_span: _,
890889
default: ld,
890+
span: _,
891891
},
892892
Const {
893893
ty: rt,
894-
kw_span: _,
895894
default: rd,
895+
span: _,
896896
},
897897
) => eq_ty(lt, rt) && both(ld.as_ref(), rd.as_ref(), eq_anon_const),
898898
_ => false,

0 commit comments

Comments
 (0)