aboutsummaryrefslogtreecommitdiff
path: root/docs/docs/usage/migrating.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/docs/usage/migrating.md')
-rw-r--r--docs/docs/usage/migrating.md18
1 files changed, 9 insertions, 9 deletions
diff --git a/docs/docs/usage/migrating.md b/docs/docs/usage/migrating.md
index eb76571e5..5a2f64be3 100644
--- a/docs/docs/usage/migrating.md
+++ b/docs/docs/usage/migrating.md
@@ -1,5 +1,5 @@
---
-layout: default
+layout: doc-page
title: "Migrating to Dotty"
---
@@ -17,15 +17,15 @@ Most `sym.isProperty` methods don't exist in dotc, test for flags instead. See
[dotc vs scalac: Trees, Symbols, Types & Denotations]
### Logging, Error Reporting, Failures ###
-
There are various kinds of logging:
- * Errors, warnings, etc: `ctx.inform`, `ctx.warning`, `ctx.error`, ...
- * Log messages displayed under `-Ylog:phase`: `log(msg)` in scalac =>
- `ctx.log(msg)` in dotc
- * Debug-Log messages displayed under `-Ydebug -Ylog:<phase>`: `debuglog(msg)`
- in scalac => `ctx.debuglog(msg)` in dotc
- * Assertions: `assert(invariant)`
- * Fatal errors: `abort(msg)` in scalac => `throw new
+
+* Errors, warnings, etc: `ctx.inform`, `ctx.warning`, `ctx.error`, ...
+* Log messages displayed under `-Ylog:phase`: `log(msg)` in scalac =>
+ `ctx.log(msg)` in dotc
+* Debug-Log messages displayed under `-Ydebug -Ylog:<phase>`: `debuglog(msg)`
+ in scalac => `ctx.debuglog(msg)` in dotc
+* Assertions: `assert(invariant)`
+* Fatal errors: `abort(msg)` in scalac => `throw new
dotty.tools.dotc.FatalError(msg)` in dotc