bytecodealliance / bytecodealliance/regalloc2
Include useful diagnostic information in errors
- Vorherrschende Sprache
- Rust
- Sterne
- 265
- Forks
- 53
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
Right now, we just give error messages like `BB(Block(0))`, meaning that there is some error somewhere in block 0.
If one enables logging, then one gets messages like "block 0 does not end in a terminator" or something like that.
It would be nice if we put that information in the actual error itself, so folks didn't have to enable logging to figure out what went wrong.
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Rechercherichtung
Start by locating the error formatting that produces `BB(Block(0))` and the logging code that emits messages such as "block 0 does not end in a terminator." Trace how these diagnostics are created and check existing error tests, if any. Done means the actual error includes the useful diagnostic information without requiring logging.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- rust
- Bereich
- compilers
- Issue-Typ
- Feature
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100