rust icon indicating copy to clipboard operation
rust copied to clipboard

Mention `as_mut` alongside `as_ref` in borrowck error message

Open compiler-errors opened this issue 1 year ago • 1 comments

Kinda fixes #99426 but I guess that really might be better staying open to see if we could make it suggest as_mut in a structured way. Not sure how to change borrowck to know that info tho.

compiler-errors avatar Aug 06 '22 00:08 compiler-errors

r? @fee1-dead

(rust-highfive has picked a reviewer for you, use r? to override)

rust-highfive avatar Aug 06 '22 00:08 rust-highfive

@bors r+

fee1-dead avatar Aug 19 '22 12:08 fee1-dead

:pushpin: Commit e37565d2db8d7cf92a6d1df535343d4b2881fc35 has been approved by fee1-dead

It is now in the queue for this repository.

bors avatar Aug 19 '22 12:08 bors

@bors rollup

compiler-errors avatar Aug 19 '22 22:08 compiler-errors