mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 20:42:04 +00:00
fix: Fix span marking for builtin fn macros
This commit is contained in:
parent
1e1113cf5f
commit
5bdb479131
10 changed files with 153 additions and 57 deletions
|
@ -28,7 +28,7 @@ use triomphe::Arc;
|
|||
|
||||
use std::{fmt, hash::Hash};
|
||||
|
||||
use base_db::{CrateId, FileId};
|
||||
use base_db::{CrateId, Edition, FileId};
|
||||
use either::Either;
|
||||
use span::{FileRange, HirFileIdRepr, Span, SyntaxContextId};
|
||||
use syntax::{
|
||||
|
@ -176,6 +176,7 @@ pub struct MacroCallLoc {
|
|||
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
|
||||
pub struct MacroDefId {
|
||||
pub krate: CrateId,
|
||||
pub edition: Edition,
|
||||
pub kind: MacroDefKind,
|
||||
pub local_inner: bool,
|
||||
pub allow_internal_unsafe: bool,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue