summaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2022-10-05 13:15:02 +0200
committerLaurenz <laurmaedje@gmail.com>2022-10-05 13:15:02 +0200
commitfd8160f3749135400b3d2c59bf6bfb729c081f16 (patch)
treefcd9eee0af33ae71b4b5b5d38453a5af4a974403 /src/main.rs
parentec884ec1d85f6e1d7868db3e82d572579cc5d345 (diff)
Remove `SpanPos` in favor of `ErrorPos`
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index 1c5790c2..ef441091 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -323,7 +323,7 @@ fn print_diagnostics(
for error in errors {
// The main diagnostic.
- let range = world.source(error.span.source()).range(error.span);
+ let range = error.range(world);
let diag = Diagnostic::error()
.with_message(error.message)
.with_labels(vec![Label::primary(error.span.source(), range)]);