diff options
| author | bors <bors@rust-lang.org> | 2017-08-01 08:23:41 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2017-08-01 08:23:41 +0000 |
| commit | 0bf018c58815eed79a279ee6fa98992b8a3639ef (patch) | |
| tree | 856cffd54365d1a3aed113f76679dc6f38de7969 /src/rustllvm/RustWrapper.cpp | |
| parent | 6e8452ee4f66ef8b3b1f7a33d873e102bf8603d0 (diff) | |
| parent | a2d55146938972d7eecc19f9315f86d7ecb8f94b (diff) | |
| download | rust-0bf018c58815eed79a279ee6fa98992b8a3639ef.tar.gz rust-0bf018c58815eed79a279ee6fa98992b8a3639ef.zip | |
Auto merge of #43560 - QuietMisdreavus:ref-docs, r=steveklabnik
add docs for references as a primitive Just like #43529 did for function pointers, here is a new primitive page for references. This PR will pull in impls on references if it's a reference to a generic type parameter. Initially i was only able to pull in impls that were re-exported from another crate; crate-local impls got a different representation in the AST, and i had to change how types were resolved when cleaning it. (This is the change at the bottom of `librustdoc/clean/mod.rs`, in `resolve_type`.) I'm unsure the full ramifications of the change, but from what it looks like, it shouldn't impact anything major. Likewise, references to generic type parameters also get the `&'a [mut]` linked to the new page. cc @rust-lang/docs: Is this sufficient information? The listing of trait impls kinda feels redundant (especially if we can get the automated impl listing sorted again), but i still think it's useful to point out that you can use these in a generic context. Fixes #15654
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
