about summary refs log tree commit diff
path: root/src/test/incremental/thinlto
diff options
context:
space:
mode:
authorSimon Sapin <simon.sapin@exyr.org>2019-07-05 11:38:40 +0200
committerSimon Sapin <simon.sapin@exyr.org>2019-07-05 11:49:30 +0200
commite808d921ddc0ad81a200934fc4caabc34094afe5 (patch)
tree865fc5b7072b659e512e13e616dcd2b5f193f9a9 /src/test/incremental/thinlto
parentbaab1914ec9a9742776a8147780947b48fddf54d (diff)
downloadrust-e808d921ddc0ad81a200934fc4caabc34094afe5.tar.gz
rust-e808d921ddc0ad81a200934fc4caabc34094afe5.zip
Replace SliceConcatExt trait with inherent methods and SliceConcat helper trait
Before this change `SliceConcatExt` was an unstable extension trait
with stable methods. It was in the libstd prelude, so that its methods
could be used on the stable channel.

This replaces it with inherent methods,
which can be used without any addition to the prelude.
Since the methods are stable and very generic
(with for example a return type that depends on the types of parameters),
an helper trait is still needed.
But now that trait does not need to be in scope for the methods to be used.

Removing this depedency on the libstd prelude allows the methods to be used
in `#![no_std]` crate that use liballoc, which does not have its own
implicitly-imported prelude.
Diffstat (limited to 'src/test/incremental/thinlto')
0 files changed, 0 insertions, 0 deletions