alloy-rs / alloy-rs/ruint

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

Abierto
#630 0 comentarios 0 reacciones 1 asignado Reclamado por @decofe Ver en GitHub
feature tracker
Lenguaje dominante
Rust
Estrellas
225
Forks
70
Merge medio
16 h 54 min
PR fusionados (30 d)
8

Descripción

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

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
rust
Área
backend
Tipo de issue
Nueva funcionalidad
Dificultad
5/5
Tiempo estimado
Más de una semana
Estado de actividad
Activo
Claridad
Bien especificado
Aptitud para principiantes
25/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.