Skip to content

Commit 3b0f163

Browse files
committed
fix(core,kernel): don't implement const Debug
Implementing `const Trait` requires `Trait` to be marked with `#[const_trait]` starting from [rust-lang/rust#100982][1]. [1]: rust-lang/rust#100982
1 parent bbb0f74 commit 3b0f163

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/r3_core/src/utils/freeze.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ impl<T: Copy> const Clone for Frozen<T> {
8585
}
8686
}
8787

88-
impl<T: Copy + ~const fmt::Debug> const fmt::Debug for Frozen<T> {
88+
impl<T: Copy + fmt::Debug> fmt::Debug for Frozen<T> {
8989
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
9090
self.get().fmt(f)
9191
}

0 commit comments

Comments
 (0)