Update compiler/rustc_typeck/src/expr_use_visitor.rs
This commit is contained in:
parent
c4ac8369e2
commit
75291ee924
|
@ -30,7 +30,9 @@ pub trait Delegate<'tcx> {
|
||||||
// on `mode`. Where `diag_expr_id` is the id used for diagnostics for `place`.
|
// 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
|
// 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
|
// The parameter `diag_expr_id` indicates the HIR id that ought to be used for
|
||||||
|
|
Loading…
Reference in a new issue