Skip to content

Commit 219ab8f

Browse files
committed
Migrate to Rust 2024.
1 parent c7a9f61 commit 219ab8f

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ repository = "https://github.com/rust-gpu/spirt"
55
homepage = "https://github.com/rust-gpu/spirt"
66
version = "0.4.0"
77
authors = ["SPIR-T developers", "Embark <[email protected]>"]
8-
edition = "2021"
8+
edition = "2024"
99
license = "MIT OR Apache-2.0"
1010
readme = "README.md"
1111
# FIXME(eddyb) should this point to the version built from `git`?

src/cfg.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ impl ControlFlowGraph {
8282
pub fn rev_post_order(
8383
&self,
8484
func_def_body: &FuncDefBody,
85-
) -> impl DoubleEndedIterator<Item = Region> {
85+
) -> impl DoubleEndedIterator<Item = Region> + use<> {
8686
let mut post_order = SmallVec::<[_; 8]>::new();
8787
self.traverse_whole_func(
8888
func_def_body,

src/cfgssa.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -564,7 +564,7 @@ mod data {
564564
self.contains(k).then(|| self.entry(k).remove().unwrap())
565565
}
566566

567-
pub fn keys(&self) -> impl Iterator<Item = K> {
567+
pub fn keys(&self) -> impl Iterator<Item = K> + use<K, V, VS> {
568568
let mut i = 0;
569569
let mut remaining = self.occupied;
570570
iter::from_fn(move || {

src/print/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1952,7 +1952,7 @@ impl AttrsAndDef {
19521952
let mut maybe_def_end_anchor = pretty::Fragment::default();
19531953
let mut name = name.into();
19541954
if let [
1955-
pretty::Node::Anchor { is_def: ref mut original_anchor_is_def @ true, anchor, text: _ },
1955+
pretty::Node::Anchor { is_def: original_anchor_is_def @ true, anchor, text: _ },
19561956
..,
19571957
] = &mut name.nodes[..]
19581958
{

0 commit comments

Comments
 (0)