Skip to content

Commit

Permalink
Update to Rust 1.78 (#1570)
Browse files Browse the repository at this point in the history
This updates the versions in our build and release pipelines to use Rust
1.78 and fixes a new clippy warning generated by the new rust version

---------

Co-authored-by: Stefan J. Wernli <swernli@microsoft.com>
  • Loading branch information
orpuente-MS and swernli committed May 24, 2024
1 parent 9f2695b commit 6bed5a9
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .ado/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ pr:

variables:
CARGO_TERM_COLOR: always
RUST_TOOLCHAIN_VERSION: "1.77"
RUST_TOOLCHAIN_VERSION: "1.78"

schedules:
- cron: "0 9 * * Sat"
Expand Down
2 changes: 1 addition & 1 deletion .ado/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ pr: none

variables:
CARGO_TERM_COLOR: always
RUST_TOOLCHAIN_VERSION: "1.77"
RUST_TOOLCHAIN_VERSION: "1.78"

# variables set by pipeline
# - BASE_IMAGE
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ env:
CARGO_TERM_COLOR: always
NODE_VERSION: "18.17.1"
PYTHON_VERSION: "3.11"
RUST_TOOLCHAIN_VERSION: "1.77"
RUST_TOOLCHAIN_VERSION: "1.78"
RUST_TOOLCHAIN_COMPONENTS: rustfmt clippy

jobs:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-playground.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:

env:
CARGO_TERM_COLOR: always
RUST_TOOLCHAIN_VERSION: "1.77"
RUST_TOOLCHAIN_VERSION: "1.78"
RUST_TOOLCHAIN_COMPONENTS: rustfmt clippy

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
Expand Down
2 changes: 1 addition & 1 deletion compiler/qsc/src/bin/qsc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ pub enum Profile {
Unrestricted,
/// This profile restricts the set of operations to those that are supported by the Base profile.
Base,
/// This profile restricts the set of operations to those that are supported by the AdaptiveRI profile.
/// This profile restricts the set of operations to those that are supported by the `AdaptiveRI` profile.
AdaptiveRI,
}

Expand Down
6 changes: 3 additions & 3 deletions prereqs.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@
import functools

python_ver = (3, 11) # Python support for Windows on ARM64 requires v3.11 or later
rust_ver = (1, 77) # Ensure Rust version 1.77 or later is installed
rust_ver = (1, 78) # Ensure Rust version 1.78 or later is installed
node_ver = (
18,
17,
)
wasmpack_ver = (0, 12, 1) # Latest tested wasm-pack version
rust_fmt_ver = (1, 7, 0) # Current version when Rust 1.77 shipped
clippy_ver = (0, 1, 76)
rust_fmt_ver = (1, 7, 0) # Current version when Rust 1.78 shipped
clippy_ver = (0, 1, 78)

# Disable buffered output so that the log statements and subprocess output get interleaved in proper order
print = functools.partial(print, flush=True)
Expand Down

0 comments on commit 6bed5a9

Please sign in to comment.