8000 next-solver fun time by lcnr · Pull Request #20446 · rust-lang/rust-analyzer · GitHub
[go: up one dir, main page]

Skip to content

Conversation

lcnr
Copy link
Contributor
@lcnr lcnr commented Aug 13, 2025

should fix the metrics issue for hyper, unless there's also another issue here 🤔

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Aug 13, 2025
@lcnr lcnr changed the title update a few fixmes, and one trivial improvement next-solver fun time Aug 13, 2025
@lcnr lcnr force-pushed the kinda-unhelpful-3 branch from dd9a279 to 719ee8e Compare August 13, 2025 08:30
let infer_ctxt = interner.infer_ctxt().build(TypingMode::non_body_analysis());
let infer_ctxt = interner.infer_ctxt().build(TypingMode::PostAnalysis);
let cause = ObligationCause::dummy();
let ty = deeply_normalize(infer_ctxt.at(&cause, ParamEnv::empty()), ty).unwrap_or(ty);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

opaque types should just be normalized like any other alias. For this to work, computing the layout uses TypingMode::PostAnalysis which then fetches the underlying type for all opaques in the program

@lcnr lcnr force-pushed the kinda-unhelpful-3 branch from 38ba69e to 425d68f Compare August 13, 2025 08:57
@Veykril Veykril added this pull request to the merge queue Aug 13, 2025
@Veykril
Copy link
Member
Veykril commented Aug 13, 2025

Thanks!

Merged via the queue into rust-lang:master with commit 7af2dd9 Aug 13, 2025
15 checks passed
@rustbot rustbot removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Aug 13, 2025
@lcnr lcnr deleted the kinda-unhelpful-3 branch August 13, 2025 10:49
@lnicola
Copy link
Member
lnicola commented Aug 13, 2025

changelog fixup #20329

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants
0