diff options
| author | bors[bot] <bors[bot]@users.noreply.github.com> | 2019-02-23 19:37:29 +0000 |
|---|---|---|
| committer | bors[bot] <bors[bot]@users.noreply.github.com> | 2019-02-23 19:37:29 +0000 |
| commit | 6b61cd2e3ff26d96615a7bfc386077ccf6505c28 (patch) | |
| tree | 2a8b089d42aad24286cba11c4561e714fc84b85d /src/lib.rs | |
| parent | 43c2ffbdcfcf96382dbe5e5a64b2af90a447636d (diff) | |
| parent | c6f9b2c0aa62fa3ceed6ac58928af15d9e3a58a2 (diff) | |
Merge #153
153: add "nightly" feature; replace hint::unreachable_unchecked with a panic r=korken89 a=japaric
this implements the action plan described in #149
to give you a sense of the overhead of this change: it has increased the binary
size of some of our examples by up to 10% but this is mainly from pulling in a
panic handler that does formatting
r? @korken89
Co-authored-by: Jorge Aparicio <jorge@japaric.io>
Diffstat (limited to 'src/lib.rs')
| -rw-r--r-- | src/lib.rs | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -35,7 +35,13 @@ //! //! [`Instant`]: struct.Instant.html //! [`Duration`]: struct.Duration.html +//! +//! - `nightly`. Enabling this opt-in feature makes RTFM internally use the unstable +//! `core::mem::MaybeUninit` API and unstable `const_fn` language feature to reduce static memory +//! usage, runtime overhead and initialization overhead. This feature requires a nightly compiler +//! and may stop working at any time! +#![cfg_attr(feature = "nightly", feature(maybe_uninit))] #![deny(missing_docs)] #![deny(warnings)] #![no_std] |
