Skip to content

Commit 5324957

Browse files
committed
Revert "Merge branch 'main' into update-toolchain-Nov-02-2025"
This reverts commit 716e6de, reversing changes made to 27398fd.
1 parent 280f4fd commit 5324957

File tree

92 files changed

+3627
-3871
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

92 files changed

+3627
-3871
lines changed

crates/rustc_codegen_spirv/build.rs

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ use std::collections::VecDeque;
88
use std::error::Error;
99
use std::path::{Path, PathBuf};
1010
use std::process::{Command, ExitCode};
11-
use std::string::ToString;
1211
use std::{env, fs, mem};
1312

1413
/// Current `rust-toolchain.toml` file
@@ -34,15 +33,15 @@ fn get_rustc_commit_hash() -> Result<String, Box<dyn Error>> {
3433
rustc_output("-vV")?
3534
.lines()
3635
.find_map(|l| l.strip_prefix("commit-hash: "))
37-
.map(ToString::to_string)
36+
.map(|s| s.to_string())
3837
.ok_or_else(|| "`commit-hash` not found in `rustc -vV` output".into())
3938
}
4039

4140
fn get_required_commit_hash() -> Result<String, Box<dyn Error>> {
4241
REQUIRED_RUST_TOOLCHAIN
4342
.lines()
4443
.find_map(|l| l.strip_prefix("# commit_hash = "))
45-
.map(ToString::to_string)
44+
.map(|s| s.to_string())
4645
.ok_or_else(|| "`commit_hash` not found in `rust-toolchain.toml`".into())
4746
}
4847

@@ -73,16 +72,16 @@ fn check_toolchain_version() -> Result<(), Box<dyn Error>> {
7372
let stripped_toolchain = REQUIRED_RUST_TOOLCHAIN
7473
.lines()
7574
.filter(|l| !l.trim().is_empty() && !l.starts_with("# "))
76-
.map(ToString::to_string)
75+
.map(|l| l.to_string())
7776
.reduce(|a, b| a + "\n" + &b)
7877
.unwrap_or_default();
7978

8079
return Err(format!(
81-
"error: wrong toolchain detected (found commit hash `{current_hash}`, expected `{required_hash}`).
80+
r#"error: wrong toolchain detected (found commit hash `{current_hash}`, expected `{required_hash}`).
8281
Make sure your `rust-toolchain.toml` file contains the following:
8382
-------------
8483
{stripped_toolchain}
85-
-------------"
84+
-------------"#
8685
).into());
8786
}
8887
}

crates/rustc_codegen_spirv/src/attr.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ pub enum IntrinsicType {
7575
pub struct SpecConstant {
7676
pub id: u32,
7777
pub default: Option<u32>,
78-
pub array_count: Option<u32>,
7978
}
8079

8180
// NOTE(eddyb) when adding new `#[spirv(...)]` attributes, the tests found inside
@@ -662,8 +661,6 @@ fn parse_spec_constant_attr(
662661
Ok(SpecConstant {
663662
id: id.ok_or_else(|| (arg.span(), "expected `spec_constant(id = ...)`".into()))?,
664663
default,
665-
// to be set later
666-
array_count: None,
667664
})
668665
}
669666

crates/rustc_codegen_spirv/src/builder/builder_methods.rs

Lines changed: 774 additions & 5 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)