about summary refs log tree commit diff
path: root/compiler/rustc_hir_analysis/src
diff options
context:
space:
mode:
authorJacob Pratt <jacob@jhpratt.dev>2025-07-07 03:26:08 +0200
committerGitHub <noreply@github.com>2025-07-07 03:26:08 +0200
commit02da29496566772c0e8d2a7c6b771503a13f5d7d (patch)
tree9f0e87de07fb818567d99c37aefe38c23966138c /compiler/rustc_hir_analysis/src
parenta1b51aa4003354ab4cb129f1ec9c4e4d45ddf803 (diff)
parent39575d39c5663af91c327fe33f9459e312d96ae0 (diff)
downloadrust-02da29496566772c0e8d2a7c6b771503a13f5d7d.tar.gz
rust-02da29496566772c0e8d2a7c6b771503a13f5d7d.zip
Rollup merge of #143529 - pixel27:master, r=jhpratt
Renamed retain_mut to retain on LinkedList as mentioned in the ACP

This is for proposal: https://github.com/rust-lang/libs-team/issues/250

The original check-in (https://github.com/rust-lang/rust/pull/114136) contained both methods **retain** and **retain_mut**, which does not conform to https://github.com/rust-lang/libs-team/issues/250#issuecomment-1766822671.

I updated the retain documentation to specify **&mut e**, removed the **retain** method and renamed **retain_mut** to **retain** to conform to the request.

The pull request doesn't really contain much that is new, just removes the unwanted method to meet the requirements.

I've run the tests "library/alloc" on the code and no issues.

Hopefully I'm not stepping on the original author's toes. I just ran across a need for the method and wondered why it was unstable.
Diffstat (limited to 'compiler/rustc_hir_analysis/src')
0 files changed, 0 insertions, 0 deletions