Skip to content

Commit bbb61f5

Browse files
eddybLegNeato
authored andcommitted
rustup: update to nightly-2024-03-21. Breaks for_range_signed
1 parent eab4b5b commit bbb61f5

29 files changed

+188
-33
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.toml");
1212
const REQUIRED_RUST_TOOLCHAIN: &str = r#"[toolchain]
13-
channel = "nightly-2024-03-11"
13+
channel = "nightly-2024-03-21"
1414
components = ["rust-src", "rustc-dev", "llvm-tools"]
15-
# commit_hash = 3b1717c052de4a2dbdd3badb0e7a885f40a8ad9e"#;
15+
# commit_hash = 1388d7a069d872bcfe5e5dd97ef61fa0a586fac0"#;
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/attr.rs

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

456456
fn visit_stmt(&mut self, stmt: &'tcx hir::Stmt<'tcx>) {
457457
// When checking statements ignore expressions, they will be checked later.
458-
if let hir::StmtKind::Local(l) = stmt.kind {
458+
if let hir::StmtKind::Let(l) = stmt.kind {
459459
self.check_spirv_attributes(l.hir_id, Target::Statement);
460460
}
461461
intravisit::walk_stmt(self, stmt);

crates/rustc_codegen_spirv/src/codegen_cx/declare.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ impl<'tcx> StaticMethods for CodegenCx<'tcx> {
330330
)
331331
}
332332

333-
fn codegen_static(&self, def_id: DefId, _is_mutable: bool) {
333+
fn codegen_static(&self, def_id: DefId) {
334334
let g = self.get_static(def_id);
335335

336336
let alloc = match self.tcx.eval_static_initializer(def_id) {

crates/rustc_codegen_spirv/src/linker/test.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,10 @@ fn link_with_linker_opts(
148148
Default::default(),
149149
Default::default(),
150150
Default::default(),
151+
"spirv-unknown-spv1.0"
152+
.parse::<crate::target::SpirvTarget>()
153+
.unwrap()
154+
.rustc_target(),
151155
Default::default(),
152156
rustc_interface::util::rustc_version_str().unwrap_or("unknown"),
153157
Default::default(),

crates/rustc_codegen_spirv/src/target.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ impl SpirvTarget {
9797
pub fn rustc_target(&self) -> Target {
9898
Target {
9999
llvm_target: self.to_string().into(),
100-
description: None,
100+
metadata: Default::default(),
101101
pointer_width: 32,
102102
data_layout: "e-m:e-p:32:32:32-i64:64-n8:16:32:64".into(),
103103
arch: ARCH.into(),

crates/spirv-builder/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -752,7 +752,7 @@ fn invoke_rustc(builder: &SpirvBuilder) -> Result<PathBuf, SpirvBuilderError> {
752752
cargo.arg("--target").arg(
753753
Path::new(env!("CARGO_MANIFEST_DIR"))
754754
.join("target-specs")
755-
.join(&format!("{}.json", builder.target)),
755+
.join(format!("{}.json", builder.target)),
756756
);
757757

758758
// NOTE(eddyb) see above how this is computed and why it might be missing.

crates/spirv-builder/target-specs/spirv-unknown-opengl4.0.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
"crt-objects-fallback": "false",
55
"crt-static-allows-dylibs": true,
66
"data-layout": "e-m:e-p:32:32:32-i64:64-n8:16:32:64",
7-
"description": null,
87
"dll-prefix": "",
98
"dll-suffix": ".spv.json",
109
"dynamic-linking": true,
@@ -14,6 +13,12 @@
1413
"linker-is-gnu": false,
1514
"llvm-target": "spirv-unknown-opengl4.0",
1615
"main-needs-argc-argv": false,
16+
"metadata": {
17+
"description": null,
18+
"host_tools": null,
19+
"std": null,
20+
"tier": null
21+
},
1722
"os": "unknown",
1823
"panic-strategy": "abort",
1924
"simd-types-indirect": false,

crates/spirv-builder/target-specs/spirv-unknown-opengl4.1.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
"crt-objects-fallback": "false",
55
"crt-static-allows-dylibs": true,
66
"data-layout": "e-m:e-p:32:32:32-i64:64-n8:16:32:64",
7-
"description": null,
87
"dll-prefix": "",
98
"dll-suffix": ".spv.json",
109
"dynamic-linking": true,
@@ -14,6 +13,12 @@
1413
"linker-is-gnu": false,
1514
"llvm-target": "spirv-unknown-opengl4.1",
1615
"main-needs-argc-argv": false,
16+
"metadata": {
17+
"description": null,
18+
"host_tools": null,
19+
"std": null,
20+
"tier": null
21+
},
1722
"os": "unknown",
1823
"panic-strategy": "abort",
1924
"simd-types-indirect": false,

crates/spirv-builder/target-specs/spirv-unknown-opengl4.2.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
"crt-objects-fallback": "false",
55
"crt-static-allows-dylibs": true,
66
"data-layout": "e-m:e-p:32:32:32-i64:64-n8:16:32:64",
7-
"description": null,
87
"dll-prefix": "",
98
"dll-suffix": ".spv.json",
109
"dynamic-linking": true,
@@ -14,6 +13,12 @@
1413
"linker-is-gnu": false,
1514
"llvm-target": "spirv-unknown-opengl4.2",
1615
"main-needs-argc-argv": false,
16+
"metadata": {
17+
"description": null,
18+
"host_tools": null,
19+
"std": null,
20+
"tier": null
21+
},
1722
"os": "unknown",
1823
"panic-strategy": "abort",
1924
"simd-types-indirect": false,

crates/spirv-builder/target-specs/spirv-unknown-opengl4.3.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
"crt-objects-fallback": "false",
55
"crt-static-allows-dylibs": true,
66
"data-layout": "e-m:e-p:32:32:32-i64:64-n8:16:32:64",
7-
"description": null,
87
"dll-prefix": "",
98
"dll-suffix": ".spv.json",
109
"dynamic-linking": true,
@@ -14,6 +13,12 @@
1413
"linker-is-gnu": false,
1514
"llvm-target": "spirv-unknown-opengl4.3",
1615
"main-needs-argc-argv": false,
16+
"metadata": {
17+
"description": null,
18+
"host_tools": null,
19+
"std": null,
20+
"tier": null
21+
},
1722
"os": "unknown",
1823
"panic-strategy": "abort",
1924
"simd-types-indirect": false,

0 commit comments

Comments
 (0)