Skip to content

Commit e0f3be2

Browse files
committed
rustup: update to nightly-2024-12-17.
1 parent 020fde2 commit e0f3be2

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

crates/rustc_codegen_spirv/build.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ use std::{env, fs, mem};
1818
/// `cargo publish`. We need to figure out a way to do this properly, but let's hardcode it for now :/
1919
//const REQUIRED_RUST_TOOLCHAIN: &str = include_str!("../../rust-toolchain.toml");
2020
const REQUIRED_RUST_TOOLCHAIN: &str = r#"[toolchain]
21-
channel = "nightly-2024-12-16"
21+
channel = "nightly-2024-12-17"
2222
components = ["rust-src", "rustc-dev", "llvm-tools"]
23-
# commit_hash = c26db435bf8aee2efc397aab50f3a21eb351d6e5"#;
23+
# commit_hash = 6d9f6ae36ae1299d6126ba40c15191f7aa3b79d8"#;
2424

2525
fn rustc_output(arg: &str) -> Result<String, Box<dyn Error>> {
2626
let rustc = env::var("RUSTC").unwrap_or_else(|_| "rustc".into());

crates/rustc_codegen_spirv/src/attr.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,10 @@
55
use crate::codegen_cx::CodegenCx;
66
use crate::symbols::Symbols;
77
use rspirv::spirv::{BuiltIn, ExecutionMode, ExecutionModel, StorageClass};
8-
use rustc_ast::Attribute;
98
use rustc_hir as hir;
109
use rustc_hir::def_id::LocalModDefId;
1110
use rustc_hir::intravisit::{self, Visitor};
12-
use rustc_hir::{CRATE_HIR_ID, HirId, MethodKind, Target};
11+
use rustc_hir::{Attribute, CRATE_HIR_ID, HirId, MethodKind, Target};
1312
use rustc_middle::hir::nested_filter;
1413
use rustc_middle::query::Providers;
1514
use rustc_middle::ty::TyCtxt;

crates/rustc_codegen_spirv/src/symbols.rs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
use crate::attr::{Entry, ExecutionModeExtra, IntrinsicType, SpecConstant, SpirvAttribute};
22
use crate::builder::libm_intrinsics;
33
use rspirv::spirv::{BuiltIn, ExecutionMode, ExecutionModel, StorageClass};
4-
use rustc_ast::ast::{AttrKind, Attribute, LitIntType, LitKind, MetaItemInner, MetaItemLit};
4+
use rustc_ast::ast::{LitIntType, LitKind, MetaItemInner, MetaItemLit};
55
use rustc_data_structures::fx::FxHashMap;
6+
use rustc_hir::{AttrKind, Attribute};
67
use rustc_span::Span;
78
use rustc_span::symbol::{Ident, Symbol};
89
use std::rc::Rc;
@@ -447,12 +448,12 @@ pub(crate) fn parse_attrs_for_checking<'a>(
447448
) -> impl Iterator<Item = Result<(Span, SpirvAttribute), ParseAttrError>> + 'a {
448449
attrs.iter().flat_map(move |attr| {
449450
let (whole_attr_error, args) = match attr.kind {
450-
AttrKind::Normal(ref normal) => {
451+
AttrKind::Normal(ref item) => {
451452
// #[...]
452-
let s = &normal.item.path.segments;
453-
if s.len() > 1 && s[0].ident.name == sym.rust_gpu {
453+
let s = &item.path.segments;
454+
if s.len() > 1 && s[0].name == sym.rust_gpu {
454455
// #[rust_gpu ...]
455-
if s.len() != 2 || s[1].ident.name != sym.spirv {
456+
if s.len() != 2 || s[1].name != sym.spirv {
456457
// #[rust_gpu::...] but not #[rust_gpu::spirv]
457458
(
458459
Some(Err((

rust-toolchain.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[toolchain]
2-
channel = "nightly-2024-12-16"
2+
channel = "nightly-2024-12-17"
33
components = ["rust-src", "rustc-dev", "llvm-tools"]
4-
# commit_hash = c26db435bf8aee2efc397aab50f3a21eb351d6e5
4+
# commit_hash = 6d9f6ae36ae1299d6126ba40c15191f7aa3b79d8
55

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

0 commit comments

Comments
 (0)