Skip to content

Commit

Permalink
Update changelog and comments
Browse files Browse the repository at this point in the history
  • Loading branch information
taiki-e committed Jan 6, 2025
1 parent 2f750d3 commit f3649cd
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,18 @@ All notable changes to this project will be documented in this file.

This project adheres to [Semantic Versioning](https://semver.org).

Releases may yanked if there is a security bug, a soundness bug, or a regression.

<!--
Note: In this file, do not use the hard wrap in the middle of a sentence for compatibility with GitHub comment style markdown rendering.
-->

## [Unreleased]

- Improve Windows host support by workaround [rustc bug fixed in Rust 1.84](https://github.com/rust-lang/rust/pull/125205).

- Respect [`RUSTC_BOOTSTRAP=-1` recently added in nightly](https://github.com/rust-lang/rust/pull/132993) in rustc version detection.

## [0.4.10] - 2024-04-21

- Respect `RUSTC_WRAPPER` in rustc version detection.
Expand Down
2 changes: 1 addition & 1 deletion build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ impl Version {
// https://github.com/taiki-e/const_fn/issues/27
// https://github.com/rust-lang/rust/pull/81468
fn assume_incomplete_release() -> bool {
// Recognized formats: -Z( )?assume-incomplete-release
// Recognized formats: -Z *assume-incomplete-release

// https://github.com/rust-lang/cargo/issues/10111
if let Some(rustflags) = env::var_os("CARGO_ENCODED_RUSTFLAGS") {
Expand Down
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,7 @@ struct Version {
}

// Use \ on Windows host to work around https://github.com/rust-lang/rust/issues/75075 / https://github.com/rust-lang/cargo/issues/13919.
// (Fixed in Rust 1.84: https://github.com/rust-lang/rust/pull/125205)
#[cfg(const_fn_has_build_script)]
#[cfg(not(host_os = "windows"))]
const VERSION: Version = include!(concat!(env!("OUT_DIR"), "/version"));
Expand Down

0 comments on commit f3649cd

Please sign in to comment.