alloy-rs / alloy-rs/ruint

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

Ouverte
#630 0 commentaires 0 réactions 1 personne assignée Réclamée par @decofe Voir sur GitHub
feature tracker
Langage dominant
Rust
Étoiles
225
Forks
70
Merge moyen
16 h 54 min
PR mergées (30 j)
8

Description

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

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
rust
Domaine
backend
Type d'issue
Fonctionnalité
Difficulté
5/5
Temps estimé
Plus d'une semaine
Activité
Active
Clarté
Clairement spécifiée
Accessibilité débutants
25/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.