Remove unneeded annotations from find_path tests

This commit is contained in:
Jonas Schievink 2021-04-15 19:24:09 +02:00
parent 3af303600a
commit d073c3e56d

View File

@ -427,7 +427,6 @@ mod tests {
fn same_module() { fn same_module() {
check_found_path( check_found_path(
r#" r#"
//- /main.rs
struct S; struct S;
$0 $0
"#, "#,
@ -442,7 +441,6 @@ $0
fn enum_variant() { fn enum_variant() {
check_found_path( check_found_path(
r#" r#"
//- /main.rs
enum E { A } enum E { A }
$0 $0
"#, "#,
@ -457,7 +455,6 @@ $0
fn sub_module() { fn sub_module() {
check_found_path( check_found_path(
r#" r#"
//- /main.rs
mod foo { mod foo {
pub struct S; pub struct S;
} }
@ -619,7 +616,6 @@ pub mod ast {
fn same_crate_reexport() { fn same_crate_reexport() {
check_found_path( check_found_path(
r#" r#"
//- /main.rs
mod bar { mod bar {
mod foo { pub(super) struct S; } mod foo { pub(super) struct S; }
pub(crate) use foo::*; pub(crate) use foo::*;
@ -637,7 +633,6 @@ $0
fn same_crate_reexport_rename() { fn same_crate_reexport_rename() {
check_found_path( check_found_path(
r#" r#"
//- /main.rs
mod bar { mod bar {
mod foo { pub(super) struct S; } mod foo { pub(super) struct S; }
pub(crate) use foo::S as U; pub(crate) use foo::S as U;
@ -874,7 +869,6 @@ pub struct Arc;
#[test] #[test]
fn builtins_are_in_scope() { fn builtins_are_in_scope() {
let code = r#" let code = r#"
//- /main.rs
$0 $0
pub mod primitive { pub mod primitive {