mirror of
https://github.com/EmbarkStudios/rust-gpu.git
synced 2024-11-21 22:34:34 +00:00
Update to nightly-2022-11-28
This commit is contained in:
parent
816c3409e2
commit
2cb10b2771
@ -10,9 +10,9 @@ use std::process::{Command, ExitCode};
|
||||
/// `cargo publish`. We need to figure out a way to do this properly, but let's hardcode it for now :/
|
||||
//const REQUIRED_RUST_TOOLCHAIN: &str = include_str!("../../rust-toolchain");
|
||||
const REQUIRED_RUST_TOOLCHAIN: &str = r#"[toolchain]
|
||||
channel = "nightly-2022-11-14"
|
||||
channel = "nightly-2022-11-28"
|
||||
components = ["rust-src", "rustc-dev", "llvm-tools-preview"]
|
||||
# commit_hash = e631891f7ad40eac3ef58ec3c2b57ecd81e40615"#;
|
||||
# commit_hash = 1eb62b1235fd77200e6bd967d70e83c0f2497233"#;
|
||||
|
||||
fn get_rustc_commit_hash() -> Result<String, Box<dyn Error>> {
|
||||
let rustc = std::env::var("RUSTC").unwrap_or_else(|_| String::from("rustc"));
|
||||
|
@ -94,7 +94,7 @@ pub(crate) fn provide(providers: &mut Providers) {
|
||||
|
||||
// FIXME(eddyb) remove this by deriving `Clone` for `LayoutS` upstream.
|
||||
// FIXME(eddyb) the `S` suffix is a naming antipattern, rename upstream.
|
||||
fn clone_layout<'a>(layout: &LayoutS<'a>) -> LayoutS<'a> {
|
||||
fn clone_layout<V: Idx>(layout: &LayoutS<V>) -> LayoutS<V> {
|
||||
let LayoutS {
|
||||
ref fields,
|
||||
ref variants,
|
||||
|
@ -461,7 +461,7 @@ impl<'tcx> Visitor<'tcx> for CheckSpirvAttrVisitor<'tcx> {
|
||||
}
|
||||
|
||||
fn visit_variant(&mut self, variant: &'tcx hir::Variant<'tcx>) {
|
||||
self.check_spirv_attributes(variant.id, Target::Variant);
|
||||
self.check_spirv_attributes(variant.hir_id, Target::Variant);
|
||||
intravisit::walk_variant(self, variant);
|
||||
}
|
||||
|
||||
|
@ -1126,13 +1126,13 @@ impl<'a, 'tcx> BuilderMethods<'a, 'tcx> for Builder<'a, 'tcx> {
|
||||
|
||||
/// Called for `Rvalue::Repeat` when the elem is neither a ZST nor optimizable using memset.
|
||||
fn write_operand_repeatedly(
|
||||
mut self,
|
||||
&mut self,
|
||||
cg_elem: OperandRef<'tcx, Self::Value>,
|
||||
count: u64,
|
||||
dest: PlaceRef<'tcx, Self::Value>,
|
||||
) -> Self {
|
||||
) {
|
||||
let zero = self.const_usize(0);
|
||||
let start = dest.project_index(&mut self, zero).llval;
|
||||
let start = dest.project_index(self, zero).llval;
|
||||
|
||||
let elem_layout = dest.layout.field(self.cx(), 0);
|
||||
let elem_ty = elem_layout.spirv_type(self.span(), &self);
|
||||
@ -1141,12 +1141,10 @@ impl<'a, 'tcx> BuilderMethods<'a, 'tcx> for Builder<'a, 'tcx> {
|
||||
for i in 0..count {
|
||||
let current = self.inbounds_gep(elem_ty, start, &[self.const_usize(i)]);
|
||||
cg_elem.val.store(
|
||||
&mut self,
|
||||
self,
|
||||
PlaceRef::new_sized_aligned(current, cg_elem.layout, align),
|
||||
);
|
||||
}
|
||||
|
||||
self
|
||||
}
|
||||
|
||||
fn range_metadata(&mut self, _load: Self::Value, _range: WrappingRange) {
|
||||
|
@ -35,7 +35,7 @@ use rustc_span::source_map::Span;
|
||||
use rustc_target::abi::call::{ArgAbi, FnAbi, PassMode};
|
||||
use rustc_target::abi::{HasDataLayout, Size, TargetDataLayout};
|
||||
use rustc_target::spec::{HasTargetSpec, Target};
|
||||
use std::ops::Deref;
|
||||
use std::ops::{Deref, Range};
|
||||
|
||||
pub struct Builder<'a, 'tcx> {
|
||||
cx: &'a CodegenCx<'tcx>,
|
||||
@ -294,6 +294,7 @@ impl<'a, 'tcx> DebugInfoBuilderMethods for Builder<'a, 'tcx> {
|
||||
_direct_offset: Size,
|
||||
// NB: each offset implies a deref (i.e. they're steps in a pointer chain).
|
||||
_indirect_offsets: &[Size],
|
||||
_fragment: Option<Range<Size>>,
|
||||
) {
|
||||
todo!()
|
||||
}
|
||||
|
@ -5,9 +5,9 @@
|
||||
# to the user in the error, instead of "error: invalid channel name '[toolchain]'".
|
||||
|
||||
[toolchain]
|
||||
channel = "nightly-2022-11-14"
|
||||
channel = "nightly-2022-11-28"
|
||||
components = ["rust-src", "rustc-dev", "llvm-tools-preview"]
|
||||
# commit_hash = e631891f7ad40eac3ef58ec3c2b57ecd81e40615
|
||||
# commit_hash = 1eb62b1235fd77200e6bd967d70e83c0f2497233
|
||||
|
||||
# Whenever changing the nightly channel, update the commit hash above, and make
|
||||
# sure to change REQUIRED_TOOLCHAIN in crates/rustc_codegen_spirv/src/build.rs also.
|
||||
|
@ -1,7 +1,7 @@
|
||||
error: Cannot memcpy dynamically sized data
|
||||
--> $CORE_SRC/intrinsics.rs:2518:9
|
||||
--> $CORE_SRC/intrinsics.rs:2519:9
|
||||
|
|
||||
2518 | copy(src, dst, count)
|
||||
2519 | copy(src, dst, count)
|
||||
| ^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: Stack:
|
||||
|
@ -2,7 +2,7 @@
|
||||
%4 = OpFunctionParameter %5
|
||||
%6 = OpFunctionParameter %5
|
||||
%7 = OpLabel
|
||||
OpLine %8 1139 8
|
||||
OpLine %8 1135 8
|
||||
%9 = OpLoad %10 %4
|
||||
OpLine %11 9 13
|
||||
OpStore %6 %9
|
||||
|
@ -2,7 +2,7 @@
|
||||
%4 = OpFunctionParameter %5
|
||||
%6 = OpFunctionParameter %5
|
||||
%7 = OpLabel
|
||||
OpLine %8 1139 8
|
||||
OpLine %8 1135 8
|
||||
%9 = OpLoad %10 %4
|
||||
OpLine %11 9 13
|
||||
OpStore %6 %9
|
||||
|
@ -4,7 +4,7 @@
|
||||
%7 = OpLabel
|
||||
OpLine %8 9 35
|
||||
%9 = OpLoad %10 %4
|
||||
OpLine %11 1336 8
|
||||
OpLine %11 1332 8
|
||||
OpStore %6 %9
|
||||
OpNoLine
|
||||
OpReturn
|
||||
|
@ -4,7 +4,7 @@
|
||||
%7 = OpLabel
|
||||
OpLine %8 9 37
|
||||
%9 = OpLoad %10 %4
|
||||
OpLine %11 1336 8
|
||||
OpLine %11 1332 8
|
||||
OpStore %6 %9
|
||||
OpNoLine
|
||||
OpReturn
|
||||
|
Loading…
Reference in New Issue
Block a user