diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2019-11-22 16:37:10 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2019-11-22 16:37:10 +0000 |
commit | 4d49b5d174430feede9833c5e66c39ee41b5fa3e (patch) | |
tree | 3042ee2fb92cac71a841b920dfd3ac708db10924 /crates/ra_hir/src/ty | |
parent | 506131e3e01a81546ab218e1764073061875ea2e (diff) | |
parent | 1ee5592be28a980d75cc6e3e2fd9796a07772480 (diff) |
Merge #2355
2355: Expand column!() r=kjeremy a=kjeremy
Co-authored-by: Jeremy Kolb <[email protected]>
Diffstat (limited to 'crates/ra_hir/src/ty')
-rw-r--r-- | crates/ra_hir/src/ty/tests.rs | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/crates/ra_hir/src/ty/tests.rs b/crates/ra_hir/src/ty/tests.rs index b4bdd81f6..17a50cf74 100644 --- a/crates/ra_hir/src/ty/tests.rs +++ b/crates/ra_hir/src/ty/tests.rs | |||
@@ -4876,3 +4876,22 @@ fn main() { | |||
4876 | "### | 4876 | "### |
4877 | ); | 4877 | ); |
4878 | } | 4878 | } |
4879 | |||
4880 | #[test] | ||
4881 | fn infer_builtin_macros_column() { | ||
4882 | assert_snapshot!( | ||
4883 | infer(r#" | ||
4884 | #[rustc_builtin_macro] | ||
4885 | macro_rules! column {() => {}} | ||
4886 | |||
4887 | fn main() { | ||
4888 | let x = column!(); | ||
4889 | } | ||
4890 | "#), | ||
4891 | @r###" | ||
4892 | ![0; 2) '13': i32 | ||
4893 | [66; 92) '{ ...!(); }': () | ||
4894 | [76; 77) 'x': i32 | ||
4895 | "### | ||
4896 | ); | ||
4897 | } | ||