mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-11-01 04:18:20 +00:00
Re-implement rust string highlighting via tool attribute
This commit is contained in:
parent
897f7e579e
commit
bf669dab84
72 changed files with 386 additions and 173 deletions
|
|
@ -748,7 +748,7 @@ mod tests {
|
|||
|
||||
use crate::fixture;
|
||||
|
||||
fn check(ra_fixture: &str, expect: Expect) {
|
||||
fn check(#[rust_analyzer::rust_fixture] ra_fixture: &str, expect: Expect) {
|
||||
let (analysis, position) = fixture::position(ra_fixture);
|
||||
let result = analysis
|
||||
.runnables(position.file_id)
|
||||
|
|
@ -769,7 +769,7 @@ mod tests {
|
|||
expect.assert_debug_eq(&result);
|
||||
}
|
||||
|
||||
fn check_tests(ra_fixture: &str, expect: Expect) {
|
||||
fn check_tests(#[rust_analyzer::rust_fixture] ra_fixture: &str, expect: Expect) {
|
||||
let (analysis, position) = fixture::position(ra_fixture);
|
||||
let tests = analysis.related_tests(position, None).unwrap();
|
||||
let navigation_targets = tests.into_iter().map(|runnable| runnable.nav).collect::<Vec<_>>();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue