@@ -13,7 +13,7 @@ use rustc_middle::ty::{self, DefIdTree, RegionVid, Ty};
13
13
use rustc_span:: symbol:: { kw, sym, Ident , Symbol } ;
14
14
use rustc_span:: { Span , DUMMY_SP } ;
15
15
16
- use crate :: session_diagnostics:: RegionNameLables ;
16
+ use crate :: session_diagnostics:: RegionNameLabels ;
17
17
use crate :: { nll:: ToRegionVid , universal_regions:: DefiningTy , MirBorrowckCtxt } ;
18
18
19
19
/// A name for a particular region used in emitting diagnostics. This name could be a generated
@@ -137,13 +137,13 @@ impl RegionName {
137
137
RegionNameHighlight :: MatchedAdtAndSegment ( span) ,
138
138
_,
139
139
) => {
140
- diag. subdiagnostic ( RegionNameLables :: NameRegion { span : * span, rg_name : self } ) ;
140
+ diag. subdiagnostic ( RegionNameLabels :: NameRegion { span : * span, rg_name : self } ) ;
141
141
}
142
142
RegionNameSource :: AnonRegionFromArgument ( RegionNameHighlight :: Occluded (
143
143
span,
144
144
type_name,
145
145
) ) => {
146
- diag. subdiagnostic ( RegionNameLables :: LifetimeInType {
146
+ diag. subdiagnostic ( RegionNameLabels :: LifetimeInType {
147
147
span : * span,
148
148
type_name : & type_name,
149
149
rg_name : self ,
@@ -153,15 +153,15 @@ impl RegionName {
153
153
RegionNameHighlight :: Occluded ( span, type_name) ,
154
154
mir_description,
155
155
) => {
156
- diag. subdiagnostic ( RegionNameLables :: LifetimeInReturned {
156
+ diag. subdiagnostic ( RegionNameLabels :: LifetimeInReturned {
157
157
span : * span,
158
158
mir_description,
159
159
type_name : & type_name,
160
160
rg_name : self ,
161
161
} ) ;
162
162
}
163
163
RegionNameSource :: AnonRegionFromUpvar ( span, upvar_name) => {
164
- diag. subdiagnostic ( RegionNameLables :: LifetimeInTypeOf {
164
+ diag. subdiagnostic ( RegionNameLabels :: LifetimeInTypeOf {
165
165
span : * span,
166
166
upvar_name : upvar_name. to_ident_string ( ) ,
167
167
rg_name : self ,
@@ -171,20 +171,20 @@ impl RegionName {
171
171
RegionNameHighlight :: CannotMatchHirTy ( span, type_name) ,
172
172
mir_description,
173
173
) => {
174
- diag. subdiagnostic ( RegionNameLables :: ReturnTypeIsTpye {
174
+ diag. subdiagnostic ( RegionNameLabels :: ReturnTypeIsTpye {
175
175
span : * span,
176
176
mir_description,
177
177
type_name : & type_name,
178
178
} ) ;
179
179
}
180
180
RegionNameSource :: AnonRegionFromYieldTy ( span, type_name) => {
181
- diag. subdiagnostic ( RegionNameLables :: YieldTypeIsTpye {
181
+ diag. subdiagnostic ( RegionNameLabels :: YieldTypeIsTpye {
182
182
span : * span,
183
183
type_name : & type_name,
184
184
} ) ;
185
185
}
186
186
RegionNameSource :: AnonRegionFromImplSignature ( span, location) => {
187
- diag. subdiagnostic ( RegionNameLables :: LifetimeInImpl {
187
+ diag. subdiagnostic ( RegionNameLabels :: LifetimeInImpl {
188
188
span : * span,
189
189
rg_name : self ,
190
190
location : & location,
0 commit comments