Update toolchain to nightly-03-02. #155
Merged
+5,246
−4,420
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.
The purpose of this change is to update the rust toolchain to a more recent release; specifically,
nightly-2025-03-02
.New toolchain means new rustc internal interface changes that needed to be made. Much of the logic is just copied from the llvm backend, with some changes to conform to nvvm specific logic and where assumptions of opaque pointers deviate with typed pointers. A major refactor to the debug metadata in the llvm backend was also brought in (though likely very unnecessary).
LLVM rust wrapper changes includes:
char*
andsize_t
lengths to createStringRef
s internally.Changes to cuda_builder when building cuda targets include:
no_std
saturating_float_casts=false
as nvvm does not support saturating float to int casts.nvvm_internal
as a tool attribute in all cratesComplies and runs the
add
example. Neitherpath_tracer
or optix examples have been tested with these changes.Thanks to @apriori for attempting the previous port, which served as a helpful guide for this port.