]> git.lizzy.rs Git - rust.git/commit - src/librustc_llvm/build.rs
Auto merge of #73645 - poliorcetics:ref-keyword, r=jyn514
authorbors <bors@rust-lang.org>
Fri, 24 Jul 2020 23:55:16 +0000 (23:55 +0000)
committerbors <bors@rust-lang.org>
Fri, 24 Jul 2020 23:55:16 +0000 (23:55 +0000)
commit1e55f584b3bfafc335a1a819ddd1ee6f97b7a59e
tree4d625fe50bc2c509776b244eddaddf274f544e4b
parent5ef299eb9805b4c86b227b718b39084e8bf24454
parent79f052bd4fa7f695a96515c44c5a72e75cf782ee
Auto merge of #73645 - poliorcetics:ref-keyword, r=jyn514

Document the ref keyword

Partial fix for #34601.

This documents the `ref` keyword with two examples, one failing to compile because the `ref` keyword is missing, and the same example fixed with the keyword inserted in the correct place.

It also explains (very *very* rapidly) the differences between `&` and `ref`.

I put a link to the best place I could find in the Reference but there may be something better that I didn't find.
src/libstd/keyword_docs.rs