about summary refs log tree commit diff
diff options
context:
space:
mode:
authorDylan DPC <99973273+Dylan-DPC@users.noreply.github.com>2022-10-10 13:43:43 +0530
committerGitHub <noreply@github.com>2022-10-10 13:43:43 +0530
commit1469e8d1400dc9622a5259ccc03acd91e50bc49e (patch)
tree980a707d546b518639b779d154de6648ab45d02d
parent5577e42ead88f4011e973d286b2dbaf384da2551 (diff)
parent7a42219e3741cf260e7e0169126869a5f3868c96 (diff)
downloadrust-1469e8d1400dc9622a5259ccc03acd91e50bc49e.tar.gz
rust-1469e8d1400dc9622a5259ccc03acd91e50bc49e.zip
Rollup merge of #102868 - compiler-errors:rename-assoc-tyalias-to-ty, r=TaKO8Ki
Rename `AssocItemKind::TyAlias` to `AssocItemKind::Type`

Thanks `@camsteffen` for catching this in ast too, cc https://github.com/rust-lang/rust/pull/102829#issuecomment-1272649247
-rw-r--r--clippy_utils/src/ast_utils.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/clippy_utils/src/ast_utils.rs b/clippy_utils/src/ast_utils.rs
index 493991f30e8..0133997560e 100644
--- a/clippy_utils/src/ast_utils.rs
+++ b/clippy_utils/src/ast_utils.rs
@@ -438,14 +438,14 @@ pub fn eq_assoc_item_kind(l: &AssocItemKind, r: &AssocItemKind) -> bool {
             eq_defaultness(*ld, *rd) && eq_fn_sig(lf, rf) && eq_generics(lg, rg) && both(lb, rb, |l, r| eq_block(l, r))
         },
         (
-            TyAlias(box ast::TyAlias {
+            Type(box ast::TyAlias {
                 defaultness: ld,
                 generics: lg,
                 bounds: lb,
                 ty: lt,
                 ..
             }),
-            TyAlias(box ast::TyAlias {
+            Type(box ast::TyAlias {
                 defaultness: rd,
                 generics: rg,
                 bounds: rb,