Files
rust/library/core
Stuart Cook 50fe743b9b Rollup merge of #154196 - Jules-Bertholet:ipv6-multicast-discriminant, r=Mark-Simulacrum
Make `Ipv6Addr::multicast_scope()` exhaustive

And make `Ipv6MulticastScope` exhaustive, with `repr(u8)` and the proper discriminant values. The variants for the two reserved scopes are gated behind a perma-unstable feature, in order to avoid committing to names for them.

[IETF RFC 4291](https://datatracker.ietf.org/doc/html/rfc4291#section-2.7) and [IETF RFC 7346](https://datatracker.ietf.org/doc/html/rfc7346#section-2) define the list of multicast scopes. The former document says:

> scopes labeled "(unassigned)" are available for administrators to define additional multicast regions.

Tracking issue: https://github.com/rust-lang/rust/issues/27709
@rustbot label A-io
2026-03-28 15:01:38 +11:00
..