Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mark-i-m committed Nov 29, 2019
1 parent 05db660 commit 2a86b6c
Showing 1 changed file with 1 addition and 5 deletions.
Expand Up @@ -121,10 +121,6 @@ impl RegionName {
}
}

crate fn name(&self) -> Symbol {
self.name
}

crate fn highlight_region_name(&self, diag: &mut DiagnosticBuilder<'_>) {
match &self.source {
RegionNameSource::NamedFreeRegion(span)
Expand Down Expand Up @@ -309,7 +305,7 @@ impl<'tcx> RegionInferenceContext<'tcx> {
// happen if we have an elided name in an async fn for example: the
// compiler will generate a region named `'_`, but reporting such a name is
// not actually useful, so we synthesize a name for it instead.
let name = self.synthesize_region_name(renctx);
let name = renctx.synthesize_region_name();
Some(RegionName {
name,
source: RegionNameSource::AnonRegionFromAsyncFn(span),
Expand Down

0 comments on commit 2a86b6c

Please sign in to comment.