This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +11
-10
lines changed Expand file tree Collapse file tree 5 files changed +11
-10
lines changed Original file line number Diff line number Diff 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
419418pub struct A {}
420419mod 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
Original file line number Diff line number Diff line change @@ -614,6 +614,7 @@ fn f(u: U) {
614614
615615 check_empty (
616616 r#"
617+ #![rustc_coherence_is_core]
617618#[lang = "u32"]
618619impl u32 {
619620 pub const MIN: Self = 0;
Original file line number Diff line number Diff line change @@ -608,6 +608,7 @@ fn f() {
608608}
609609
610610//- /core.rs crate:core
611+ #![rustc_coherence_is_core]
611612#[lang = "u8"]
612613impl u8 {
613614 pub const MAX: Self = 255;
Original file line number Diff line number Diff line change @@ -297,6 +297,7 @@ impl Foo<str> {}
297297//- /lib.rs crate:main deps:core
298298fn foo(_: bool$0) {{}}
299299//- /libcore.rs crate:core
300+ #![rustc_coherence_is_core]
300301#[lang = "bool"]
301302impl bool {}
302303 //^^^^
Original file line number Diff line number Diff 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: "",
You can’t perform that action at this time.
0 commit comments