Improve diagnostics for buffer reuse with borrowed references by JohnTitor · Pull Request #147974 · rust-lang/rust

@JohnTitor

@rustbot added S-waiting-on-review

Status: Awaiting review from the assignee but also interested parties.

T-compiler

Relevant to the compiler team, which will review and decide on the PR/issue.

labels

Oct 22, 2025

JohnTitor

estebank

@bors bors added S-waiting-on-bors

Status: Waiting on bors to run and complete tests. Bors will change the label on completion.

and removed S-waiting-on-review

Status: Awaiting review from the assignee but also interested parties.

labels

Nov 11, 2025

Zalathar added a commit to Zalathar/rust that referenced this pull request

Nov 11, 2025
…ttern, r=estebank

Improve diagnostics for buffer reuse with borrowed references

Addresses rust-lang#147694

I'm not sure the current note wording is the best so I appreciate any feedback.

Zalathar added a commit to Zalathar/rust that referenced this pull request

Nov 11, 2025
…ttern, r=estebank

Improve diagnostics for buffer reuse with borrowed references

Addresses rust-lang#147694

I'm not sure the current note wording is the best so I appreciate any feedback.

bors added a commit that referenced this pull request

Nov 12, 2025
Rollup of 12 pull requests

Successful merges:

 - #146627 (Simplify `jemalloc` setup)
 - #147753 (Suggest add bounding value for RangeTo)
 - #147974 (Improve diagnostics for buffer reuse with borrowed references)
 - #148080 ([rustdoc] Fix invalid jump to def macro link generation)
 - #148424 (bootstrap: Add snapshot tests for path-to-step handling)
 - #148500 (Update git index before running diff-index)
 - #148536 (cmse: add test for `async` and `const` functions)
 - #148770 (implement `feature(c_variadic_naked_functions)`)
 - #148819 (Remove specialized warning for removed target)
 - #148830 (miri subtree update)
 - #148833 (Update rustbook dependencies)
 - #148841 (Remove more `#[must_use]` from portable-simd)

r? `@ghost`
`@rustbot` modify labels: rollup

bors added a commit that referenced this pull request

Nov 12, 2025
…tebank

Improve diagnostics for buffer reuse with borrowed references

Addresses #147694

I'm not sure the current note wording is the best so I appreciate any feedback.

bors added a commit that referenced this pull request

Nov 12, 2025
Rollup of 16 pull requests

Successful merges:

 - #146627 (Simplify `jemalloc` setup)
 - #147753 (Suggest add bounding value for RangeTo)
 - #147832 (rustdoc: Don't pass `RenderOptions` to `DocContext`)
 - #147974 (Improve diagnostics for buffer reuse with borrowed references)
 - #148080 ([rustdoc] Fix invalid jump to def macro link generation)
 - #148465 (Adjust spans into the `for` loops context before creating the new desugaring spans.)
 - #148500 (Update git index before running diff-index)
 - #148531 (rustc_target: introduce Abi, Env, Os)
 - #148536 (cmse: add test for `async` and `const` functions)
 - #148770 (implement `feature(c_variadic_naked_functions)`)
 - #148780 (fix filecheck typos in tests)
 - #148819 (Remove specialized warning for removed target)
 - #148830 (miri subtree update)
 - #148833 (Update rustbook dependencies)
 - #148834 (fix(rustdoc): Color doctest errors)
 - #148841 (Remove more `#[must_use]` from portable-simd)

r? `@ghost`
`@rustbot` modify labels: rollup

rust-timer added a commit that referenced this pull request

Nov 12, 2025
Rollup merge of #147974 - JohnTitor:diag-detect-buf-reuse-pattern, r=estebank

Improve diagnostics for buffer reuse with borrowed references

Addresses #147694

I'm not sure the current note wording is the best so I appreciate any feedback.

github-actions bot pushed a commit to rust-lang/miri that referenced this pull request

Nov 12, 2025

@JohnTitor JohnTitor deleted the diag-detect-buf-reuse-pattern branch

November 12, 2025 09:16

Kobzol pushed a commit to Kobzol/rustc_codegen_cranelift that referenced this pull request

Dec 29, 2025

christian-schilling pushed a commit to christian-schilling/rustc_codegen_cranelift that referenced this pull request

Jan 27, 2026

christian-schilling pushed a commit to christian-schilling/rustc_codegen_cranelift that referenced this pull request

Jan 27, 2026

Kobzol pushed a commit to Kobzol/portable-simd that referenced this pull request

Feb 3, 2026

Kobzol pushed a commit to Kobzol/portable-simd that referenced this pull request

Feb 3, 2026