Skip to content

Conversation

@bjorn3
Copy link
Member

@bjorn3 bjorn3 commented Nov 21, 2025

I was trying to get rid of a dedicated inline_asm_error method in favor the regular error methods on DiagCtxt to allow replacing SharedEmitter with sess.dcx() when running on the main thread, but the sess.source_map().new_source_file() for the inline asm snippets prevents doing this. I'm going to solve the original motivating problem in a different way for this reason, but I figured these refactors do improve things a tiny bit.

@rustbot
Copy link
Collaborator

rustbot commented Nov 21, 2025

rustc_error_messages was changed

cc @davidtwco, @compiler-errors, @TaKO8Ki

@rustbot rustbot added the A-LLVM Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues. label Nov 21, 2025
@rustbot rustbot added A-translation Area: Translation infrastructure, and migrating existing diagnostics to SessionDiagnostic 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 Nov 21, 2025
@rustbot
Copy link
Collaborator

rustbot commented Nov 21, 2025

r? @dianqk

rustbot has assigned @dianqk.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

@rust-log-analyzer

This comment has been minimized.

@dianqk
Copy link
Member

dianqk commented Nov 22, 2025

@bors r+ rollup=always

@bors
Copy link
Collaborator

bors commented Nov 22, 2025

📌 Commit 2a28013 has been approved by dianqk

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 Nov 22, 2025
matthiaskrgr added a commit to matthiaskrgr/rust that referenced this pull request Nov 22, 2025
Couple of refactors to SharedEmitter

I was trying to get rid of a dedicated `inline_asm_error` method in favor the regular error methods on `DiagCtxt` to allow replacing `SharedEmitter` with `sess.dcx()` when running on the main thread, but the `sess.source_map().new_source_file()` for the inline asm snippets prevents doing this. I'm going to solve the original motivating problem in a different way for this reason, but I figured these refactors do improve things a tiny bit.
bors added a commit that referenced this pull request Nov 22, 2025
Rollup of 8 pull requests

Successful merges:

 - #147536 (Add `rust-mingw` component for `*-windows-gnullvm` hosts)
 - #148407 (Warn against calls which mutate an interior mutable `const`-item)
 - #149168 (Fix ICE when collecting opaques from trait method declarations)
 - #149170 (automate gpu offloading - part 1)
 - #149180 (Couple of refactors to SharedEmitter)
 - #149185 (Handle cycles when checking impl candidates for `doc(hidden)`)
 - #149194 (Move safe computation out of unsafe block)
 - #149204 (Fix typo in HashMap performance comment)

r? `@ghost`
`@rustbot` modify labels: rollup
@matthiaskrgr
Copy link
Member

could this have caused the failure here? 🤔
#149216 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-LLVM Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues. A-translation Area: Translation infrastructure, and migrating existing diagnostics to SessionDiagnostic 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