Files
rust/tests/ui/traits
bors 961351c76c Auto merge of #138249 - compiler-errors:auto-self, r=lcnr
Do not register `Self: AutoTrait` when confirming auto trait (in old solver)

Every built-in auto impl for a trait goal like `Ty: Auto` immediately registers another obligation of `Ty: Auto` as one of its nested obligations, leading to us stressing the cycle detection machinery a lot more than we need to. This is because all traits have a `Self: Trait` predicate.

To fix this, remove the call to `impl_or_trait_obligations` in `vtable_auto_impl`, since auto traits do not have where clauses.

r? lcnr
2025-03-13 05:37:55 +00:00
..
2025-01-30 15:30:04 +00:00
2024-12-18 16:35:06 +01:00
2023-06-19 15:39:55 +02:00
2024-10-18 00:33:50 +02:00
2024-10-18 00:33:50 +02:00
2024-10-18 00:33:50 +02:00
2024-04-07 17:38:07 -03:00
2024-03-03 16:30:48 -03:00
2024-02-07 10:42:01 +08:00
2024-03-03 16:30:48 -03:00
2024-03-03 16:30:48 -03:00
2023-04-20 15:06:17 -03:00
2024-02-07 10:42:01 +08:00
2023-10-13 19:18:46 +00:00
2025-02-03 10:39:32 -05:00
2023-12-05 17:15:46 +00:00
2025-02-14 00:37:23 +01:00
2025-02-14 00:37:23 +01:00
2024-01-05 10:00:59 +00:00
2023-01-13 18:20:24 +00:00