@@ -31,7 +31,10 @@ fn simplify(e: ConstEvalError) -> ConstEvalError {
3131}
3232
3333#[ track_caller]
34- fn check_fail ( ra_fixture : & str , error : impl FnOnce ( ConstEvalError ) -> bool ) {
34+ fn check_fail (
35+ #[ rust_analyzer:: rust_fixture] ra_fixture : & str ,
36+ error : impl FnOnce ( ConstEvalError ) -> bool ,
37+ ) {
3538 let ( db, file_id) = TestDB :: with_single_file ( ra_fixture) ;
3639 match eval_goal ( & db, file_id) {
3740 Ok ( _) => panic ! ( "Expected fail, but it succeeded" ) ,
@@ -42,7 +45,7 @@ fn check_fail(ra_fixture: &str, error: impl FnOnce(ConstEvalError) -> bool) {
4245}
4346
4447#[ track_caller]
45- fn check_number ( ra_fixture : & str , answer : i128 ) {
48+ fn check_number ( # [ rust_analyzer :: rust_fixture ] ra_fixture : & str , answer : i128 ) {
4649 check_answer ( ra_fixture, |b, _| {
4750 assert_eq ! (
4851 b,
@@ -54,7 +57,7 @@ fn check_number(ra_fixture: &str, answer: i128) {
5457}
5558
5659#[ track_caller]
57- fn check_str ( ra_fixture : & str , answer : & str ) {
60+ fn check_str ( # [ rust_analyzer :: rust_fixture ] ra_fixture : & str , answer : & str ) {
5861 check_answer ( ra_fixture, |b, mm| {
5962 let addr = usize:: from_le_bytes ( b[ 0 ..b. len ( ) / 2 ] . try_into ( ) . unwrap ( ) ) ;
6063 let size = usize:: from_le_bytes ( b[ b. len ( ) / 2 ..] . try_into ( ) . unwrap ( ) ) ;
@@ -71,7 +74,10 @@ fn check_str(ra_fixture: &str, answer: &str) {
7174}
7275
7376#[ track_caller]
74- fn check_answer ( ra_fixture : & str , check : impl FnOnce ( & [ u8 ] , & MemoryMap ) ) {
77+ fn check_answer (
78+ #[ rust_analyzer:: rust_fixture] ra_fixture : & str ,
79+ check : impl FnOnce ( & [ u8 ] , & MemoryMap ) ,
80+ ) {
7581 let ( db, file_ids) = TestDB :: with_many_files ( ra_fixture) ;
7682 let file_id = * file_ids. last ( ) . unwrap ( ) ;
7783 let r = match eval_goal ( & db, file_id) {
0 commit comments