Skip to content

Commit fef5ac9

Browse files
committedJan 21, 2025
Auto merge of #133830 - compiler-errors:span-key, r=lcnr
Rework dyn trait lowering to stop being so intertwined with trait alias expansion This PR reworks the trait object lowering code to stop handling trait aliases so funky, and removes the `TraitAliasExpander` in favor of a much simpler design. This refactoring is important for making the code that I'm writing in rust-lang/rust#133397 understandable and easy to maintain, so the diagnostics regressions are IMO inevitable. In the old trait object lowering code, we used to be a bit sloppy with the lists of traits in their unexpanded and expanded forms. This PR largely rewrites this logic to expand the trait aliases *once* and handle them more responsibly throughout afterwards. Please review this with whitespace disabled. r? lcnr
2 parents 8bdf3ec + ef503dd commit fef5ac9

File tree

0 file changed

+0
-0
lines changed

    0 file changed

    +0
    -0
    lines changed
     

    0 commit comments

    Comments
     (0)