File tree 1 file changed +1
-5
lines changed
src/librustc_mir/borrow_check/nll/region_infer/error_reporting
1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -121,10 +121,6 @@ impl RegionName {
121
121
}
122
122
}
123
123
124
- crate fn name ( & self ) -> Symbol {
125
- self . name
126
- }
127
-
128
124
crate fn highlight_region_name ( & self , diag : & mut DiagnosticBuilder < ' _ > ) {
129
125
match & self . source {
130
126
RegionNameSource :: NamedFreeRegion ( span)
@@ -309,7 +305,7 @@ impl<'tcx> RegionInferenceContext<'tcx> {
309
305
// happen if we have an elided name in an async fn for example: the
310
306
// compiler will generate a region named `'_`, but reporting such a name is
311
307
// not actually useful, so we synthesize a name for it instead.
312
- let name = self . synthesize_region_name ( renctx ) ;
308
+ let name = renctx . synthesize_region_name ( ) ;
313
309
Some ( RegionName {
314
310
name,
315
311
source : RegionNameSource :: AnonRegionFromAsyncFn ( span) ,
You can’t perform that action at this time.
0 commit comments