File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed
src/librustc_mir/borrow_check/nll/region_infer/error_reporting Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -121,10 +121,6 @@ impl RegionName {
121121 }
122122 }
123123
124- crate fn name ( & self ) -> Symbol {
125- self . name
126- }
127-
128124 crate fn highlight_region_name ( & self , diag : & mut DiagnosticBuilder < ' _ > ) {
129125 match & self . source {
130126 RegionNameSource :: NamedFreeRegion ( span)
@@ -309,7 +305,7 @@ impl<'tcx> RegionInferenceContext<'tcx> {
309305 // happen if we have an elided name in an async fn for example: the
310306 // compiler will generate a region named `'_`, but reporting such a name is
311307 // 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 ( ) ;
313309 Some ( RegionName {
314310 name,
315311 source : RegionNameSource :: AnonRegionFromAsyncFn ( span) ,
You can’t perform that action at this time.
0 commit comments