Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compiler: Adopt rust-analyzer impls for LayoutCalculatorError #131942

Merged
merged 2 commits into from
Oct 20, 2024

Conversation

workingjubilee
Copy link
Member

@workingjubilee workingjubilee commented Oct 19, 2024

We're about to massively churn the internals of rustc_abi. To minimize the immediate and future impact on rust-analyzer, as a subtree that depends on this crate, grow some API on LayoutCalculatorError that reflects their uses of it. This way we can nest the type in theirs, and they can just call functions on it without having to inspect and flatten-out its innards.

Extracted from #131843

r? @lnicola

@rustbot
Copy link
Collaborator

rustbot commented Oct 19, 2024

Failed to set assignee to lnicola: invalid assignee

Note: Only org members with at least the repository "read" role, users with write permissions, or people who have commented on the PR may be assigned.

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Oct 19, 2024
@rustbot
Copy link
Collaborator

rustbot commented Oct 19, 2024

rust-analyzer is developed in its own repository. If possible, consider making this change to rust-lang/rust-analyzer instead.

cc @rust-lang/rust-analyzer

@workingjubilee
Copy link
Member Author

Ah, well,

r? compiler

@lukas-code
Copy link
Member

@bors r=lukas-code,lnicola rollup

@bors
Copy link
Contributor

bors commented Oct 19, 2024

📌 Commit e1d6164 has been approved by lukas-code,lnicola

It is now in the queue for this repository.

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Oct 19, 2024
bors added a commit to rust-lang-ci/rust that referenced this pull request Oct 20, 2024
Rollup of 4 pull requests

Successful merges:

 - rust-lang#131876 (compiler: Use LLVM's Comdat support)
 - rust-lang#131941 (compiletest: disambiguate html-tidy from rust tidy tool)
 - rust-lang#131942 (compiler: Adopt rust-analyzer impls for `LayoutCalculatorError`)
 - rust-lang#131945 (rustdoc: Clean up footnote handling)

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit 63fccf0 into rust-lang:master Oct 20, 2024
6 checks passed
@rustbot rustbot added this to the 1.84.0 milestone Oct 20, 2024
rust-timer added a commit to rust-lang-ci/rust that referenced this pull request Oct 20, 2024
Rollup merge of rust-lang#131942 - workingjubilee:reduce-haruspicy, r=lukas-code,lnicola

compiler: Adopt rust-analyzer impls for `LayoutCalculatorError`

We're about to massively churn the internals of `rustc_abi`. To minimize the immediate and future impact on rust-analyzer, as a subtree that depends on this crate, grow some API on `LayoutCalculatorError` that reflects their uses of it. This way we can nest the type in theirs, and they can just call functions on it without having to inspect and flatten-out its innards.
@workingjubilee workingjubilee deleted the reduce-haruspicy branch October 22, 2024 18:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants