diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-10-17 19:26:24 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-10-17 20:04:22 +0200 |
| commit | e21822665591dc19766275da1e185215a6b945ef (patch) | |
| tree | 7788e211c3c33c8b5a8ad7d5eb7574e33631eb16 /src/syntax/span.rs | |
| parent | 4fd031a256b2ecfe524859d5599fafb386395572 (diff) | |
Merge some modules
Diffstat (limited to 'src/syntax/span.rs')
| -rw-r--r-- | src/syntax/span.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/syntax/span.rs b/src/syntax/span.rs index 744aa123..d4d9a8f6 100644 --- a/src/syntax/span.rs +++ b/src/syntax/span.rs @@ -2,7 +2,7 @@ use std::fmt::{self, Debug, Display, Formatter}; use std::num::NonZeroU64; use std::ops::Range; -use crate::syntax::SourceId; +use super::SourceId; /// A value with a span locating it in the source code. #[derive(Copy, Clone, Eq, PartialEq, Hash)] @@ -42,8 +42,8 @@ impl<T: Debug> Debug for Spanned<T> { /// A unique identifier for a syntax node. /// /// This is used throughout the compiler to track which source section an error -/// or element stems from. Can be [mapped back](crate::source::Source::range) -/// to a byte range for user facing display. +/// or element stems from. Can be [mapped back](super::Source::range) to a byte +/// range for user facing display. /// /// Span ids are ordered in the tree to enable quickly finding the node with /// some id: |
