mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 20:42:04 +00:00
Pass calling span through to builtin macro expansions
This commit is contained in:
parent
f48fa0c6cb
commit
0003e568ca
27 changed files with 623 additions and 497 deletions
|
@ -62,6 +62,11 @@ pub use paths::{AbsPath, AbsPathBuf};
|
|||
#[derive(Copy, Clone, Debug, Ord, PartialOrd, Eq, PartialEq, Hash)]
|
||||
pub struct FileId(pub u32);
|
||||
|
||||
impl FileId {
|
||||
/// Think twice about using this. If this ends up in a wrong place it will cause panics!
|
||||
pub const BOGUS: FileId = FileId(u32::MAX);
|
||||
}
|
||||
|
||||
/// safe because `FileId` is a newtype of `u32`
|
||||
impl nohash_hasher::IsEnabled for FileId {}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue