File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
crates/hir_def/src/nameres Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -13,8 +13,8 @@ use test_utils::mark;
1313
1414use crate :: { db:: DefDatabase , nameres:: * , test_db:: TestDB } ;
1515
16- fn compute_crate_def_map ( fixture : & str ) -> Arc < CrateDefMap > {
17- let db = TestDB :: with_files ( fixture ) ;
16+ fn compute_crate_def_map ( ra_fixture : & str ) -> Arc < CrateDefMap > {
17+ let db = TestDB :: with_files ( ra_fixture ) ;
1818 let krate = db. crate_graph ( ) . iter ( ) . next ( ) . unwrap ( ) ;
1919 db. crate_def_map ( krate)
2020}
Original file line number Diff line number Diff line change @@ -632,7 +632,7 @@ pub struct bar;
632632#[ test]
633633fn expand_derive ( ) {
634634 let map = compute_crate_def_map (
635- "
635+ r# "
636636 //- /main.rs crate:main deps:core
637637 use core::Copy;
638638
@@ -645,7 +645,7 @@ fn expand_derive() {
645645
646646 #[rustc_builtin_macro]
647647 pub macro Clone {}
648- " ,
648+ "# ,
649649 ) ;
650650 assert_eq ! ( map. modules[ map. root] . scope. impls( ) . len( ) , 2 ) ;
651651}
You can’t perform that action at this time.
0 commit comments