mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-14 14:13:58 +00:00
Make the goto_through_format test actually fail :(
This commit is contained in:
parent
4a99ef5c39
commit
c80dc0ad3a
1 changed files with 3 additions and 0 deletions
|
@ -689,11 +689,13 @@ mod tests {
|
||||||
fo<|>o();
|
fo<|>o();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
mod confuse_index { fn foo(); }
|
||||||
",
|
",
|
||||||
"foo FN_DEF FileId(1) [52; 63) [55; 58)",
|
"foo FN_DEF FileId(1) [52; 63) [55; 58)",
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[should_panic] // currently failing because of expr mapping problems
|
||||||
#[test]
|
#[test]
|
||||||
fn goto_through_format() {
|
fn goto_through_format() {
|
||||||
check_goto(
|
check_goto(
|
||||||
|
@ -711,6 +713,7 @@ mod tests {
|
||||||
}
|
}
|
||||||
pub mod __export {
|
pub mod __export {
|
||||||
pub use crate::format_args;
|
pub use crate::format_args;
|
||||||
|
fn foo() {} // for index confusion
|
||||||
}
|
}
|
||||||
fn foo() -> i8 {}
|
fn foo() -> i8 {}
|
||||||
fn test() {
|
fn test() {
|
||||||
|
|
Loading…
Reference in a new issue