about summary refs log tree commit diff
path: root/library/alloc/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-10-19 11:12:10 +0000
committerbors <bors@rust-lang.org>2022-10-19 11:12:10 +0000
commitd7dd01fe8b071602510eaac9f676acc0e3cf8e4a (patch)
tree85d7503010195d972b60fdbae9277584b67983a1 /library/alloc/src
parent5605ed85363345f3def5da6b1ead2ac0b803bfe7 (diff)
parent32159e3fa4bc9940f96bfb5fb30120c509ab259a (diff)
downloadrust-d7dd01fe8b071602510eaac9f676acc0e3cf8e4a.tar.gz
rust-d7dd01fe8b071602510eaac9f676acc0e3cf8e4a.zip
Auto merge of #103228 - Dylan-DPC:rollup-31yiauw, r=Dylan-DPC
Rollup of 6 pull requests

Successful merges:

 - #102863 (Standardize "use parentheses to call" suggestions between typeck and trait selection)
 - #103034 (Let expressions on RHS shouldn't be terminating scopes)
 - #103127 (Make transpose const and inline)
 - #103153 (Allow `Vec::leak` when using `no_global_oom_handling`)
 - #103182 (Clean up query descriptions)
 - #103216 (Consider patterns in fn params in an `Elided(Infer)` lifetime rib.)

Failed merges:

r? `@ghost`
`@rustbot` modify labels: rollup
Diffstat (limited to 'library/alloc/src')
-rw-r--r--library/alloc/src/vec/mod.rs1
1 files changed, 0 insertions, 1 deletions
diff --git a/library/alloc/src/vec/mod.rs b/library/alloc/src/vec/mod.rs
index b2bb7a5b2e6..b5b2eb0ece0 100644
--- a/library/alloc/src/vec/mod.rs
+++ b/library/alloc/src/vec/mod.rs
@@ -2193,7 +2193,6 @@ impl<T, A: Allocator> Vec<T, A> {
     /// static_ref[0] += 1;
     /// assert_eq!(static_ref, &[2, 2, 3]);
     /// ```
-    #[cfg(not(no_global_oom_handling))]
     #[stable(feature = "vec_leak", since = "1.47.0")]
     #[inline]
     pub fn leak<'a>(self) -> &'a mut [T]