Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to the stable channel 🎉 #688

Merged

Conversation

nicholasbishop
Copy link
Member

@nicholasbishop nicholasbishop commented Mar 9, 2023

Rust 1.68 is out, so we can use the stable channel now. This PR includes #617 and #636, removes nightly from the rust-toolchain files, updates the CI, and updates various docs.

Closes #452
Closes #638

Checklist

  • Sensible git history (for example, squash "typo" or "fix" commits). See the Rewriting History guide for help.
  • Update the changelog (if necessary)

@phip1611
Copy link
Contributor

phip1611 commented Mar 9, 2023

Awesome! This will make a lot of people (I know) happy 😁

@nicholasbishop nicholasbishop force-pushed the bishop-switch-to-stable-2 branch 3 times, most recently from 5df873f to 4b5f143 Compare March 13, 2023 15:42
@nicholasbishop
Copy link
Member Author

@phip1611 ping on review for this :)

@phip1611
Copy link
Contributor

Sorry! Somehow, I often miss if someone sets me as a reviewer. GitHub doesn't send notifications in that case, does it?

PS: Just learned about https://github.com/pulls/review-requested

Copy link
Contributor

@phip1611 phip1611 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🥳

As of 2022-12-18, we can rely on the `default_alloc_error_handler` feature which
was stabilized in rust-lang/rust#102318. The behavior of
the default handler is to panic, essentially the same as our current custom one.
The feature has been stabilized so we don't need to enable it anymore.
As of Rust 1.68, the uefi crates work on stable. Remove the
`channel = "nightly"` setting from `rust-toolchain.toml` and
`template/rust-toolchain.toml`.

Related changes:
* The CI job to compile with the MSRV has been changed from `nightly-2022-11-22`
  to `1.68`. So for now the MSRV job isn't checking anything that isn't already
  checked by other jobs, but once 1.69 comes out it will.
* The CI job to test the latest crates.io release still needs the nightly
  toolchain until we do a new release.
* Some of the uefi-macros compiler ui tests have been modified so that the error
  output matches the errors produced by stable compiler, which are currently
  slightly different in a few cases from the nightly compiler. In particular,
  the precise spans we output for errors in the guid macros don't work on
  stable, because proc-macro's Literal::subspan method is currently unstable.
@nicholasbishop nicholasbishop merged commit 2e1c75a into rust-osdev:main Mar 19, 2023
@nicholasbishop nicholasbishop deleted the bishop-switch-to-stable-2 branch March 19, 2023 22:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Stable MSRV policy Tracking issue for use of unstable features
2 participants