Skip to content

Commit 2431967

Browse files
authored
Updated nightly version. (#7954)
1 parent 4f4bfb7 commit 2431967

File tree

9 files changed

+14
-14
lines changed

9 files changed

+14
-14
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
- uses: actions/checkout@v4
1515
- uses: dtolnay/rust-toolchain@master
1616
with:
17-
toolchain: nightly-2025-07-08
17+
toolchain: nightly-2025-07-12
1818
targets: wasm32-unknown-unknown
1919
- uses: Swatinem/rust-cache@v2
2020
- run: |
@@ -67,7 +67,7 @@ jobs:
6767
- uses: dtolnay/rust-toolchain@master
6868
with:
6969
components: rustfmt
70-
toolchain: nightly-2025-07-08
70+
toolchain: nightly-2025-07-12
7171
- uses: dtolnay/rust-toolchain@stable
7272
- uses: Swatinem/rust-cache@v2
7373
- name: Install nextest
@@ -101,7 +101,7 @@ jobs:
101101
- uses: dtolnay/rust-toolchain@master
102102
with:
103103
components: rustfmt
104-
toolchain: nightly-2025-07-08
104+
toolchain: nightly-2025-07-12
105105
- uses: Swatinem/rust-cache@v2
106106
- run: scripts/rust_fmt.sh --check
107107

@@ -140,7 +140,7 @@ jobs:
140140
- uses: dtolnay/rust-toolchain@master
141141
with:
142142
components: clippy
143-
toolchain: nightly-2025-07-08
143+
toolchain: nightly-2025-07-12
144144
- uses: Swatinem/rust-cache@v2
145145
- run: >
146146
scripts/clippy.sh
@@ -157,7 +157,7 @@ jobs:
157157
- uses: actions/checkout@v4
158158
- uses: dtolnay/rust-toolchain@master
159159
with:
160-
toolchain: nightly-2025-07-08
160+
toolchain: nightly-2025-07-12
161161
- uses: Swatinem/rust-cache@v2
162162
- run: >
163163
scripts/docs.sh

crates/cairo-lang-lowering/src/lower/block_builder.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ impl BlockBuilder {
275275
inputs
276276
.iter()
277277
.skip(members.len())
278-
.map(|var_usage| (ctx.variables.variables[var_usage.var_id].ty)),
278+
.map(|var_usage| ctx.variables.variables[var_usage.var_id].ty),
279279
)
280280
.collect();
281281

crates/cairo-lang-runner/src/profiling.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ impl<'a> ProfilingInfoProcessor<'a> {
453453

454454
Some(
455455
sierra_statement_weights_iter
456-
.filter(|&(_, weight)| (*weight >= params.min_weight))
456+
.filter(|&(_, weight)| *weight >= params.min_weight)
457457
.map(|(statement_idx, weight)| {
458458
(*statement_idx, (*weight, self.statement_idx_to_gen_statement(statement_idx)))
459459
})

crates/cairo-lang-syntax-codegen/src/generator.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ pub fn reformat_rust_code(text: String) -> String {
4949
}
5050
pub fn reformat_rust_code_inner(text: String) -> String {
5151
let sh = Shell::new().unwrap();
52-
let cmd = sh.cmd("rustfmt").env("RUSTUP_TOOLCHAIN", "nightly-2025-07-08");
52+
let cmd = sh.cmd("rustfmt").env("RUSTUP_TOOLCHAIN", "nightly-2025-07-12");
5353
let cmd_with_args = cmd.arg("--config-path").arg(project_root().join("rustfmt.toml"));
5454
let mut stdout = cmd_with_args.stdin(text).read().unwrap();
5555
if !stdout.ends_with('\n') {

docs/CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ The `rustfmt` configuration used by cairo requires a nightly version of Rust.
2424
You can install the nightly version by running.
2525

2626
```sh
27-
rustup install nightly-2025-07-08
27+
rustup install nightly-2025-07-12
2828
```
2929

3030
## Running Tests

rustfmt.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ wrap_comments = true
2323
# "rust-analyzer.rustfmt.overrideCommand": [
2424
# "rustup",
2525
# "run",
26-
# "nightly-2025-07-08",
26+
# "nightly-2025-07-12",
2727
# "--",
2828
# "rustfmt",
2929
# "--edition",
3030
# "2021",
3131
# "--"
3232
# ]
33-
# and run "rustup toolchain install nightly-2025-07-08".
33+
# and run "rustup toolchain install nightly-2025-07-12".

scripts/clippy.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22

3-
export RUSTUP_TOOLCHAIN="${RUSTUP_TOOLCHAIN:-nightly-2025-07-08}"
3+
export RUSTUP_TOOLCHAIN="${RUSTUP_TOOLCHAIN:-nightly-2025-07-12}"
44

55
cargo clippy "$@" --all-targets --all-features -- -D warnings -D future-incompatible \
66
-D nonstandard-style -D rust-2018-idioms -D unused

scripts/docs.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
22

3-
export RUSTUP_TOOLCHAIN="${RUSTUP_TOOLCHAIN:-nightly-2025-07-08}"
3+
export RUSTUP_TOOLCHAIN="${RUSTUP_TOOLCHAIN:-nightly-2025-07-12}"
44

55
RUSTDOCFLAGS="-Dwarnings" cargo doc --document-private-items --no-deps --all-features

scripts/rust_fmt.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
22

3-
export RUSTUP_TOOLCHAIN="${RUSTUP_TOOLCHAIN:-nightly-2025-07-08}"
3+
export RUSTUP_TOOLCHAIN="${RUSTUP_TOOLCHAIN:-nightly-2025-07-12}"
44

55
cargo fmt --all -- "$@"

0 commit comments

Comments
 (0)