1
Fork 0

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.
This commit is contained in:
Deadbeef 2021-08-14 16:35:12 +00:00
parent 3b5df01439
commit b5afa6807b
No known key found for this signature in database
GPG key ID: 027DF9338862ADDD
17 changed files with 47 additions and 28 deletions

View file

@ -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)]