rust/src/librustdoc
bors bcda58f491 Auto merge of #31710 - eddyb:reify, r=nikomatsakis
Distinguish fn item types to allow reification from nothing to fn pointers.

The first commit is a rebase of #26284, except for files that have moved since.

This is a [breaking-change], due to:
* each FFI function has a distinct type, like all other functions currently do
* all generic parameters on functions are recorded in their item types, e.g.:
`size_of::<u8>` & `size_of::<i8>`'s types differ despite their identical signature.
* function items are zero-sized, which will stop transmutes from working on them

The first two cases are handled in most cases with the new coerce-unify logic,
which will combine incompatible function item types into function pointers,
at the outer-most level of if-else chains, match arms and array literals.

The last case is specially handled during type-checking such that transmutes
from a function item type to a pointer or integer type will continue to work for
another release cycle, but are being linted against. To get rid of warnings and
ensure your code will continue to compile, cast to a pointer before transmuting.
2016-03-09 20:16:20 -08:00
..
clean Track fn type and lifetime parameters in TyFnDef. 2016-03-09 16:45:28 +02:00
html Auto merge of #31967 - mitaa:rdoc-refactor, r=alexcrichton 2016-03-06 09:16:32 +00:00
build.rs bootstrap: Add directives to not double-link libs 2016-02-11 11:12:32 -08:00
Cargo.toml bootstrap: Add a bunch of Cargo.toml files 2016-02-11 11:12:32 -08:00
core.rs Auto merge of #31631 - jonas-schievink:agoraphobia, r=nrc 2016-03-09 05:25:48 -08:00
doctree.rs Abstract away differences between Vec and ptr::P in HIR 2015-12-18 00:52:56 +03:00
externalfiles.rs Add generic conversion traits 2015-03-23 15:01:45 -07:00
flock.rs Rename sunos to solaris 2016-01-31 19:01:30 +03:00
fold.rs This doesn't seem necessary? 2016-03-04 19:40:01 +01:00
lib.rs Auto merge of #31631 - jonas-schievink:agoraphobia, r=nrc 2016-03-09 05:25:48 -08:00
markdown.rs Use --cfg when running doctests 2015-12-15 18:03:55 +09:00
passes.rs Auto merge of #32055 - mitaa:rdoc-strip-priv-imports, r=alexcrichton 2016-03-06 17:08:36 +00:00
plugins.rs std: Stabilize library APIs for 1.5 2015-10-25 09:36:32 -07:00
test.rs Auto merge of #31631 - jonas-schievink:agoraphobia, r=nrc 2016-03-09 05:25:48 -08:00
visit_ast.rs Simplify if let/match expressions 2016-03-04 19:07:35 +01:00