Skip to content

Commit fcf9dbf

Browse files
committed
More tweaks to accomodate recent rustc changes
1 parent c0c12b8 commit fcf9dbf

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

crates/rustc_codegen_spirv/src/builder/builder_methods.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1920,6 +1920,7 @@ impl<'a, 'tcx> BuilderMethods<'a, 'tcx> for Builder<'a, 'tcx> {
19201920
OperandRef {
19211921
val,
19221922
layout: place.layout,
1923+
move_annotation: None,
19231924
}
19241925
}
19251926

crates/rustc_codegen_spirv/src/builder/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ impl<'a, 'tcx> CoverageInfoBuilderMethods<'tcx> for Builder<'a, 'tcx> {
173173
fn add_coverage(&mut self, _instance: Instance<'tcx>, _kind: &CoverageKind) {}
174174
}
175175

176-
impl<'a, 'tcx> DebugInfoBuilderMethods for Builder<'a, 'tcx> {
176+
impl<'a, 'tcx> DebugInfoBuilderMethods<'_> for Builder<'a, 'tcx> {
177177
fn dbg_var_addr(
178178
&mut self,
179179
_dbg_var: Self::DIVariable,

crates/rustc_codegen_spirv/src/target.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use rspirv::spirv::MemoryModel;
2-
use rustc_target::spec::{Cc, LinkerFlavor, PanicStrategy, Target, TargetOptions};
2+
use rustc_target::spec::{Cc, LinkerFlavor, PanicStrategy, Target, TargetOptions, Arch};
33
use spirv_tools::TargetEnv;
44

55
const ARCH: &str = "spirv";
@@ -74,7 +74,7 @@ impl SpirvTarget {
7474
metadata: Default::default(),
7575
pointer_width: 32,
7676
data_layout: "e-m:e-p:32:32:32-i64:64-n8:16:32:64".into(),
77-
arch: ARCH.into(),
77+
arch: Arch::Unknown(ARCH.into()),
7878
options: self.init_target_opts(),
7979
}
8080
}

0 commit comments

Comments
 (0)