diff options
| author | Deadbeef <ent3rm4n@gmail.com> | 2021-08-14 16:35:12 +0000 |
|---|---|---|
| committer | Deadbeef <ent3rm4n@gmail.com> | 2021-08-17 07:15:54 +0000 |
| commit | b5afa6807b868bc8bb2e6f972629769b150ffd41 (patch) | |
| tree | 4abfdf049ab0964aa14b4137fe4446d019169939 /library/std/src/lib.rs | |
| parent | 3b5df014390dcef66cc35f968fe51e9558e6ca13 (diff) | |
| download | rust-b5afa6807b868bc8bb2e6f972629769b150ffd41.tar.gz rust-b5afa6807b868bc8bb2e6f972629769b150ffd41.zip | |
Constified `Default` implementations
The libs-api team agrees to allow const_trait_impl to appear in the standard library as long as stable code cannot be broken (they are properly gated) this means if the compiler teams thinks it's okay, then it's okay. My priority on constifying would be: 1. Non-generic impls (e.g. Default) or generic impls with no bounds 2. Generic functions with bounds (that use const impls) 3. Generic impls with bounds 4. Impls for traits with associated types For people opening constification PRs: please cc me and/or oli-obk.
Diffstat (limited to 'library/std/src/lib.rs')
| -rw-r--r-- | library/std/src/lib.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/library/std/src/lib.rs b/library/std/src/lib.rs index 43db3f91022..5e91a0cdbd6 100644 --- a/library/std/src/lib.rs +++ b/library/std/src/lib.rs @@ -255,6 +255,7 @@ #![feature(const_ipv6)] #![feature(const_raw_ptr_deref)] #![feature(const_socketaddr)] +#![feature(const_trait_impl)] #![feature(container_error_extra)] #![feature(core_intrinsics)] #![feature(custom_test_frameworks)] |
