Skip to content

Commit ca447cd

Browse files
authored
upgrade to Rust v1.76.0 (#20567)
Upgrade to Rust v1.76.0. [Blog post](https://blog.rust-lang.org/2024/02/08/Rust-1.76.0.html)
1 parent 3c940a9 commit ca447cd

File tree

6 files changed

+13
-13
lines changed

6 files changed

+13
-13
lines changed

.github/workflows/release.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ jobs:
192192
with:
193193
key: macOS10-15-x86_64-rustup-${{ hashFiles('src/rust/engine/rust-toolchain')
194194
}}-v2
195-
path: '~/.rustup/toolchains/1.75.0-*
195+
path: '~/.rustup/toolchains/1.76.0-*
196196
197197
~/.rustup/update-hashes
198198
@@ -276,7 +276,7 @@ jobs:
276276
with:
277277
key: macOS11-ARM64-rustup-${{ hashFiles('src/rust/engine/rust-toolchain')
278278
}}-v2
279-
path: '~/.rustup/toolchains/1.75.0-*
279+
path: '~/.rustup/toolchains/1.76.0-*
280280
281281
~/.rustup/update-hashes
282282
@@ -367,7 +367,7 @@ jobs:
367367
uses: actions/cache@v3
368368
with:
369369
key: Linux-x86_64-rustup-${{ hashFiles('src/rust/engine/rust-toolchain') }}-v2
370-
path: '~/.rustup/toolchains/1.75.0-*
370+
path: '~/.rustup/toolchains/1.76.0-*
371371
372372
~/.rustup/update-hashes
373373

.github/workflows/test.yaml

+5-5
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
uses: actions/cache@v3
3939
with:
4040
key: Linux-ARM64-rustup-${{ hashFiles('src/rust/engine/rust-toolchain') }}-v2
41-
path: '~/.rustup/toolchains/1.75.0-*
41+
path: '~/.rustup/toolchains/1.76.0-*
4242
4343
~/.rustup/update-hashes
4444
@@ -130,7 +130,7 @@ jobs:
130130
uses: actions/cache@v3
131131
with:
132132
key: Linux-x86_64-rustup-${{ hashFiles('src/rust/engine/rust-toolchain') }}-v2
133-
path: '~/.rustup/toolchains/1.75.0-*
133+
path: '~/.rustup/toolchains/1.76.0-*
134134
135135
~/.rustup/update-hashes
136136
@@ -232,7 +232,7 @@ jobs:
232232
uses: actions/cache@v3
233233
with:
234234
key: macOS11-x86_64-rustup-${{ hashFiles('src/rust/engine/rust-toolchain') }}-v2
235-
path: '~/.rustup/toolchains/1.75.0-*
235+
path: '~/.rustup/toolchains/1.76.0-*
236236
237237
~/.rustup/update-hashes
238238
@@ -441,7 +441,7 @@ jobs:
441441
uses: actions/cache@v3
442442
with:
443443
key: macOS10-15-x86_64-rustup-${{ hashFiles('src/rust/engine/rust-toolchain') }}-v2
444-
path: '~/.rustup/toolchains/1.75.0-*
444+
path: '~/.rustup/toolchains/1.76.0-*
445445
446446
~/.rustup/update-hashes
447447
@@ -508,7 +508,7 @@ jobs:
508508
uses: actions/cache@v3
509509
with:
510510
key: macOS11-ARM64-rustup-${{ hashFiles('src/rust/engine/rust-toolchain') }}-v2
511-
path: '~/.rustup/toolchains/1.75.0-*
511+
path: '~/.rustup/toolchains/1.76.0-*
512512
513513
~/.rustup/update-hashes
514514

src/rust/engine/options/src/args_tests.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ fn test_float() {
9595

9696
assert_eq!(
9797
"Problem parsing --bad float value:\n1:swallow\n ^\n\
98-
Expected \"+\", \"-\" or ['0' ..= '9'] at line 1 column 1"
98+
Expected \"+\", \"-\" or ['0'..='9'] at line 1 column 1"
9999
.to_owned(),
100100
args.get_float(&option_id!("bad")).unwrap_err()
101101
);

src/rust/engine/options/src/env_tests.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ fn test_float() {
138138

139139
assert_eq!(
140140
"Problem parsing PANTS_BAD float value:\n1:swallow\n ^\n\
141-
Expected \"+\", \"-\" or ['0' ..= '9'] at line 1 column 1"
141+
Expected \"+\", \"-\" or ['0'..='9'] at line 1 column 1"
142142
.to_owned(),
143143
env.get_float(&option_id!("pants", "bad")).unwrap_err()
144144
);

src/rust/engine/options/src/parse_tests.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -89,13 +89,13 @@ fn test_parse_int() {
8989
check_int(9223372036854775807, "9223372036854775807");
9090
check_int(-9223372036854775808, "-9223372036854775808");
9191
assert_eq!(
92-
"Problem parsing foo int value:\n1:badint\n ^\nExpected \"+\", \"-\" or ['0' ..= '9'] \
92+
"Problem parsing foo int value:\n1:badint\n ^\nExpected \"+\", \"-\" or ['0'..='9'] \
9393
at line 1 column 1"
9494
.to_owned(),
9595
parse_int("badint").unwrap_err().render("foo")
9696
);
9797
assert_eq!(
98-
"Problem parsing foo int value:\n1:12badint\n --^\nExpected \"_\", EOF or ['0' ..= '9'] \
98+
"Problem parsing foo int value:\n1:12badint\n --^\nExpected \"_\", EOF or ['0'..='9'] \
9999
at line 1 column 3"
100100
.to_owned(),
101101
parse_int("12badint").unwrap_err().render("foo")

src/rust/engine/rust-toolchain

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[toolchain]
2-
channel = "1.75.0"
2+
channel = "1.76.0"
33
# NB: We don't list the components (namely `clippy` and `rustfmt`) and instead rely on either the
44
# the profile being "default" (by-and-large the default profile) or the nice error message from
55
# `cargo fmt` and `cargo clippy` if the required component isn't installed

0 commit comments

Comments
 (0)