mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 12:54:58 +00:00
Support cross-crate marks
This commit is contained in:
parent
437329d3f5
commit
19115e9fab
7 changed files with 37 additions and 4 deletions
|
@ -96,7 +96,7 @@ pub(crate) fn reference_definition(
|
|||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use test_utils::assert_eq_text;
|
||||
use test_utils::{assert_eq_text, covers};
|
||||
|
||||
use crate::mock_analysis::analysis_and_position;
|
||||
|
||||
|
@ -208,6 +208,7 @@ mod tests {
|
|||
|
||||
#[test]
|
||||
fn goto_def_for_macros() {
|
||||
covers!(ra_ide_db::goto_def_for_macros);
|
||||
check_goto(
|
||||
"
|
||||
//- /lib.rs
|
||||
|
@ -224,6 +225,7 @@ mod tests {
|
|||
|
||||
#[test]
|
||||
fn goto_def_for_macros_from_other_crates() {
|
||||
covers!(ra_ide_db::goto_def_for_macros);
|
||||
check_goto(
|
||||
"
|
||||
//- /lib.rs
|
||||
|
@ -335,6 +337,7 @@ mod tests {
|
|||
|
||||
#[test]
|
||||
fn goto_def_for_methods() {
|
||||
covers!(ra_ide_db::goto_def_for_methods);
|
||||
check_goto(
|
||||
"
|
||||
//- /lib.rs
|
||||
|
@ -354,6 +357,7 @@ mod tests {
|
|||
|
||||
#[test]
|
||||
fn goto_def_for_fields() {
|
||||
covers!(ra_ide_db::goto_def_for_fields);
|
||||
check_goto(
|
||||
"
|
||||
//- /lib.rs
|
||||
|
@ -372,6 +376,7 @@ mod tests {
|
|||
|
||||
#[test]
|
||||
fn goto_def_for_record_fields() {
|
||||
covers!(ra_ide_db::goto_def_for_record_fields);
|
||||
check_goto(
|
||||
"
|
||||
//- /lib.rs
|
||||
|
@ -784,6 +789,7 @@ mod tests {
|
|||
|
||||
#[test]
|
||||
fn goto_def_for_field_init_shorthand() {
|
||||
covers!(ra_ide_db::goto_def_for_field_init_shorthand);
|
||||
check_goto(
|
||||
"
|
||||
//- /lib.rs
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue