Skip to content

Improve inline assembly error messages#154228

Open
folkertdev wants to merge 1 commit intorust-lang:mainfrom
folkertdev:mention-invalid-template-modifier
Open

Improve inline assembly error messages#154228
folkertdev wants to merge 1 commit intorust-lang:mainfrom
folkertdev:mention-invalid-template-modifier

Conversation

@folkertdev
Copy link
Contributor

by

  • using DiagSymbolList to get nicely formatted lists
  • mentioning the modifier when an invalid modifier is used. This is useful in case the span cannot be resolved (which I ran into).

@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 Mar 22, 2026
@rustbot
Copy link
Collaborator

rustbot commented Mar 22, 2026

r? @nnethercote

rustbot has assigned @nnethercote.
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

Why was this reviewer chosen?

The reviewer was selected based on:

  • Owners of files modified in this PR: compiler
  • compiler expanded to 69 candidates
  • Random selection from 12 candidates

@Kivooeo Kivooeo assigned Kivooeo and unassigned nnethercote Mar 22, 2026
@rust-log-analyzer

This comment has been minimized.

by

- using `DiagSymbolList` to get nicely formatted lists
- mentioning the `modifier` when an invalid modifier is used. This is useful in case the span cannot be resolved (which I ran into).
@folkertdev folkertdev force-pushed the mention-invalid-template-modifier branch from 4d34630 to 6f08437 Compare March 22, 2026 22:18
Copy link
Contributor

@nnethercote nnethercote left a comment

Choose a reason for hiding this comment

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

Nice change. Good to see that custom list code ([1..]) go away.

View changes since this review

@nnethercote
Copy link
Contributor

@bors r+ rollup

@rust-bors
Copy link
Contributor

rust-bors bot commented Mar 22, 2026

📌 Commit 6f08437 has been approved by nnethercote

It is now in the queue for this repository.

@rust-bors rust-bors bot 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 Mar 22, 2026
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.

5 participants