Update compiler/rustc_typeck/src/expr_use_visitor.rs

This commit is contained in:
Niko Matsakis 2021-07-15 04:13:20 -04:00 committed by GitHub
parent c4ac8369e2
commit 75291ee924
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -30,7 +30,9 @@ pub trait Delegate<'tcx> {
// on `mode`. Where `diag_expr_id` is the id used for diagnostics for `place`.
//
// Use of a `Copy` type in a ByValue context is considered a use
// by `ImmBorrow` and `borrow` is called instead.
// by `ImmBorrow` and `borrow` is called instead. This is because
// a shared borrow is the "minimum access" that would be needed
// to perform a copy.
//
//
// The parameter `diag_expr_id` indicates the HIR id that ought to be used for