I recently made a change in STD and noticed that functions I added not inlined (e.g. <&[u8]>::spec_new_impl
not inlined into <&str>::spec_new_impl
) as I expected.
Also, CString::from_vec_unchecked
not inlined into <&[u8]>::spec_new_impl
.
However, those inlining happens when I enable LTO so I think they would be inlined if std
would be built with -Ccodegen-units=1
.
Are distribution builds (e.g. stable releases and nightlies) built with codegen-units=1
or not?