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

facet-rs / facet / 20102737478 / 1
58%
main: 58%

Build:
DEFAULT BRANCH: main
Ran 10 Dec 2025 02:53PM UTC
Files 218
Run time 21s
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

10 Dec 2025 02:51PM UTC coverage: 58.628% (+0.01%) from 58.618%
20102737478.1

push

github

fasterthanlime
fix: skip static SHAPE declaration for generic types

The `generate_static_decl` function generates a static that pre-evaluates
`<Type as Facet>::SHAPE` in release builds. However, for generic types
like `MyResult<T, E>`, this generated code like:

    static MY_RESULT_SHAPE: &'static Shape = <MyResult as Facet>::SHAPE;

which is invalid because `MyResult` requires generic arguments.

This fix skips generating the static declaration for types with type or
const generics, since we can't create a static for an unmonomorphized
generic type anyway.

Fixes #1225

27134 of 46282 relevant lines covered (58.63%)

616.07 hits per line

Source Files on job 20102737478.1
  • Tree
  • List 218
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 20102737478
  • 71a71699 on github
  • Prev Job for on main (#20100700279.1)
  • Next Job for on main (#20107317130.1)
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