Skip to content

Commit 2c364f6

Browse files
committed
Fix tests
1 parent f34b246 commit 2c364f6

File tree

5 files changed

+11
-10
lines changed

5 files changed

+11
-10
lines changed

crates/ide-completion/src/completions/dot.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,6 @@ fn foo(a: lib::A) { a.$0 }
415415
fn test_local_impls() {
416416
check(
417417
r#"
418-
//- /lib.rs crate:lib
419418
pub struct A {}
420419
mod m {
421420
impl super::A {
@@ -427,9 +426,8 @@ mod m {
427426
}
428427
}
429428
}
430-
//- /main.rs crate:main deps:lib
431-
fn foo(a: lib::A) {
432-
impl lib::A {
429+
fn foo(a: A) {
430+
impl A {
433431
fn local_method(&self) {}
434432
}
435433
a.$0

crates/ide-completion/src/tests/pattern.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -614,6 +614,7 @@ fn f(u: U) {
614614

615615
check_empty(
616616
r#"
617+
#![rustc_coherence_is_core]
617618
#[lang = "u32"]
618619
impl u32 {
619620
pub const MIN: Self = 0;

crates/ide-completion/src/tests/special.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -608,6 +608,7 @@ fn f() {
608608
}
609609
610610
//- /core.rs crate:core
611+
#![rustc_coherence_is_core]
611612
#[lang = "u8"]
612613
impl u8 {
613614
pub const MAX: Self = 255;

crates/ide/src/goto_implementation.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,7 @@ impl Foo<str> {}
297297
//- /lib.rs crate:main deps:core
298298
fn foo(_: bool$0) {{}}
299299
//- /libcore.rs crate:core
300+
#![rustc_coherence_is_core]
300301
#[lang = "bool"]
301302
impl bool {}
302303
//^^^^

crates/ide/src/inlay_hints/chaining.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ fn main() {
435435
file_id: FileId(
436436
1,
437437
),
438-
range: 3386..3394,
438+
range: 3415..3423,
439439
},
440440
),
441441
tooltip: "",
@@ -448,7 +448,7 @@ fn main() {
448448
file_id: FileId(
449449
1,
450450
),
451-
range: 3418..3422,
451+
range: 3447..3451,
452452
},
453453
),
454454
tooltip: "",
@@ -468,7 +468,7 @@ fn main() {
468468
file_id: FileId(
469469
1,
470470
),
471-
range: 3386..3394,
471+
range: 3415..3423,
472472
},
473473
),
474474
tooltip: "",
@@ -481,7 +481,7 @@ fn main() {
481481
file_id: FileId(
482482
1,
483483
),
484-
range: 3418..3422,
484+
range: 3447..3451,
485485
},
486486
),
487487
tooltip: "",
@@ -501,7 +501,7 @@ fn main() {
501501
file_id: FileId(
502502
1,
503503
),
504-
range: 3386..3394,
504+
range: 3415..3423,
505505
},
506506
),
507507
tooltip: "",
@@ -514,7 +514,7 @@ fn main() {
514514
file_id: FileId(
515515
1,
516516
),
517-
range: 3418..3422,
517+
range: 3447..3451,
518518
},
519519
),
520520
tooltip: "",

0 commit comments

Comments
 (0)