Skip to content

Commit f10126c

Browse files
committed
Add Default, Display, and Hash as lang_items
1 parent 8a13ceb commit f10126c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/librustc/middle/lang_items.rs

+4
Original file line numberDiff line numberDiff line change
@@ -377,6 +377,10 @@ language_item_table! {
377377

378378
Arc, "arc", arc, Target::Struct;
379379
Rc, "rc", rc, Target::Struct;
380+
381+
DefaultTraitLangItem, "default", default_trait, Target::Trait;
382+
DisplayTraitLangItem, "display", display_trait, Target::Trait;
383+
HashTraitLangItem, "hash", hash_trait, Target::Trait;
380384
}
381385

382386
impl<'a, 'tcx, 'gcx> TyCtxt<'a, 'tcx, 'gcx> {

0 commit comments

Comments
 (0)