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
..
2022-09-14 08:49:12 +08:00
2022-09-16 19:07:42 +08:00
2022-10-18 15:51:23 +11:00
2022-09-26 10:14:45 +02:00
2022-10-12 17:49:10 +05:30