Skip to content

Call renumberMetadataForAssembly() in LLVMRustPrintModule() - #162236

Merged
rust-bors[bot] merged 1 commit into
rust-lang:mainfrom
zmodem:metadata_reordering
Sep 8, 2026
Merged

Call renumberMetadataForAssembly() in LLVMRustPrintModule()#162236
rust-bors[bot] merged 1 commit into
rust-lang:mainfrom
zmodem:metadata_reordering

Conversation

@zmodem

@zmodem zmodem commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

Some metadata got reordered in llvm/llvm-project#220390

@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 Sep 3, 2026
@rustbot

rustbot commented Sep 3, 2026

Copy link
Copy Markdown
Collaborator

r? @mu001999

rustbot has assigned @mu001999.
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 75 candidates
  • Random selection from 20 candidates

@zmodem

zmodem commented Sep 3, 2026

Copy link
Copy Markdown
Contributor Author

@rustbot label llvm-main

@rustbot rustbot added the llvm-main Marks PRs that are making Rust work with LLVM main (this label is consumed by CI tooling) label Sep 3, 2026
@mu001999

mu001999 commented Sep 3, 2026

Copy link
Copy Markdown
Member

@rustbot reroll

@rustbot rustbot assigned jackh726 and unassigned mu001999 Sep 3, 2026
@zmodem

zmodem commented Sep 7, 2026

Copy link
Copy Markdown
Contributor Author

Discussion on llvm/llvm-project#220967 suggests maybe the order is not supposed to change...

cc @nikic and @yxsamliu

@nikic

nikic commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

I expect there will still be some changes, but yes, we should renumber before printing in LLVMRustPrintModule.

@zmodem
zmodem force-pushed the metadata_reordering branch from aa97bab to 0847dae Compare September 8, 2026 07:48
@rustbot rustbot added the A-LLVM Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues. label Sep 8, 2026
@rustbot

rustbot commented Sep 8, 2026

Copy link
Copy Markdown
Collaborator

This PR was rebased onto a different main commit. Here's a range-diff highlighting what actually changed.

Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers.

@zmodem zmodem changed the title Update codegen-llvm tests to be less sensitive to metadata ordering Call renumberMetadataForAssembly() in LLVMRustPrintModule() Sep 8, 2026
@zmodem

zmodem commented Sep 8, 2026

Copy link
Copy Markdown
Contributor Author

I expect there will still be some changes, but yes, we should renumber before printing in LLVMRustPrintModule.

Thanks! That's much easier than trying to update the tests.

@nikic

nikic commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

@bors r+ rollup

@rust-bors

rust-bors Bot commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

📌 Commit 0847dae has been approved by nikic

It is now in the queue for this repository.

🌲 The tree is currently closed for pull requests below priority 5. This pull request will be tested once the tree is reopened.

Reason for tree closure: spurious failures

@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 Sep 8, 2026
rust-bors Bot pushed a commit that referenced this pull request Sep 8, 2026
…uwer

Rollup of 12 pull requests

Successful merges:

 - #162462 (Fix unsoundness in `VecDeque::from_iter(vec::IntoIter)`)
 - #162468 (mir_build: Rename `lower_let_expr` to `lower_fallible_let`, and clarify)
 - #161806 (Add tests and docs for `#[derive(GenericTypeVisitable)]`)
 - #161912 (run `extern "tail"` with `byval` argument test)
 - #161932 (Only check `#[allow(dead_code)]` on the trait)
 - #162236 (Call renumberMetadataForAssembly() in LLVMRustPrintModule())
 - #162435 (windows-gnu: document libgcc requirement)
 - #162439 (Update books)
 - #162451 (Add regression test for item-local diagnostic attribute lint levels)
 - #162455 (Update codegen-llvm/inline-debuginfo.rs for distinct DILocation)
 - #162459 (docs(time): replace "method" with "function")
 - #162465 (Fix my duplicate thanks entry)
@rust-bors
rust-bors Bot merged commit e6e3455 into rust-lang:main Sep 8, 2026
13 checks passed
@rustbot rustbot added this to the 1.100.0 milestone Sep 8, 2026
rust-bors Bot pushed a commit that referenced this pull request Sep 8, 2026
Rollup merge of #162236 - zmodem:metadata_reordering, r=nikic

Call renumberMetadataForAssembly() in LLVMRustPrintModule()

Some metadata got reordered in llvm/llvm-project#220390
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. llvm-main Marks PRs that are making Rust work with LLVM main (this label is consumed by CI tooling) 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