Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/span/src/lib.rs')
| -rw-r--r-- | crates/span/src/lib.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/crates/span/src/lib.rs b/crates/span/src/lib.rs index f6569050b4..426e4cb55a 100644 --- a/crates/span/src/lib.rs +++ b/crates/span/src/lib.rs @@ -1,10 +1,8 @@ //! File and span related types. -// FIXME: This should be moved into its own crate to get rid of the dependency inversion, base-db -// has business depending on tt, tt should depend on a span crate only (which unforunately will have -// to depend on salsa) use std::fmt::{self, Write}; use salsa::InternId; +use stdx::assert_eq_size; mod map; @@ -38,6 +36,7 @@ pub const FIXUP_ERASED_FILE_AST_ID_MARKER: ErasedFileAstId = la_arena::Idx::from_raw(la_arena::RawIdx::from_u32(!0 - 1)); pub type Span = SpanData<SyntaxContextId>; +assert_eq_size!(Span, 20); #[derive(Clone, Copy, PartialEq, Eq, Hash, Debug)] pub struct SpanData<Ctx> { |