diff options
| author | Manish Goregaokar <manishsmail@gmail.com> | 2016-06-25 14:16:21 +0530 |
|---|---|---|
| committer | Manish Goregaokar <manishsmail@gmail.com> | 2016-06-25 18:16:40 +0530 |
| commit | c6856d964f1ec65c22c3ff96e1b4ccb69d1b0271 (patch) | |
| tree | eb192b31a4f4f02bdefcbddbd0ade9d92703c5d7 | |
| parent | 80b352c89272a9ab48b32e9700da2f35246af820 (diff) | |
| parent | 0187aec8e0f7cb148c5360ab5d3953ee86394061 (diff) | |
| download | rust-c6856d964f1ec65c22c3ff96e1b4ccb69d1b0271.tar.gz rust-c6856d964f1ec65c22c3ff96e1b4ccb69d1b0271.zip | |
Rollup merge of #34445 - pyjarrett:lang_item_table_macro_rename, r=jseyfried
Renames "lets_do_this" macro more appropriately. The macro gets used to create a mapping of identifiers to names and their associated functions. Since it creates a table of language items, let's rename it in a similar manner to how vec! creates a vec.
| -rw-r--r-- | src/librustc/middle/lang_items.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustc/middle/lang_items.rs b/src/librustc/middle/lang_items.rs index 853477ac97c..960305e1048 100644 --- a/src/librustc/middle/lang_items.rs +++ b/src/librustc/middle/lang_items.rs @@ -37,7 +37,7 @@ use hir; // The actual lang items defined come at the end of this file in one handy table. // So you probably just want to nip down to the end. -macro_rules! lets_do_this { +macro_rules! language_item_table { ( $( $variant:ident, $name:expr, $method:ident; )* ) => { @@ -269,7 +269,7 @@ pub fn collect_language_items(session: &Session, } } -lets_do_this! { +language_item_table! { // Variant name, Name, Method name; CharImplItem, "char", char_impl; StrImplItem, "str", str_impl; |
