mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 04:44:57 +00:00
spans always come from real file
This commit is contained in:
parent
394d11b0fa
commit
30093a6d81
57 changed files with 1369 additions and 1224 deletions
|
@ -60,9 +60,6 @@ macro_rules! compile_error { () => {} }
|
|||
|
||||
#[test]
|
||||
fn eager_macro_concat() {
|
||||
// FIXME: this is incorrectly handling `$crate`, resulting in a wrong diagnostic.
|
||||
// See: https://github.com/rust-lang/rust-analyzer/issues/10300
|
||||
|
||||
check_diagnostics(
|
||||
r#"
|
||||
//- /lib.rs crate:lib deps:core
|
||||
|
@ -80,7 +77,6 @@ macro_rules! m {
|
|||
|
||||
fn f() {
|
||||
m!();
|
||||
//^^^^ error: unresolved macro $crate::private::concat
|
||||
}
|
||||
|
||||
//- /core.rs crate:core
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue