Skip to content

Commit

Permalink
upgrade Rust to v1.69.0 (pantsbuild#18783)
Browse files Browse the repository at this point in the history
  • Loading branch information
asherf authored Apr 23, 2023
1 parent 09d09c6 commit cf806e7
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/test-cron.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
uses: actions/cache@v3
with:
key: Linux-ARM64-rustup-${{ hashFiles('rust-toolchain') }}-v2
path: '~/.rustup/toolchains/1.68.2-*
path: '~/.rustup/toolchains/1.69.0-*
~/.rustup/update-hashes
Expand Down Expand Up @@ -134,7 +134,7 @@ jobs:
uses: actions/cache@v3
with:
key: Linux-x86_64-rustup-${{ hashFiles('rust-toolchain') }}-v2
path: '~/.rustup/toolchains/1.68.2-*
path: '~/.rustup/toolchains/1.69.0-*
~/.rustup/update-hashes
Expand Down Expand Up @@ -247,7 +247,7 @@ jobs:
uses: actions/cache@v3
with:
key: macOS11-x86_64-rustup-${{ hashFiles('rust-toolchain') }}-v2
path: '~/.rustup/toolchains/1.68.2-*
path: '~/.rustup/toolchains/1.69.0-*
~/.rustup/update-hashes
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
uses: actions/cache@v3
with:
key: Linux-ARM64-rustup-${{ hashFiles('rust-toolchain') }}-v2
path: '~/.rustup/toolchains/1.68.2-*
path: '~/.rustup/toolchains/1.69.0-*
~/.rustup/update-hashes
Expand Down Expand Up @@ -137,7 +137,7 @@ jobs:
uses: actions/cache@v3
with:
key: Linux-x86_64-rustup-${{ hashFiles('rust-toolchain') }}-v2
path: '~/.rustup/toolchains/1.68.2-*
path: '~/.rustup/toolchains/1.69.0-*
~/.rustup/update-hashes
Expand Down Expand Up @@ -249,7 +249,7 @@ jobs:
uses: actions/cache@v3
with:
key: macOS11-x86_64-rustup-${{ hashFiles('rust-toolchain') }}-v2
path: '~/.rustup/toolchains/1.68.2-*
path: '~/.rustup/toolchains/1.69.0-*
~/.rustup/update-hashes
Expand Down Expand Up @@ -474,7 +474,7 @@ jobs:
uses: actions/cache@v3
with:
key: macOS10-15-x86_64-rustup-${{ hashFiles('rust-toolchain') }}-v2
path: '~/.rustup/toolchains/1.68.2-*
path: '~/.rustup/toolchains/1.69.0-*
~/.rustup/update-hashes
Expand Down Expand Up @@ -542,7 +542,7 @@ jobs:
uses: actions/cache@v3
with:
key: macOS11-ARM64-rustup-${{ hashFiles('rust-toolchain') }}-v2
path: '~/.rustup/toolchains/1.68.2-*
path: '~/.rustup/toolchains/1.69.0-*
~/.rustup/update-hashes
Expand Down
2 changes: 1 addition & 1 deletion rust-toolchain
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[toolchain]
channel = "1.68.2"
channel = "1.69.0"
components = [
"cargo",
"clippy",
Expand Down
8 changes: 4 additions & 4 deletions src/rust/engine/graph/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -348,11 +348,11 @@ impl<N: Node> InnerGraph<N> {
Ok(())
}

fn live_reachable<'g>(
&'g self,
fn live_reachable(
&self,
roots: &[N],
context: &N::Context,
) -> impl Iterator<Item = (&N, N::Item)> + 'g {
) -> impl Iterator<Item = (&N, N::Item)> {
// TODO: This is a surprisingly expensive method, because it will clone all reachable values by
// calling `peek` on them.
let root_ids = roots
Expand All @@ -368,7 +368,7 @@ impl<N: Node> InnerGraph<N> {
)
}

fn live<'g>(&'g self, context: &N::Context) -> impl Iterator<Item = (&N, N::Item)> + 'g {
fn live(&self, context: &N::Context) -> impl Iterator<Item = (&N, N::Item)> {
self.live_internal(self.pg.node_indices().collect(), context.clone())
}

Expand Down

0 comments on commit cf806e7

Please sign in to comment.