aboutsummaryrefslogtreecommitdiff
path: root/crates/hir_ty
diff options
context:
space:
mode:
Diffstat (limited to 'crates/hir_ty')
-rw-r--r--crates/hir_ty/src/tests/macros.rs1
-rw-r--r--crates/hir_ty/src/tests/regression.rs24
2 files changed, 24 insertions, 1 deletions
diff --git a/crates/hir_ty/src/tests/macros.rs b/crates/hir_ty/src/tests/macros.rs
index 597a195d0..de97ec3c2 100644
--- a/crates/hir_ty/src/tests/macros.rs
+++ b/crates/hir_ty/src/tests/macros.rs
@@ -413,7 +413,6 @@ fn infer_local_macro() {
413 expect![[r#" 413 expect![[r#"
414 !0..6 '1usize': usize 414 !0..6 '1usize': usize
415 10..89 '{ ...!(); }': () 415 10..89 '{ ...!(); }': ()
416 16..65 'macro_... }': {unknown}
417 74..76 '_a': usize 416 74..76 '_a': usize
418 "#]], 417 "#]],
419 ); 418 );
diff --git a/crates/hir_ty/src/tests/regression.rs b/crates/hir_ty/src/tests/regression.rs
index da8170417..307a257b1 100644
--- a/crates/hir_ty/src/tests/regression.rs
+++ b/crates/hir_ty/src/tests/regression.rs
@@ -593,6 +593,30 @@ fn issue_4465_dollar_crate_at_type() {
593} 593}
594 594
595#[test] 595#[test]
596fn issue_6811() {
597 check_infer(
598 r#"
599 macro_rules! profile_function {
600 () => {
601 let _a = 1;
602 let _b = 1;
603 };
604 }
605 fn main() {
606 profile_function!();
607 }
608 "#,
609 expect![[r#"
610 !3..5 '_a': i32
611 !6..7 '1': i32
612 !11..13 '_b': i32
613 !14..15 '1': i32
614 103..131 '{ ...!(); }': ()
615 "#]],
616 );
617}
618
619#[test]
596fn issue_4053_diesel_where_clauses() { 620fn issue_4053_diesel_where_clauses() {
597 check_infer( 621 check_infer(
598 r#" 622 r#"