Index: sdk/lib/_internal/compiler/implementation/library_loader.dart |
diff --git a/sdk/lib/_internal/compiler/implementation/library_loader.dart b/sdk/lib/_internal/compiler/implementation/library_loader.dart |
index 0bcd1a51ca3f377c5f4de13601372de47740c680..8f4f224a52dd305fdc4e27fcc83a5e3da7295ebb 100644 |
--- a/sdk/lib/_internal/compiler/implementation/library_loader.dart |
+++ b/sdk/lib/_internal/compiler/implementation/library_loader.dart |
@@ -368,17 +368,7 @@ class LibraryLoaderTask extends LibraryLoader { |
compiler.withCurrentElement(unit, () { |
compiler.scanner.scan(unit); |
if (unit.partTag == null) { |
- bool wasDiagnosticEmitted = false; |
- compiler.withCurrentElement(library, () { |
- wasDiagnosticEmitted = |
- compiler.onDeprecatedFeature(part, 'missing part-of tag'); |
- }); |
- if (wasDiagnosticEmitted) { |
- compiler.reportMessage( |
- compiler.spanFromElement(unit), |
- MessageKind.MISSING_PART_OF_TAG.error(), |
- api.Diagnostic.INFO); |
- } |
+ compiler.reportError(unit, MessageKind.MISSING_PART_OF_TAG); |
} |
}); |
} |