rust/library/alloc/src
Yuki Okushi fbb3650c89
Rollup merge of #99578 - steffahn:remove_redundant_bound, r=thomcc
Remove redundant lifetime bound from `impl Borrow for Cow`

The lifetime bound `B::Owned: 'a` is redundant and doesn't make a difference,
because `Cow<'a, B>` comes with an implicit `B: 'a`, and associated types
will outlive lifetimes outlived by the `Self` type (and all the trait's
generic parameters, of which there are none in this case), so the implicit `B: 'a`
implies `B::Owned: 'a` anyway.

The explicit lifetime bound here does however [end up in documentation](https://doc.rust-lang.org/std/borrow/enum.Cow.html#impl-Borrow%3CB%3E),
and that's confusing in my opinion, so let's remove it ^^

_(Documentation right now, compare to `AsRef`, too:)_
![Screenshot_20220722_014055](https://user-images.githubusercontent.com/3986214/180332665-424d0c05-afb3-40d8-a330-a57a2c9a494b.png)
2022-10-24 19:32:24 +09:00
..
alloc Replace most uses of pointer::offset with add and sub 2022-08-21 02:21:41 +04:00
boxed remove cfg(bootstrap) 2022-09-26 10:14:45 +02:00
collections Documentation BTreeMap::append's behavior for already existing keys 2022-10-15 17:47:07 +02:00
ffi remove cfg(bootstrap) 2022-09-26 10:14:45 +02:00
raw_vec Add a unit test for zero-sized types in RawVec. 2021-11-26 19:30:45 +11:00
rc Use Box::new() instead of box syntax in alloc tests 2022-05-29 00:41:14 +02:00
sync add some Miri-only tests 2022-08-18 18:07:39 -04:00
vec Rollup merge of #103359 - WaffleLapkin:drain_no_mut_qqq, r=scottmcm 2022-10-22 00:14:03 +02:00
alloc.rs rename rustc_allocator_nounwind to rustc_nounwind 2022-10-11 22:47:31 +02:00
borrow.rs Remove redundant lifetime bound from impl Borrow for Cow 2022-07-22 01:35:39 +02:00
boxed.rs Auto merge of #101837 - scottmcm:box-array-from-vec, r=m-ou-se 2022-10-17 19:46:04 +00:00
fmt.rs Detect and reject out-of-range integers in format string literals 2022-10-01 01:05:01 +02:00
lib.rs Remove all uses of array_assume_init 2022-10-17 13:03:54 -07:00
macros.rs Extra documentation for new formatting feature 2022-08-21 15:28:27 -04:00
raw_vec.rs Make ZST checks in core/alloc more readable 2022-09-22 23:12:29 -07:00
rc.rs Reduce mutability in std-use of with_metadata_of 2022-10-21 14:49:29 +02:00
slice.rs Auto merge of #102169 - scottmcm:constify-some-conditions, r=thomcc 2022-09-25 01:20:11 +00:00
str.rs Rollup merge of #93162 - camsteffen:std-prim-docs, r=Mark-Simulacrum 2022-08-22 11:45:40 +05:30
string.rs Fix typo in docs of String::leak. 2022-10-22 12:26:47 -07:00
sync.rs Reduce mutability in std-use of with_metadata_of 2022-10-21 14:49:29 +02:00
task.rs Document the conditional existence of alloc::sync and alloc::task. 2022-06-17 20:03:23 -07:00
tests.rs Use implicit capture syntax in format_args 2022-03-10 10:23:40 -05:00