Remove the uncommon_codepoints allow in udp-protocol once zerocopy is fixed

Aperta
#2,941 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
38/100
Tipo di issue
Refactoring
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
rust

Direzione di ricerca

Start by checking whether zerocopy has released a fix for upstream issue #3929, then inspect the workspace dependency versions and Cargo.lock. If the fix is released, update zerocopy and zerocopy-derive, remove the allow block and comment from packages/udp-protocol/src/lib.rs, and run the nightly, stable, and MSRV workspace checks listed in the issue. Done when all three builds pass without the allow.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Goal

Remove the crate-level #![allow(uncommon_codepoints)] from packages/udp-protocol/src/lib.rs once zerocopy no longer generates identifiers that nightly Rust flags.

Background

#2931 (fixed by #2932) made torrust-tracker-udp-protocol build again on nightly Rust. zerocopy-derive generates identifiers with a ẕ prefix, and since rustc 1.102.0-nightly (59cbdee2e 2026-11-17, rust-lang/rust#165289, Unicode 18) the uncommon_codepoints lint flags them, which the repository's -D warnings turns into errors. The fix is a crate-level allow, because rustc only honours this lint's level at crate level (rust-lang/rust#86824). The comment above the allow says to remove it when zerocopy stops generating non-ASCII identifiers.

The upstream report is https://github.com/google/zerocopy/issues/3929 (open at the time of writing, no fix yet). This issue tracks the removal of our workaround, so the allow does not stay in the crate after the cause is gone.

What to do when upstream is fixed

  1. Wait for a zerocopy release that fixes the upstream issue, and bump zerocopy (and zerocopy-derive) in the workspace.
  2. Remove the #![allow(uncommon_codepoints)] block and its comment from packages/udp-protocol/src/lib.rs.
  3. Verify with cargo +nightly check --workspace --all-targets on a nightly that includes rust-lang/rust#165289, and on stable and the MSRV.

Acceptance criteria

  • A zerocopy release that does not trigger uncommon_codepoints on nightly is in Cargo.lock.
  • The allow and its comment are gone from packages/udp-protocol/src/lib.rs.
  • The nightly, stable and MSRV builds pass without the allow.

Notes

  • Do not remove the allow before the upstream fix is released: the nightly jobs would fail again.
  • The specification for this issue is written with the implementation pull request, as for #2931.
Lingua principale
Rust
Stelle
532
Fork
56
Merge medio
11h 20m
PR unite (30g)
282

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di torrust/torrust-tracker

Tutte le issue di torrust/torrust-tracker

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.