Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Rollup of 7 pull requests#140329

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Closed

Conversation

@matthiaskrgr
Copy link
Member

Successful merges:

r?@ghost
@rustbot modify labels: rollup

Create a similar rollup

Urgauand others added16 commitsApril 20, 2025 11:36
This commit updates the vendored `wasm-component-ld` binary to 0.5.13which includes some various bug fixes and new feature updates forupcoming component model features coming down the pike. Not expected tobreak any existing workflows, just a normal update.
Note that `NonZero` support is not wired up, as the author encounteredbugs while attempting this. A future commit will wire up `NonZero`support.
… r=jdonszelmann,traviscrossImplement a lint for implicit autoref of raw pointer dereference - take 2*[t-lang nomination comment](rust-lang#123239 (comment)This PR aims at implementing a lint for implicit autoref of raw pointer dereference, it is based onrust-lang#103735 with suggestion and improvements fromrust-lang#103735 (comment).The goal is to catch cases like this, where the user probably doesn't realise it just created a reference.```rustpub struct Test {    data: [u8],}pub fn test_len(t: *const Test) -> usize {    unsafe { (*t).data.len() }  // this calls <[T]>::len(&self)}```Sincerust-lang#103735 already went 2 times through T-lang, where they T-lang ended-up asking for a more restricted version (which is what this PR does), I would prefer this PR to be reviewed first before re-nominating it for T-lang.----Compared to the PR it is as based on, this PR adds 3 restrictions on the outer most expression, which must either be:   1. A deref followed by any non-deref place projection (that intermediate deref will typically be auto-inserted)   2. A method call annotated with `#[rustc_no_implicit_refs]`.   3. A deref followed by a `addr_of!` or `addr_of_mut!`. See bottom of post for details.There are several points that are not 100% clear to me when implementing the modifications: - ~~"4. Any number of automatically inserted deref/derefmut calls." I as never able to trigger this. Am I missing something?~~ Fixed - Are "index" and "field" enough?----cc ``@JakobDegen`` ``@WaffleLapkin``r? ``@RalfJung``
…o, r=jswrenntransmutability: Support char, NonZeroXxxNote that `NonZero` support is not wired up, as the author encounteredbugs while attempting this. A future commit will wire up `NonZero`support.r? ``@jswrenn``
…-ld, r=jieyouxuUpdate wasm-component-ld to 0.5.13This commit updates the vendored `wasm-component-ld` binary to 0.5.13 which includes some various bug fixes and new feature updates for upcoming component model features coming down the pike. Not expected to break any existing workflows, just a normal update.
…lcnrMove inline asm check to typeck, properly handle aliasesPull `InlineAsmCtxt` down to `rustc_hir_typeck`, and instead of using things like `Ty::is_copy`, use the `InferCtxt`-aware methods. Tofixrust-lang/trait-system-refactor-initiative#189, we also add a `try_structurally_resolve_*` call to `expr_ty`.r? lcnr
Remove redundant checkWe still check for `rustc_on_unimplemented` on implementations, but this functionality was removed inrust-lang#139091, since then it always returns `Ok` when called with a non-trait defid.https://github.com/rust-lang/rust/blob/b4c8b0c3f0533bb342a4873ff59bdad3883ab8e3/compiler/rustc_trait_selection/src/error_reporting/traits/on_unimplemented.rs#L557-L564
…fn-kind-err, r=fee1-deadSimply try to unpeel AsyncFnKindHelper goal in `emit_specialized_closure_kind_error`Tweak the handling of `AsyncFnKindHelper` goals in `emit_specialized_closure_kind_error` to not be so special-casey, and just try to unpeel one or two layers of obligation causes to get to their underlying `AsyncFn*` goal.Fixesrust-lang#140292
…for-bufread-has-data-left-docs, r=jhprattGrammar fixes for BufRead::has_data_left docsFix some grammar in the documentation for `BufRead::has_data_left`
@rustbotrustbot added A-attributesArea: Attributes (`#[…]`, `#![…]`) S-waiting-on-reviewStatus: Awaiting review from the assignee but also interested parties. T-compilerRelevant to the compiler team, which will review and decide on the PR/issue. T-libsRelevant to the library team, which will review and decide on the PR/issue. rollupA PR which is a rollup labelsApr 26, 2025
@matthiaskrgr
Copy link
MemberAuthor

@bors r+ rollup=never p=5

@bors
Copy link
Collaborator

📌 Commitaf18438 has been approved bymatthiaskrgr

It is now in thequeue for this repository.

@borsbors added S-waiting-on-borsStatus: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-reviewStatus: Awaiting review from the assignee but also interested parties. labelsApr 26, 2025
@bors
Copy link
Collaborator

⌛ Testing commitaf18438 with mergec6f4ff1...

bors added a commit to rust-lang-ci/rust that referenced this pull requestApr 26, 2025
…iaskrgrRollup of 7 pull requestsSuccessful merges: -rust-lang#123239 (Implement a lint for implicit autoref of raw pointer dereference - take 2) -rust-lang#140215 (transmutability: Support char, NonZeroXxx) -rust-lang#140226 (Update wasm-component-ld to 0.5.13) -rust-lang#140302 (Move inline asm check to typeck, properly handle aliases) -rust-lang#140317 (Remove redundant check) -rust-lang#140318 (Simply try to unpeel AsyncFnKindHelper goal in `emit_specialized_closure_kind_error`) -rust-lang#140325 (Grammar fixes for BufRead::has_data_left docs)r? `@ghost``@rustbot` modify labels: rollup
@rust-log-analyzer
Copy link
Collaborator

The jobtest-various failed! Check out the build log:(web)(plain)

Click to see the possible cause of the failure (guessed by this bot)
---- [ui] tests/ui/asm/normalizable-asm-ty.rs#next stdout ----error in revision `next`: test compilation failed although it shouldn't!status: exit status: 1command: env -u RUSTC_LOG_COLOR RUSTC_ICE="0" RUST_BACKTRACE="short" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/tests/ui/asm/normalizable-asm-ty.rs" "-Zthreads=1" "-Zsimulate-remapped-rust-src-base=/rustc/FAKE_PREFIX" "-Ztranslate-remapped-path-to-local-path=no" "-Z" "ignore-directory-in-diagnostics-source-blocks=/cargo" "-Z" "ignore-directory-in-diagnostics-source-blocks=/checkout/vendor" "--sysroot" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2" "--target=wasm32-wasip1" "--cfg" "next" "--check-cfg" "cfg(test,FALSE,current,next)" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Zwrite-long-types-to-disk=no" "-Cstrip=debuginfo" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/asm/normalizable-asm-ty.next" "-A" "unused" "-A" "internal_features" "-Crpath" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/wasm32-wasip1/native/rust-test-helpers" "-Znext-solver"stdout: none--- stderr -------------------------------error[E0658]: inline assembly is not stable yet on this architecture##[error]  --> /checkout/tests/ui/asm/normalizable-asm-ty.rs:8:9   |LL | /         std::arch::asm!(LL | |             "/* {} */",LL | |             in(reg) pc_section[0]LL | |         );   | |_________^   |   = note: see issue #93335 <https://github.com/rust-lang/rust/issues/93335> for more information   = help: add `#![feature(asm_experimental_arch)]` to the crate attributes to enable   = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of dateerror: invalid register class `reg`: unknown register class##[error]  --> /checkout/tests/ui/asm/normalizable-asm-ty.rs:10:13   |LL |             in(reg) pc_section[0]   |             ^^^^^^^^^^^^^^^^^^^^^   |   = note: the following register classes are supported on this target: `local`error: aborting due to 2 previous errors------- [ui] tests/ui/asm/normalizable-asm-ty.rs#current stdout ----error in revision `current`: test compilation failed although it shouldn't!status: exit status: 1command: env -u RUSTC_LOG_COLOR RUSTC_ICE="0" RUST_BACKTRACE="short" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/tests/ui/asm/normalizable-asm-ty.rs" "-Zthreads=1" "-Zsimulate-remapped-rust-src-base=/rustc/FAKE_PREFIX" "-Ztranslate-remapped-path-to-local-path=no" "-Z" "ignore-directory-in-diagnostics-source-blocks=/cargo" "-Z" "ignore-directory-in-diagnostics-source-blocks=/checkout/vendor" "--sysroot" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2" "--target=wasm32-wasip1" "--cfg" "current" "--check-cfg" "cfg(test,FALSE,current,next)" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Zwrite-long-types-to-disk=no" "-Cstrip=debuginfo" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/asm/normalizable-asm-ty.current" "-A" "unused" "-A" "internal_features" "-Crpath" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/wasm32-wasip1/native/rust-test-helpers"stdout: none--- stderr -------------------------------error[E0658]: inline assembly is not stable yet on this architecture##[error]  --> /checkout/tests/ui/asm/normalizable-asm-ty.rs:8:9   |LL | /         std::arch::asm!(LL | |             "/* {} */",LL | |             in(reg) pc_section[0]LL | |         );   | |_________^   |   = note: see issue #93335 <https://github.com/rust-lang/rust/issues/93335> for more information   = help: add `#![feature(asm_experimental_arch)]` to the crate attributes to enable   = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of dateerror: invalid register class `reg`: unknown register class##[error]  --> /checkout/tests/ui/asm/normalizable-asm-ty.rs:10:13   |LL |             in(reg) pc_section[0]   |             ^^^^^^^^^^^^^^^^^^^^^   |   = note: the following register classes are supported on this target: `local`error: aborting due to 2 previous errors

@bors
Copy link
Collaborator

💔 Test failed -checks-actions

@borsbors removed the S-waiting-on-borsStatus: Waiting on bors to run and complete tests. Bors will change the label on completion. labelApr 26, 2025
@borsbors added the S-waiting-on-reviewStatus: Awaiting review from the assignee but also interested parties. labelApr 26, 2025
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

A-attributesArea: Attributes (`#[…]`, `#![…]`)rollupA PR which is a rollupS-waiting-on-reviewStatus: Awaiting review from the assignee but also interested parties.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.T-libsRelevant to the library team, which will review and decide on the PR/issue.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

10 participants

@matthiaskrgr@bors@rust-log-analyzer@rustbot@Urgau@alexcrichton@compiler-errors@joshlf@mejrs@ethanwu10

[8]ページ先頭

©2009-2025 Movatter.jp