alloy-rs / alloy-rs/ruint

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

Đang mở
#630 0 bình luận 0 reaction 1 người được giao Được @decofe nhận Xem trên GitHub
feature tracker
Ngôn ngữ chính
Rust
Star
225
Fork
70
Merge trung bình
16 giờ 54 phút
Pull request đã merge (30 ngày)
8

Mô tả

*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)*

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
rust
Lĩnh vực
backend
Loại issue
Tính năng
Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức độ hoạt động
Sôi nổi
Độ rõ ràng
Đặc tả rõ ràng
Mức phù hợp với người mới
25/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.