Rollup of 9 pull requests by jieyouxu · Pull Request #138853 · rust-lang/rust (original) (raw)

jieyouxu

Successful merges:

Failed merges:

r? @ghost
@rustbot modify labels: rollup

Create a similar rollup

@clubby789

@clubby789

@Ayush1325

Signed-off-by: Ayush Singh ayush@beagleboard.org

@thaliaarchi

In rust-lang#108326, read_buf was implemented for a variety of types, but SGX was saved for later. Update a test from then, now that rust-lang#137355 implemented it for SGX types.

@Ayush1325

Signed-off-by: Ayush Singh ayush@beagleboard.org

@Ayush1325

Signed-off-by: Ayush Singh ayush@beagleboard.org

@Ayush1325

UEFI does not have specific modes for create_new, truncate and append. So those need to to be simulated after opening the file.

Signed-off-by: Ayush Singh ayush@beagleboard.org

@jieyouxu

@jieyouxu

@jieyouxu

As an unstable print request.

@jieyouxu

@jieyouxu

@jieyouxu

@reddevilmidzy

@petrochenkov

@chiichen

@Veykril

rustc_index is only used for its size assertion macro, so demote it to a dev-dependency gated under testing instead

@jieyouxu

uefi: Add OwnedEvent abstraction

cc @nicholasbishop

@jieyouxu

…eGomez

rustdoc: Gate unstable doc(cfg()) predicates

Fixes rust-lang#138113

Since the extraction process treats cfg(true) as having no cfg attribute, we have to do the gating during parsing; so we remove the unused features arg from Cfg::matches

@jieyouxu

@jieyouxu

…owLii

Slim rustc_parse_format dependencies down

rustc_index is only used for its size assertion macro, so demote it to a dev-dependency gated under testing instead. This allows the crate to built without having to wait for syn (pulled in by rustc_index_macros)

Alternatively we could inline the macro, though from the looks of it that will run into trouble with rustc_randomized_layouts

@jieyouxu

…orkingjubilee

Update test for SGX now implementing read_buf

In rust-lang#108326, read_buf was implemented for a variety of types, but SGX was saved for later. Update a test from then, now that rust-lang#137355 implemented it for SGX types.

cc @jethrogb

@jieyouxu

…es, r=Urgau

Add unstable --print=supported-crate-types option

MCP: rust-lang/compiler-team#836 Tracking issue: rust-lang#138640

Test coverage

Two tests:

  1. tests/ui/print-request/stability.rs to check that --print=supported-crate-types is -Zunstable-options-gated
  2. tests/ui/print-request/supported-crate-types.rs is added as a basic smoke test. Observe that the compiler stdout corresponds to the below Example output section (e.g. proc-macro is unsupported on wasm32-unknown-unknown currently).

Example output

For `x86_64-unknown-linux-gnu`

Notice the presence of {c,}dylib and proc-macro:

bin
cdylib
dylib
lib
proc-macro
rlib
staticlib
For `wasm32-unknown-unknown`

Notice the absence of dylib and proc-macro:

bin
cdylib
lib
rlib
staticlib
For `x86_64-unknown-linux-musl`

Notice the absence of {c,}dylib but presence of proc-macro:

bin
lib
proc-macro
rlib
staticlib

Documentation

I added an entry in the unstable book's print request section to document this supported-crate-types print request.

Unresolved questions

Stability

This print request being added is unstable in this PR. A separate stabilization PR following the usual compiler flag stabilization procedure should be filed for stabilization after some baking time.

Review remarks

Best reviewed commit-by-commit.

r? compiler

@jieyouxu

…hop,petrochenkov

Implement some basics in UEFI fs

cc @nicholasbishop @dvdhrm

@jieyouxu

resolve: Avoid remaining unstable iteration

Continuation of rust-lang#138580. This should be the performance sensitive part.

@jieyouxu

…nfigtoml, r=TaKO8Ki

doc: rename reference #create-a-configtoml to #create-a-bootstraptoml

rust-lang/rustc-dev-guide@e4ddc21 This commit renamed config.toml to bootstrap.toml.

@rustbot rustbot added A-run-make

Area: port run-make Makefiles to rmake.rs

S-waiting-on-review

Status: Awaiting review from the assignee but also interested parties.

T-bootstrap

Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)

T-compiler

Relevant to the compiler team, which will review and decide on the PR/issue.

labels

Mar 23, 2025

@rustbot rustbot added T-libs

Relevant to the library team, which will review and decide on the PR/issue.

T-rustdoc

Relevant to the rustdoc team, which will review and decide on the PR/issue.

rollup

A PR which is a rollup

labels

Mar 23, 2025

@jieyouxu

@bors r+ rollup=never p=5

@bors

📌 Commit 5c17679 has been approved by jieyouxu

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

Mar 23, 2025

@bors

bors added a commit to rust-lang-ci/rust that referenced this pull request

Mar 23, 2025

@bors

@rust-log-analyzer

The job aarch64-apple failed! Check out the build log: (web) (plain)

Click to see the possible cause of the failure (guessed by this bot)

@bors

@bors bors added S-waiting-on-review

Status: Awaiting review from the assignee but also interested parties.

and removed S-waiting-on-bors

Status: Waiting on bors to run and complete tests. Bors will change the label on completion.

labels

Mar 23, 2025