rust-lang/rust-clippy
View on GitHubSuggestion: borrowing a RefCell in funarg position
Open
#4,632 opened on Oct 4, 2019
A-lintT-middlegood first issue
Repository metrics
- Stars
- (10,406 stars)
- PR merge metrics
- (Avg merge 19d 22h) (113 merged PRs in 30d)
Description
I recently came across this fun correctness bug in my code: https://github.com/rust-lang/rust/issues/65086.
I’m not sure how I could have known this without asking a compiler developer. Can we add a lint prohibiting RefCell borrows in funarg position since they prevent mutable borrows further down the stack?