alloy-rs / alloy-rs/ruint

`lib`: BLOCKED) Add `<{BITS}>` to the type when Display works

オープン
#630 コメント 0 件 リアクション 0 件 担当者 1 名 @decofe が担当を希望しています GitHub で見る
feature tracker
主要言語
Rust
スター
225
フォーク
70
平均マージ
16時間 54分
マージ済み PR(30日)
8

説明

*On 2026-08-31 @decofe wrote in [`a9450b4`](https://github.com/alloy-rs/ruint/commit/a9450b499c03f259238c2955b9512de873a77e12) “chore: apply latest nightly rustfmt (#627)”:*

BLOCKED) Add `<{BITS}>` to the type when Display works
in const fn.

```rust
#[inline(always)]
#[must_use]
#[track_caller]
pub const fn from_limbs(limbs: [u64; LIMBS]) -> Self {
if Self::SHOULD_MASK {
// FEATURE: (BLOCKED) Add `<{BITS}>` to the type when Display works
// in const fn.
assert!(
limbs[LIMBS - 1] <= Self::MASK,
"Value too large for this Uint"
);
}

```
*From [`src/lib.rs:245`](https://github.com/alloy-rs/ruint/blob/a9450b499c03f259238c2955b9512de873a77e12/src/lib.rs#L245)*

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

Start at src/lib.rs:245 and inspect the from_limbs const fn assertion. Research the Rust limitation around using Display in const fn, then determine whether the blocked constraint has changed. Done means the error text includes the Uint bit width without breaking const evaluation.

索引モデルが issue の本文から書いたものです。

評価

技術スタック
rust
領域
backend
issue の種類
機能追加
難易度
5/5
見積もり時間
1週間以上
活発さ
活発
明瞭さ
明確に書かれている
初心者へのやさしさ
25/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。