rust/compiler/rustc_trait_selection/src/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
..
query Only use implied bounds hack if bevy, and use deeply normalize in implied bounds hack 2025-03-04 18:18:48 +00:00
select Auto merge of #138249 - compiler-errors:auto-self, r=lcnr 2025-03-13 05:37:55 +00:00
specialize Rollup merge of #136968 - oli-obk:bye-bye, r=compiler-errors 2025-03-09 10:34:47 +01:00
auto_trait.rs Move outlives env computation into methods 2025-01-28 18:55:03 +00:00
coherence.rs Rustfmt 2025-02-08 22:12:13 +00:00
const_evaluatable.rs compiler: Use size_of from the prelude instead of imported 2025-03-07 13:37:04 -08:00
dyn_compatibility.rs Elaborate param-env built for checking DispatchFromDyn for dyn compat 2025-03-11 16:32:56 +00:00
effects.rs trait_sel: resolve vars in host effects 2025-02-24 08:52:29 +00:00
engine.rs Consolidate OutlivesEnv construction with resolve_regions 2025-01-28 18:55:03 +00:00
fulfill.rs Greatly simplify lifetime captures in edition 2024 2025-02-22 22:24:52 +00:00
misc.rs Move some Map methods onto TyCtxt. 2025-02-17 13:21:02 +11:00
mod.rs Rustfmt 2025-02-08 22:12:13 +00:00
normalize.rs Assert that obligations are empty before deeply normalizing 2024-12-02 22:51:18 +00:00
outlives_bounds.rs Only use implied bounds hack if bevy, and use deeply normalize in implied bounds hack 2025-03-04 18:18:48 +00:00
project.rs Delete tuple unsizing 2025-02-27 10:26:33 +00:00
structural_normalize.rs Rename structurally_normalize to structurally_normalize_ty 2025-01-22 07:04:53 +00:00
util.rs Use the right binder for rebinding PolyTraitRef 2025-02-12 23:55:12 +00:00
vtable.rs Greatly simplify lifetime captures in edition 2024 2025-02-22 22:24:52 +00:00
wf.rs Remove the Option part of range ends in the HIR 2025-03-06 10:47:40 +00:00