Joshua Nelson
d6c16e4253
Make all rustdoc functions and structs crate-private
...
This gives warnings about dead code.
2020-11-15 11:21:12 -05:00
Mazdak Farrokhzad
1ccb0b4a02
rustc -> rustc_middle part 3 (rustfmt)
2020-03-30 07:19:55 +02:00
Mazdak Farrokhzad
0cb9e36090
rustc -> rustc_middle part 2
2020-03-30 07:16:56 +02:00
Mazdak Farrokhzad
ebfd8673a7
Remove rustc_hir reexports in rustc::hir.
2020-01-05 12:49:22 +01:00
Mazdak Farrokhzad
7901c7f707
canonicalize FxHash{Map,Set} imports
2020-01-04 18:57:22 +01:00
Mazdak Farrokhzad
4ff12ce4c1
Normalize syntax::symbol imports.
2020-01-02 13:57:04 +01:00
Mark Rousskov
a06baa56b9
Format the world
2019-12-22 17:42:47 -05:00
Mark Rousskov
57d57c6784
Mutate DocContext from LibEmbargoVisitor and RustdocVisitor
...
We have &mut access, so remove the RefCell borrowing
2019-08-26 18:51:34 -04:00
Nicholas Nethercote
fb084a48e2
Pass a Symbol to check_name, emit_feature_err, and related functions.
2019-05-13 09:29:22 +10:00
Eduard-Mihai Burtescu
ff174fe09e
rustc: rename hir::def::Def to Res (short for "resolution").
2019-05-03 22:50:19 +03:00
Eduard-Mihai Burtescu
a3fcab36d2
rustc: factor most DefId-containing variants out of Def and into DefKind.
2019-05-03 22:48:27 +03:00
John Kåre Alsaker
51938c61f6
Make the rustc driver and interface demand driven
2019-03-10 04:49:45 +01:00
Hirokazu Hata
1932d7a52d
Transition librustdoc to 2018 edition
2019-02-23 16:40:07 +09:00
Mazdak Farrokhzad
f9e9c9196a
libpanic_unwind => 2018: fix ICEs.
2019-02-13 18:09:09 +01:00
Mark Rousskov
2a663555dd
Remove licenses
2018-12-25 21:08:33 -07:00
John Kåre Alsaker
ca7de869ea
Remove lifetime from Resolver
2018-12-10 06:38:27 +01:00
Alexander Regueiro
ee89c088b0
Various minor/cosmetic improvements to code
2018-12-07 23:53:34 +00:00
Oliver Scherer
ee81739dc1
Deprecate the FxHashMap() and FxHashSet() constructor function hack
2018-10-19 14:34:44 +02:00
QuietMisdreavus
c754e8240c
refactor: move access_levels into RenderInfo
2018-09-20 05:42:38 -05:00
Mark Rousskov
5aec365cb9
Store concrete crate stores where possible
2018-08-03 11:09:49 -06:00
Mark Simulacrum
19e0b7da1c
Remove is_import field
2018-06-03 11:29:44 -06:00
QuietMisdreavus
611866f3cf
cleanup
2018-01-22 15:24:27 +05:30
Manish Goregaokar
dae2e22e81
Make correct resolver available in rustdoc
2018-01-22 15:24:23 +05:30
QuietMisdreavus
76f831647a
add a rustc_resolve::Resolver to DocContext
2018-01-22 15:21:28 +05:30
Jeffrey Seyfried
1b9d0584a0
Add field is_import to def::Export.
2017-12-05 17:23:01 -08:00
Alex Crichton
43ae380191
rustc: Flag some CrateStore methods as "untracked"
...
The main use of `CrateStore` *before* the `TyCtxt` is created is during
resolution, but we want to be sure that any methods used before resolution are
not used after the `TyCtxt` is created. This commit starts moving the methods
used by resolve to all be named `{name}_untracked` where the rest of the
compiler uses just `{name}` as a query.
During this transition a number of new queries were added to account for
post-resolve usage of these methods.
2017-09-05 07:37:39 -07:00
Zack M. Davis
1b6c9605e4
use field init shorthand EVERYWHERE
...
Like #43008 (f668999 ), but _much more aggressive_.
2017-08-15 15:29:17 -07:00
Inokentiy Babushkin
9a054f2002
Fix translation of external spans.
2017-06-07 16:31:05 +02:00
Aaron Hill
63a291feba
Fix rustdoc infinitely recursing when an external crate reexports itself
...
Previously, rustdoc's LibEmbargoVisitor unconditionally visited the
child modules of an external crate. If a module re-exported its parent
via 'pub use super::*', rustdoc would re-walk the parent, leading to
infinite recursion.
This commit makes LibEmbargoVisitor store already visited modules in an
FxHashSet, ensuring that each module is only walked once.
Fixes #40936
2017-04-09 12:12:05 -04:00
Eduard Burtescu
b5c4244c6c
rustc: introduce a query system for type information in ty::maps.
2017-02-25 17:07:59 +02:00
Eduard-Mihai Burtescu
4be7786330
rustdoc: we can now assume DocContext always has a TyCtxt.
2016-11-24 01:40:56 +02:00
Eduard-Mihai Burtescu
12c5f8cb75
rustdoc: use libsyntax ast::Attribute instead of "cleaning" them.
2016-11-24 01:40:52 +02:00
Vadim Petrochenkov
bc0eabd7a7
Remove some unused methods from metadata
...
Address comments + Fix rebase
2016-10-04 23:53:51 +03:00
Vadim Petrochenkov
d19c16acfb
Fix cross-crate resolution of half-items created by export shadowing
2016-10-04 22:20:37 +03:00
Eduard Burtescu
24aef24e1a
rustc_metadata: split the Def description of a DefId from item_children.
2016-09-20 20:08:05 +03:00
Eduard Burtescu
ef4352fba6
rustc_metadata: group information into less tags.
2016-09-20 20:08:04 +03:00
Eduard Burtescu
8734aaa33e
rustc_metadata: move more RBML tags to auto-serialization.
2016-09-20 20:08:02 +03:00
Eduard Burtescu
fc363cb482
rustc_metadata: go only through rustc_serialize in astencode.
2016-09-20 20:07:54 +03:00
Vadim Petrochenkov
6792bd99fe
Support unions in rustdoc
2016-09-03 13:39:34 +03:00
mitaa
0b5b782e39
Linkify extern crates on rustdoc pages
2016-04-25 11:26:33 +02:00
mitaa
77b409a674
Reachability check cross-crate links
2016-04-18 01:56:01 +02:00
mitaa
cfad7ad947
Perform doc-reachability check for inlined impls
...
This changes the current rule that impls within `doc(hidden)` modules
aren't inlined, to only inlining impls where the implemented
trait and type are reachable in documentation.
2016-04-18 01:55:54 +02:00