aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir/src/lib.rs
diff options
context:
space:
mode:
authorbors[bot] <bors[bot]@users.noreply.github.com>2019-05-27 08:38:21 +0100
committerbors[bot] <bors[bot]@users.noreply.github.com>2019-05-27 08:38:21 +0100
commitbdd779aa44455d86a9975800ab6cd70057fab4a3 (patch)
tree6c39bd0ad6ce7ab52cfcf19ad6b5c8f34c68420f /crates/ra_hir/src/lib.rs
parentce694ae11854a806031db98c51c068253f927519 (diff)
parent6d68d60d32222af9fda1a6a89911a2c25f4fe402 (diff)
Merge #1277
1277: Improve macro item resolution r=matklad a=edwin0cheng ~This PR add a new namespace `Macros` in `per_ns.rs` to allow following use case:~ This PR improve macro item resolution to allow following use case: ```rust //- /main.rs use foo::bar; bar!(); //- /lib.rs (crate foo) #[macro_export] macro_rules! bar{ () => { struct Foo { field: u32 } } ``` Co-authored-by: Edwin Cheng <[email protected]>
Diffstat (limited to 'crates/ra_hir/src/lib.rs')
-rw-r--r--crates/ra_hir/src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_hir/src/lib.rs b/crates/ra_hir/src/lib.rs
index fe2d4adee..cb09c60f8 100644
--- a/crates/ra_hir/src/lib.rs
+++ b/crates/ra_hir/src/lib.rs
@@ -80,5 +80,5 @@ pub use self::code_model::{
80 Function, FnSignature, 80 Function, FnSignature,
81 StructField, FieldSource, 81 StructField, FieldSource,
82 Static, Const, ConstSignature, 82 Static, Const, ConstSignature,
83 Trait, TypeAlias, Container 83 Trait, TypeAlias, MacroDef, Container
84}; 84};