We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c9da55 commit f689237Copy full SHA for f689237
libs/extractor/src/tailwind.rs
@@ -355,9 +355,12 @@ impl TailwindClass {
355
StyleSelector::At { kind, query, .. } => {
356
has_at_rule = Some((kind, query));
357
}
358
- // Note: TailwindVariant::to_selector() never produces Global, but this arm
359
- // is required for exhaustive matching. Kept as no-op for forward compatibility.
360
- StyleSelector::Global(_, _) => {}
+ // SAFETY: TailwindVariant::to_selector() never produces Global.
+ // This arm exists only for exhaustive matching. If reached, it indicates
+ // a bug where a new TailwindVariant was added that produces Global.
361
+ StyleSelector::Global(_, _) => {
362
+ unreachable!("TailwindVariant should not produce Global selector")
363
+ }
364
365
366
0 commit comments