]> git.lizzy.rs Git - rust.git/commit
Introduce language items for `Arc` and `Rc`.
authorDavid Wood <david@davidtw.co>
Sun, 30 Sep 2018 19:19:55 +0000 (21:19 +0200)
committerDavid Wood <david@davidtw.co>
Mon, 1 Oct 2018 11:50:21 +0000 (13:50 +0200)
commitda4a12038bac647b8d07211588c21f1ca07c12e3
treee739f669e9665a433a53a16f9062e325450cff3f
parent1886d5fe1cdd1a016ecea9fc93d68b3052c528c8
Introduce language items for `Arc` and `Rc`.

This commit introduces language items for `Arc` and `Rc` so that types
can later be checked to be `Arc` or `Rc` in the NLL borrow checker. The
`lang` attribute is currently limited to `stage1` as it requires a
compiler built with knowledge of the expected language items.
src/doc/unstable-book/src/language-features/lang-items.md
src/liballoc/rc.rs
src/liballoc/sync.rs
src/librustc/middle/lang_items.rs
src/librustc/ty/mod.rs
src/librustc/ty/sty.rs