Diverse offload fixes - #161968
Merged
Merged
Conversation
Sa4dUs
commented
Aug 29, 2026
| ecx.path_global( | ||
| span, | ||
| [sym::std, sym::unimplemented].map(|s| Ident::new(s, span)).to_vec(), | ||
| [sym::core, sym::unimplemented].map(|s| Ident::new(s, span)).to_vec(), |
Contributor
Author
There was a problem hiding this comment.
this is not necessary if we compile the host with std, but ig it's still better to use core
Member
There was a problem hiding this comment.
yes, there isn't really a reason to prevent offload to work in no-std code.
Sa4dUs
marked this pull request as ready for review
August 29, 2026 12:02
This comment has been minimized.
This comment has been minimized.
Member
|
Confirmed to work on a server. |
Contributor
Author
|
@bors r=ZuseZ4 |
Contributor
JonathanBrouwer
added a commit
to JonathanBrouwer/rust
that referenced
this pull request
Sep 1, 2026
Diverse offload fixes `HostMetadata` pass skips linking. Now, `offload_kernel` macro lowers to `core` instead of `std`. closes: rust-lang#161703 r? @ZuseZ4
JonathanBrouwer
added a commit
to JonathanBrouwer/rust
that referenced
this pull request
Sep 1, 2026
Diverse offload fixes `HostMetadata` pass skips linking. Now, `offload_kernel` macro lowers to `core` instead of `std`. closes: rust-lang#161703 r? @ZuseZ4
This was referenced Sep 1, 2026
rust-bors Bot
pushed a commit
that referenced
this pull request
Sep 1, 2026
…uwer Rollup of 11 pull requests Successful merges: - #151618 (rustdoc: add `--print` option) - #161287 (Update `icu_list` dependency to 2.3) - #161767 (change DEFAULT_STACK_SIZE to be 32MB on s390x) - #161968 (Diverse offload fixes) - #161971 (Remove -Zsaturating-float-casts flag) - #162071 (Fix ICE of getting item name from RPITIT) - #161209 (Rework `next_power_of_two` to always be `1 << …`) - #162073 (Change some `Infallible` to `!` in std) - #162086 (Remove `gate_check` from `AttributeStability::Unstable`) - #162102 (`alloc` crate: shrink undocumented `unsafe` blocks) - #162110 (make it clear that Range cannot represent arbitrary ranges)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
HostMetadatapass skips linking. Now,offload_kernelmacro lowers tocoreinstead ofstd.closes: #161703
r? @ZuseZ4