Skip to content

Commit

Permalink
Update compiler/rustc_typeck/src/expr_use_visitor.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
nikomatsakis committed Jul 15, 2021
1 parent c4ac836 commit 75291ee
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion compiler/rustc_typeck/src/expr_use_visitor.rs
Expand Up @@ -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
Expand Down

0 comments on commit 75291ee

Please sign in to comment.