Skip to content

Commit c6856d9

Browse files
committed
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.
2 parents 80b352c + 0187aec commit c6856d9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/librustc/middle/lang_items.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ use hir;
3737

3838
// The actual lang items defined come at the end of this file in one handy table.
3939
// So you probably just want to nip down to the end.
40-
macro_rules! lets_do_this {
40+
macro_rules! language_item_table {
4141
(
4242
$( $variant:ident, $name:expr, $method:ident; )*
4343
) => {
@@ -269,7 +269,7 @@ pub fn collect_language_items(session: &Session,
269269
}
270270
}
271271

272-
lets_do_this! {
272+
language_item_table! {
273273
// Variant name, Name, Method name;
274274
CharImplItem, "char", char_impl;
275275
StrImplItem, "str", str_impl;

0 commit comments

Comments
 (0)