• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

facet-rs / facet / 19884224451
58%

Build:
DEFAULT BRANCH: main
Ran 03 Dec 2025 06:10AM UTC
Jobs 1
Files 171
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

03 Dec 2025 06:08AM UTC coverage: 58.824% (+0.001%) from 58.823%
19884224451

push

github

fasterthanlime
Fix UB in PeekEnum::discriminant() for RustNPO ZSTs

PeekEnum::discriminant() previously fell through to a default case
that read a u32 from memory for EnumRepr::RustNPO types. For zero-sized
types like Option<Opaque<Infallible>>, this caused undefined behavior
by reading from a 0-byte allocation.

This fix explicitly handles RustNPO in the match, returning 0 (the
declared discriminant for NPO variants) instead of reading memory.

Fixes: https://github.com/facet-rs/facet/issues/998#issuecomment-3605191431

4 of 12 new or added lines in 1 file covered. (33.33%)

20515 of 34875 relevant lines covered (58.82%)

538.83 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
8
45.75
0.3% facet-reflect/src/peek/enum_.rs
Jobs
ID Job ID Ran Files Coverage
1 19884224451.1 03 Dec 2025 06:10AM UTC 171
58.82
GitHub Action Run
Source Files on build 19884224451
  • Tree
  • List 171
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • d57fc020 on github
  • Prev Build on main (#19883129620)
  • Next Build on main (#19892705258)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc