News for hackers. Stuff that matters.
Re:Rust 1.47 by nwah1 on Thursday October 08, 2020 @11:21PM (#24726440)
Maybe for stuff that never can be externally accessed, const should be inferred as an optimization pass.
Re:Rust 1.47 by steveklabnik on Friday October 09, 2020 @08:38AM (#24729257)
Yes, this is already done. But that's not the more interesting part of the feature. Once you require something to be const, you can use it in contexts that require something to be const. Inferring it in non-const contexts is less powerful.