rust-lang / trait-system-refactor-initiative

The Rustc Trait System Refactor Initiative
22 stars 0 forks source link

vibe: negative reasoning and solver cycles #122

Open lcnr opened 3 months ago

lcnr commented 3 months ago

the trait solver sometimes uses negative reasoning, e.g. in discard_impls_shadowed_by_env. Whether we're currently employing negative reason is not tracked by the nested goals.

I am worried that we need to track this as right now a cycle where T: Trait only holds if T: Trait does not hold gets treated incorrectly.