Rename variant AddrOfRegion
of RegionVariableOrigin
to BorrowRegion
because "Borrow" is the more idiomatic Rust term than "AddrOf".
This commit is contained in:
parent
59d4114b2d
commit
c0b06273f2
3 changed files with 5 additions and 5 deletions
|
@ -458,8 +458,8 @@ pub enum RegionVariableOrigin {
|
|||
PatternRegion(Span),
|
||||
|
||||
/// Regions created by `&` operator.
|
||||
///
|
||||
AddrOfRegion(Span),
|
||||
BorrowRegion(Span),
|
||||
|
||||
/// Regions created as part of an autoref of a method receiver.
|
||||
Autoref(Span),
|
||||
|
||||
|
@ -1741,7 +1741,7 @@ impl RegionVariableOrigin {
|
|||
match *self {
|
||||
MiscVariable(a)
|
||||
| PatternRegion(a)
|
||||
| AddrOfRegion(a)
|
||||
| BorrowRegion(a)
|
||||
| Autoref(a)
|
||||
| Coercion(a)
|
||||
| RegionParameterDefinition(a, ..)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue