diff options
| author | Austin Bonander <austin.bonander@gmail.com> | 2018-02-24 19:11:06 -0800 |
|---|---|---|
| committer | Austin Bonander <austin.bonander@gmail.com> | 2018-03-07 16:52:28 -0800 |
| commit | 69035f20b92870a7ad5dbc22c65aee971d8f8698 (patch) | |
| tree | a9cf77112ebc776b84824a270c8407b739b311d9 /src/librustc_plugin | |
| parent | 4a7206323b70f6b146e54ae41652efbb61112024 (diff) | |
| download | rust-69035f20b92870a7ad5dbc22c65aee971d8f8698.tar.gz rust-69035f20b92870a7ad5dbc22c65aee971d8f8698.zip | |
check stability of macro invocations
Diffstat (limited to 'src/librustc_plugin')
| -rw-r--r-- | src/librustc_plugin/registry.rs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/librustc_plugin/registry.rs b/src/librustc_plugin/registry.rs index 3f74093241d..ebfd8785a0a 100644 --- a/src/librustc_plugin/registry.rs +++ b/src/librustc_plugin/registry.rs @@ -106,14 +106,16 @@ impl<'a> Registry<'a> { expander, def_info: _, allow_internal_unstable, - allow_internal_unsafe + allow_internal_unsafe, + unstable_feature } => { let nid = ast::CRATE_NODE_ID; NormalTT { expander, def_info: Some((nid, self.krate_span)), allow_internal_unstable, - allow_internal_unsafe + allow_internal_unsafe, + unstable_feature } } IdentTT(ext, _, allow_internal_unstable) => { @@ -149,6 +151,7 @@ impl<'a> Registry<'a> { def_info: None, allow_internal_unstable: false, allow_internal_unsafe: false, + unstable_feature: None, }); } |
