about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2021-01-07 15:21:30 +0000
committerbors <bors@rust-lang.org>2021-01-07 15:21:30 +0000
commit8f0b945cfcc3d084583bc27a7ed23b27b1246751 (patch)
tree8153c7ae5e6f3ea0a0a17e61dfbbe874d1bb2381 /compiler/rustc_codegen_llvm/src
parentb5c496de374407c0937cf5257d89230b5358d053 (diff)
parent8b2e79dbac324b703493113c9f823e63cf1df4e0 (diff)
downloadrust-8f0b945cfcc3d084583bc27a7ed23b27b1246751.tar.gz
rust-8f0b945cfcc3d084583bc27a7ed23b27b1246751.zip
Auto merge of #77853 - ijackson:slice-strip-stab, r=Amanieu
Stabilize slice::strip_prefix and slice::strip_suffix

These two methods are useful.  The corresponding methods on `str` are already stable.

I believe that stablising these now would not get in the way of, in the future, extending these to take a richer pattern API a la `str`'s patterns.

Tracking PR: #73413.  I also have an outstanding PR to improve the docs for these two functions and the corresponding ones on `str`: #75078

I have tried to follow the [instructions in the dev guide](https://rustc-dev-guide.rust-lang.org/stabilization_guide.html#stabilization-pr).  The part to do with `compiler/rustc_feature` did not seem applicable.  I assume that's because these are just library features, so there is no corresponding machinery in rustc.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions