@@ -13,7 +13,7 @@ use rustc_middle::ty::{self, DefIdTree, RegionVid, Ty};
1313use rustc_span:: symbol:: { kw, sym, Ident , Symbol } ;
1414use rustc_span:: { Span , DUMMY_SP } ;
1515
16- use crate :: session_diagnostics:: RegionNameLables ;
16+ use crate :: session_diagnostics:: RegionNameLabels ;
1717use crate :: { nll:: ToRegionVid , universal_regions:: DefiningTy , MirBorrowckCtxt } ;
1818
1919/// A name for a particular region used in emitting diagnostics. This name could be a generated
@@ -137,13 +137,13 @@ impl RegionName {
137137 RegionNameHighlight :: MatchedAdtAndSegment ( span) ,
138138 _,
139139 ) => {
140- diag. subdiagnostic ( RegionNameLables :: NameRegion { span : * span, rg_name : self } ) ;
140+ diag. subdiagnostic ( RegionNameLabels :: NameRegion { span : * span, rg_name : self } ) ;
141141 }
142142 RegionNameSource :: AnonRegionFromArgument ( RegionNameHighlight :: Occluded (
143143 span,
144144 type_name,
145145 ) ) => {
146- diag. subdiagnostic ( RegionNameLables :: LifetimeInType {
146+ diag. subdiagnostic ( RegionNameLabels :: LifetimeInType {
147147 span : * span,
148148 type_name : & type_name,
149149 rg_name : self ,
@@ -153,15 +153,15 @@ impl RegionName {
153153 RegionNameHighlight :: Occluded ( span, type_name) ,
154154 mir_description,
155155 ) => {
156- diag. subdiagnostic ( RegionNameLables :: LifetimeInReturned {
156+ diag. subdiagnostic ( RegionNameLabels :: LifetimeInReturned {
157157 span : * span,
158158 mir_description,
159159 type_name : & type_name,
160160 rg_name : self ,
161161 } ) ;
162162 }
163163 RegionNameSource :: AnonRegionFromUpvar ( span, upvar_name) => {
164- diag. subdiagnostic ( RegionNameLables :: LifetimeInTypeOf {
164+ diag. subdiagnostic ( RegionNameLabels :: LifetimeInTypeOf {
165165 span : * span,
166166 upvar_name : upvar_name. to_ident_string ( ) ,
167167 rg_name : self ,
@@ -171,20 +171,20 @@ impl RegionName {
171171 RegionNameHighlight :: CannotMatchHirTy ( span, type_name) ,
172172 mir_description,
173173 ) => {
174- diag. subdiagnostic ( RegionNameLables :: ReturnTypeIsTpye {
174+ diag. subdiagnostic ( RegionNameLabels :: ReturnTypeIsTpye {
175175 span : * span,
176176 mir_description,
177177 type_name : & type_name,
178178 } ) ;
179179 }
180180 RegionNameSource :: AnonRegionFromYieldTy ( span, type_name) => {
181- diag. subdiagnostic ( RegionNameLables :: YieldTypeIsTpye {
181+ diag. subdiagnostic ( RegionNameLabels :: YieldTypeIsTpye {
182182 span : * span,
183183 type_name : & type_name,
184184 } ) ;
185185 }
186186 RegionNameSource :: AnonRegionFromImplSignature ( span, location) => {
187- diag. subdiagnostic ( RegionNameLables :: LifetimeInImpl {
187+ diag. subdiagnostic ( RegionNameLabels :: LifetimeInImpl {
188188 span : * span,
189189 rg_name : self ,
190190 location : & location,
0 commit comments