Skip to content

Use derive_const in nightly feature#77

Merged
Noratrieb merged 1 commit into
rust-lang:masterfrom
DaniPopes:const-update
Jul 2, 2026
Merged

Use derive_const in nightly feature#77
Noratrieb merged 1 commit into
rust-lang:masterfrom
DaniPopes:const-update

Conversation

@DaniPopes

Copy link
Copy Markdown
Contributor

Feature nightly is currently broken:

error: expected a trait, found type
   --> /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc-hash-2.1.2/src/lib.rs:110:14
    |
110 |         impl const Default for FxHasher {
    |              ^^^^^^^^^^^^^
...
119 | default_impl!();
    | --------------- in this macro invocation
    |
    = note: this error originates in the macro `default_impl` (in Nightly builds, run with -Z macro-backtrace for more info)

Fix this by using derive_const, and also a drive-by clippy fix.

@Noratrieb
Noratrieb merged commit 07c3f48 into rust-lang:master Jul 2, 2026
10 checks passed
@DaniPopes
DaniPopes deleted the const-update branch July 2, 2026 18:34
@Noratrieb

Copy link
Copy Markdown
Member

v2.1.3

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.

2 participants