sel4_never_polyfill/lib.rs
1//
2// Copyright 2026, Colias Group, LLC
3//
4// SPDX-License-Identifier: BSD-2-Clause
5//
6
7//! Polyfill for the never type, which was stabilized in Rust 1.100.
8//!
9//! Using `!` through [`Never`] does not require `#![feature(never_type)]` with older toolchains.
10
11#![no_std]
12#![cfg_attr(before_never_type, feature(never_type))]
13
14pub type Never = !;