From ef0341b78a2ab06eebe48a364e7c9cbd7b232e77 Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Wed, 17 Mar 2021 14:23:14 +0100 Subject: [PATCH] Update stdlib to erasedDefinitions language import --- community-build/community-projects/stdLib213 | 2 +- compiler/src/dotty/tools/dotc/parsing/Scanners.scala | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/community-build/community-projects/stdLib213 b/community-build/community-projects/stdLib213 index f4dd8b1b0bd1..2361c1f0373f 160000 --- a/community-build/community-projects/stdLib213 +++ b/community-build/community-projects/stdLib213 @@ -1 +1 @@ -Subproject commit f4dd8b1b0bd13f0f9e9e7fe91ba621ddb5e81686 +Subproject commit 2361c1f0373f8af5418abe393bb85663f8f95259 diff --git a/compiler/src/dotty/tools/dotc/parsing/Scanners.scala b/compiler/src/dotty/tools/dotc/parsing/Scanners.scala index a501a3582ca1..789a76e88190 100644 --- a/compiler/src/dotty/tools/dotc/parsing/Scanners.scala +++ b/compiler/src/dotty/tools/dotc/parsing/Scanners.scala @@ -191,7 +191,7 @@ object Scanners { final def languageImportContext_=(c: Context) = myLanguageImportContext = c def featureEnabled(name: TermName) = Feature.enabled(name)(using languageImportContext) - def erasedEnabled = featureEnabled(Feature.erasedTerms) || ctx.settings.YerasedTerms.value + def erasedEnabled = featureEnabled(Feature.erasedDefinitions) || ctx.settings.YerasedTerms.value /** All doc comments kept by their end position in a `Map`. *