Skip to content

Commit 2cb10b2

Browse files
oisyneddyb
authored andcommitted
Update to nightly-2022-11-28
1 parent 816c340 commit 2cb10b2

File tree

11 files changed

+18
-19
lines changed

11 files changed

+18
-19
lines changed

crates/rustc_codegen_spirv/build.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ use std::process::{Command, ExitCode};
1010
/// `cargo publish`. We need to figure out a way to do this properly, but let's hardcode it for now :/
1111
//const REQUIRED_RUST_TOOLCHAIN: &str = include_str!("../../rust-toolchain");
1212
const REQUIRED_RUST_TOOLCHAIN: &str = r#"[toolchain]
13-
channel = "nightly-2022-11-14"
13+
channel = "nightly-2022-11-28"
1414
components = ["rust-src", "rustc-dev", "llvm-tools-preview"]
15-
# commit_hash = e631891f7ad40eac3ef58ec3c2b57ecd81e40615"#;
15+
# commit_hash = 1eb62b1235fd77200e6bd967d70e83c0f2497233"#;
1616

1717
fn get_rustc_commit_hash() -> Result<String, Box<dyn Error>> {
1818
let rustc = std::env::var("RUSTC").unwrap_or_else(|_| String::from("rustc"));

crates/rustc_codegen_spirv/src/abi.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ pub(crate) fn provide(providers: &mut Providers) {
9494

9595
// FIXME(eddyb) remove this by deriving `Clone` for `LayoutS` upstream.
9696
// FIXME(eddyb) the `S` suffix is a naming antipattern, rename upstream.
97-
fn clone_layout<'a>(layout: &LayoutS<'a>) -> LayoutS<'a> {
97+
fn clone_layout<V: Idx>(layout: &LayoutS<V>) -> LayoutS<V> {
9898
let LayoutS {
9999
ref fields,
100100
ref variants,

crates/rustc_codegen_spirv/src/attr.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,7 @@ impl<'tcx> Visitor<'tcx> for CheckSpirvAttrVisitor<'tcx> {
461461
}
462462

463463
fn visit_variant(&mut self, variant: &'tcx hir::Variant<'tcx>) {
464-
self.check_spirv_attributes(variant.id, Target::Variant);
464+
self.check_spirv_attributes(variant.hir_id, Target::Variant);
465465
intravisit::walk_variant(self, variant);
466466
}
467467

crates/rustc_codegen_spirv/src/builder/builder_methods.rs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1126,13 +1126,13 @@ impl<'a, 'tcx> BuilderMethods<'a, 'tcx> for Builder<'a, 'tcx> {
11261126

11271127
/// Called for `Rvalue::Repeat` when the elem is neither a ZST nor optimizable using memset.
11281128
fn write_operand_repeatedly(
1129-
mut self,
1129+
&mut self,
11301130
cg_elem: OperandRef<'tcx, Self::Value>,
11311131
count: u64,
11321132
dest: PlaceRef<'tcx, Self::Value>,
1133-
) -> Self {
1133+
) {
11341134
let zero = self.const_usize(0);
1135-
let start = dest.project_index(&mut self, zero).llval;
1135+
let start = dest.project_index(self, zero).llval;
11361136

11371137
let elem_layout = dest.layout.field(self.cx(), 0);
11381138
let elem_ty = elem_layout.spirv_type(self.span(), &self);
@@ -1141,12 +1141,10 @@ impl<'a, 'tcx> BuilderMethods<'a, 'tcx> for Builder<'a, 'tcx> {
11411141
for i in 0..count {
11421142
let current = self.inbounds_gep(elem_ty, start, &[self.const_usize(i)]);
11431143
cg_elem.val.store(
1144-
&mut self,
1144+
self,
11451145
PlaceRef::new_sized_aligned(current, cg_elem.layout, align),
11461146
);
11471147
}
1148-
1149-
self
11501148
}
11511149

11521150
fn range_metadata(&mut self, _load: Self::Value, _range: WrappingRange) {

crates/rustc_codegen_spirv/src/builder/mod.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ use rustc_span::source_map::Span;
3535
use rustc_target::abi::call::{ArgAbi, FnAbi, PassMode};
3636
use rustc_target::abi::{HasDataLayout, Size, TargetDataLayout};
3737
use rustc_target::spec::{HasTargetSpec, Target};
38-
use std::ops::Deref;
38+
use std::ops::{Deref, Range};
3939

4040
pub struct Builder<'a, 'tcx> {
4141
cx: &'a CodegenCx<'tcx>,
@@ -294,6 +294,7 @@ impl<'a, 'tcx> DebugInfoBuilderMethods for Builder<'a, 'tcx> {
294294
_direct_offset: Size,
295295
// NB: each offset implies a deref (i.e. they're steps in a pointer chain).
296296
_indirect_offsets: &[Size],
297+
_fragment: Option<Range<Size>>,
297298
) {
298299
todo!()
299300
}

rust-toolchain

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
# to the user in the error, instead of "error: invalid channel name '[toolchain]'".
66

77
[toolchain]
8-
channel = "nightly-2022-11-14"
8+
channel = "nightly-2022-11-28"
99
components = ["rust-src", "rustc-dev", "llvm-tools-preview"]
10-
# commit_hash = e631891f7ad40eac3ef58ec3c2b57ecd81e40615
10+
# commit_hash = 1eb62b1235fd77200e6bd967d70e83c0f2497233
1111

1212
# Whenever changing the nightly channel, update the commit hash above, and make
1313
# sure to change REQUIRED_TOOLCHAIN in crates/rustc_codegen_spirv/src/build.rs also.

tests/ui/dis/ptr_copy.normal.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
error: Cannot memcpy dynamically sized data
2-
--> $CORE_SRC/intrinsics.rs:2518:9
2+
--> $CORE_SRC/intrinsics.rs:2519:9
33
|
4-
2518 | copy(src, dst, count)
4+
2519 | copy(src, dst, count)
55
| ^^^^^^^^^^^^^^^^^^^^^
66
|
77
= note: Stack:

tests/ui/dis/ptr_read.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
%4 = OpFunctionParameter %5
33
%6 = OpFunctionParameter %5
44
%7 = OpLabel
5-
OpLine %8 1139 8
5+
OpLine %8 1135 8
66
%9 = OpLoad %10 %4
77
OpLine %11 9 13
88
OpStore %6 %9

tests/ui/dis/ptr_read_method.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
%4 = OpFunctionParameter %5
33
%6 = OpFunctionParameter %5
44
%7 = OpLabel
5-
OpLine %8 1139 8
5+
OpLine %8 1135 8
66
%9 = OpLoad %10 %4
77
OpLine %11 9 13
88
OpStore %6 %9

tests/ui/dis/ptr_write.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
%7 = OpLabel
55
OpLine %8 9 35
66
%9 = OpLoad %10 %4
7-
OpLine %11 1336 8
7+
OpLine %11 1332 8
88
OpStore %6 %9
99
OpNoLine
1010
OpReturn

0 commit comments

Comments
 (0)