]> git.lizzy.rs Git - rust.git/commit
Auto merge of #72559 - Aaron1011:feature/assoc-lang-items, r=oli-obk
authorbors <bors@rust-lang.org>
Thu, 25 Jun 2020 08:58:37 +0000 (08:58 +0000)
committerbors <bors@rust-lang.org>
Thu, 25 Jun 2020 08:58:37 +0000 (08:58 +0000)
commit229e5b2640fc5715e77607a989748be588d983f2
tree0326072a2809d45fef37746a84b74e8296ab0671
parent67100f61e62a86f2bf9e38552ee138e231eddc74
parenta13d4678feadf03e247ab6aae8279bfab9cdaa6d
Auto merge of #72559 - Aaron1011:feature/assoc-lang-items, r=oli-obk

Implement associated lang items

Fixes #70718

This commit allows making associated items (e.g. associated functions
and types) into lang items via the `#[lang]` attribute. This allows such
items to be accessed directly, rather than by iterating over the parent
item's associated items.

I've added `FnOnce::Output` as a lang item, and updated one old usage to
use the new lang item. The remaining uses can be updated separately.