rust/src/librustdoc
bors 37ba1071c6 Auto merge of #54671 - petrochenkov:extpre2015, r=nikomatsakis
resolve: Scale back hard-coded extern prelude additions on 2015 edition

https://github.com/rust-lang/rust/pull/54404 stabilized `feature(extern_prelude)` on 2015 edition, including the hard-coded parts not passed with `--extern`.
First of all, I'd want to confirm that this is intended stabilization, rather than a part of the "extended beta" scheme that's going to be reverted before releasing stable.
(EDIT: to clarify - this is a question, I'm \*asking\* for confirmation, rather than give it.)

Second, on 2015 edition extern prelude is not so fundamentally tied to imports and is a mere convenience, so this PR scales them back to the uncontroversial subset.
The "uncontroversial subset" means that if libcore is injected it brings `core` into prelude, if libstd is injected it brings `std` and `core` into prelude.
On 2015 edition this can be implemented through the library prelude (rather than hard-coding in the compiler) right now, I'll do it in a follow-up PR.

UPDATE: The change is done for both 2015 and 2018 editions now as discussed below.

Closes https://github.com/rust-lang/rust/issues/53166
2018-10-17 01:59:28 +00:00
..
clean Also adjust rustdoc to the principal changes 2018-10-13 19:41:27 +02:00
html Rollup merge of #54869 - GuillaumeGomez:fix-mobile-docs, r=QuietMisdreavus 2018-10-12 22:04:05 +08:00
passes handle proc-macros as macros instead of functions 2018-09-25 14:56:43 -05:00
Cargo.toml Update minifier version 2018-10-11 21:37:04 +02:00
core.rs Copy extern prelude from resolver to global context 2018-10-13 21:35:19 +03:00
doctree.rs add derive macros' helper attributes to doc output 2018-09-26 13:40:08 -05:00
externalfiles.rs Remove global derive_id and reset_ids functions 2018-07-31 17:55:12 -06:00
fold.rs shuffle ownership of external_traits 2018-09-20 05:54:26 -05:00
lib.rs Bump to 1.31.0 and bootstrap from 1.30 beta 2018-09-27 20:52:53 -07:00
markdown.rs mv (mod) codemap source_map 2018-08-19 23:01:00 +02:00
README.md Move librustdoc readme to rustc guide 2018-03-12 20:09:50 -05:00
test.rs Rollup merge of #54350 - Munksgaard:support-edition-in-doc-test, r=steveklabnik 2018-09-22 09:56:30 +02:00
theme.rs Auto merge of #53599 - matthiaskrgr:split_str__to__split_char, r=frewsxcv 2018-09-02 15:27:56 +00:00
visit_ast.rs add derive macros' helper attributes to doc output 2018-09-26 13:40:08 -05:00
visit_lib.rs refactor: move access_levels into RenderInfo 2018-09-20 05:42:38 -05:00

For more information about how librustdoc works, see the rustc guide.