Skip to content

Commit

Permalink
Try avoiding MIR inlining, if any
Browse files Browse the repository at this point in the history
Co-authored-by: scottmcm <[email protected]>
  • Loading branch information
Mark-Simulacrum and scottmcm authored Jun 9, 2024
1 parent 74af8ba commit a14d42e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions library/alloc/src/raw_vec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -548,6 +548,7 @@ impl<T, A: Allocator> RawVec<T, A> {
// above `RawVec::grow_amortized` for details. (The `A` parameter isn't
// significant, because the number of different `A` types seen in practice is
// much smaller than the number of `T` types.)
#[rustc_no_mir_inline]
fn finish_grow<A>(
new_layout: Result<Layout, LayoutError>,
current_memory: Option<(NonNull<u8>, Layout)>,
Expand Down

0 comments on commit a14d42e

Please sign in to comment.