Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/span/src/ast_id.rs')
-rw-r--r--crates/span/src/ast_id.rs7
1 files changed, 4 insertions, 3 deletions
diff --git a/crates/span/src/ast_id.rs b/crates/span/src/ast_id.rs
index 51a693ca01..8e95971198 100644
--- a/crates/span/src/ast_id.rs
+++ b/crates/span/src/ast_id.rs
@@ -108,7 +108,8 @@ impl fmt::Debug for ErasedFileAstId {
#[derive(Debug, Clone, Copy, Hash, PartialEq, Eq)]
enum ErasedFileAstIdKind {
- Root,
+ /// This needs to not change because it's depended upon by the proc macro server.
+ Fixup,
// The following are associated with `ErasedHasNameFileAstId`.
Enum,
Struct,
@@ -143,7 +144,7 @@ enum ErasedFileAstIdKind {
/// Associated with [`BlockExprFileAstId`].
BlockExpr,
/// Keep this last.
- Fixup,
+ Root,
}
// First hash, then index, then kind.
@@ -218,7 +219,7 @@ impl ErasedFileAstId {
}
#[inline]
- pub fn from_raw(v: u32) -> Self {
+ pub const fn from_raw(v: u32) -> Self {
Self(v)
}
}