diff options
| author | bors <bors@rust-lang.org> | 2025-09-29 05:37:18 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2025-09-29 05:37:18 +0000 |
| commit | 7af913fc90968844286e5ff6675ab66afa98cdc6 (patch) | |
| tree | 94e7bceaaf97ac57672504127053842700ed985d /library | |
| parent | 772f380092b30680313b70a622cafc17f03e6bff (diff) | |
| parent | af8af6cc6a40fe32e791a94196329db25b597ee6 (diff) | |
| download | rust-7af913fc90968844286e5ff6675ab66afa98cdc6.tar.gz rust-7af913fc90968844286e5ff6675ab66afa98cdc6.zip | |
Auto merge of #147140 - Zalathar:rollup-rtnqek7, r=Zalathar
Rollup of 7 pull requests Successful merges: - rust-lang/rust#133477 (Detect tuple structs that are unconstructable due to re-export) - rust-lang/rust#146929 (compiletest: Remove old-output-capture and become a stage0 bootstrap tool) - rust-lang/rust#146979 (constify Default on Nanoseconds) - rust-lang/rust#147092 (Do not compute optimized MIR if code does not type-check.) - rust-lang/rust#147112 (all 48 keywords in just 300 characters) - rust-lang/rust#147122 (Fix some crash-test directives) - rust-lang/rust#147127 (Add a leading dash to linker plugin arguments in the gcc codegen) r? `@ghost` `@rustbot` modify labels: rollup
Diffstat (limited to 'library')
| -rw-r--r-- | library/core/src/num/niche_types.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/library/core/src/num/niche_types.rs b/library/core/src/num/niche_types.rs index 610d9d8cf92..9ac0eb72bdc 100644 --- a/library/core/src/num/niche_types.rs +++ b/library/core/src/num/niche_types.rs @@ -112,7 +112,8 @@ impl Nanoseconds { pub const ZERO: Self = unsafe { Nanoseconds::new_unchecked(0) }; } -impl Default for Nanoseconds { +#[rustc_const_unstable(feature = "const_default", issue = "143894")] +impl const Default for Nanoseconds { #[inline] fn default() -> Self { Self::ZERO |
