rust/compiler/rustc_ast/src
Nicholas Nethercote 9a23f60f9c Fix TyKind::is_simple_path.
PR #98758 introduced code to avoid redundant assertions in derived code
like this:
```
let _: ::core::clone::AssertParamIsClone<u32>;
let _: ::core::clone::AssertParamIsClone<u32>;
```
But the predicate `is_simple_path` introduced as part of this failed to
account for generic arguments. Therefore the deriving code erroneously
considers types like `Option<bool>` and `Option<f32>` to be the same.

This commit fixes `is_simple_path`.

Fixes #103157.
2022-10-18 15:51:23 +11:00
..
attr
expand
util more simple formatting 2022-09-16 19:07:42 +08:00
ast_traits.rs
ast.rs Fix TyKind::is_simple_path. 2022-10-18 15:51:23 +11:00
entry.rs
lib.rs remove cfg(bootstrap) 2022-09-26 10:14:45 +02:00
mut_visit.rs Rename AssocItemKind::TyAlias to AssocItemKind::Type 2022-10-10 02:31:37 +00:00
node_id.rs
ptr.rs
token.rs Use tidy-alphabetical in the compiler 2022-10-12 17:49:10 +05:30
tokenstream.rs Use tidy-alphabetical in the compiler 2022-10-12 17:49:10 +05:30
visit.rs Rollup merge of #102868 - compiler-errors:rename-assoc-tyalias-to-ty, r=TaKO8Ki 2022-10-10 13:43:43 +05:30