Guillaume Gomez
890e3a7a1a
Rollup merge of #34479 - ollie27:rustdoc_renamed_reexport_list, r=GuillaumeGomez
...
rustdoc: Fix inlined renamed reexports in import lists
Fixes #34473
2016-06-28 16:05:15 +02:00
Oliver Middleton
ec7da3dbd7
rustdoc: Fix inlined renamed reexports in import lists
2016-06-26 03:08:10 +01:00
Jonathan Turner
6ae3502134
Move errors from libsyntax to its own crate
2016-06-23 08:07:35 -04:00
bors
2940eb54bd
Auto merge of #34232 - ollie27:rustdoc_inline, r=alexcrichton
...
rustdoc: Don't inline #[doc(hidden)] pub use
Currently if a `#[doc(hidden)] pub use` item is inlined the `hidden`
attribute is ignored so the item can appear in the docs. By never inlining
such imports, they can be stripped.
An example in `std` is [`__OsLocalKeyInner`](https://doc.rust-lang.org/nightly/std/thread/struct.__OsLocalKeyInner.html ) which clearly should not be documented.
2016-06-14 05:04:38 -07:00
Oliver Middleton
a7c467418f
rustdoc: Don't inline #[doc(hidden)] pub use
...
Currently if a `#[doc(hidden)] pub use` item is inlined the `hidden`
attribute is ignored so the item can appear in the docs. By never inlining
such imports, they can be stripped.
2016-06-11 23:00:42 +01:00
Vadim Petrochenkov
ee4e55398b
Introduce TyCtxt::expect_def/expect_resolution helpers and use them where possible
2016-06-10 01:03:54 +03:00
Eduard Burtescu
f8ea24edc8
rustc: Avoid free functions taking &TyCtxt and &InferCtxt.
2016-05-11 04:14:58 +03:00
mitaa
0b5b782e39
Linkify extern crates on rustdoc pages
2016-04-25 11:26:33 +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
mitaa
ea83349c9f
Retire rustdocs ANALYSISKEY
...
The thread-local isn't needed and consists of mostly empty fields which
were just used to move the data into `html::render::CACHE_KEY`.
2016-04-13 19:39:17 +02:00
Jeffrey Seyfried
bb66d91c98
Make hir::Visibility
non-copyable and add ty::Visibility
2016-04-07 04:31:45 +00:00
Eduard Burtescu
8b0937293b
rustc: move rustc_front to rustc::hir.
2016-04-06 09:01:55 +03:00
mitaa
4c71347e94
Consider doc(no_inline)
in crate-local inlining
2016-03-22 21:11:00 +01:00
mitaa
a20e6bb162
Consider doc(hidden)
for crate-local inlining
2016-03-10 03:29:46 +01:00
mitaa
ae7fca1e1f
Check for doc(inline)
instead of .*(inline)
2016-03-09 02:05:39 +01:00
mitaa
8f6e09a956
Simplify if let
/match
expressions
2016-03-04 19:07:35 +01:00
Vadim Petrochenkov
6c87b19158
Abstract away differences between Vec and ptr::P in HIR
2015-12-18 00:52:56 +03:00
Vadim Petrochenkov
67a978411a
Support #[deprecated]
in rustdoc
2015-12-12 23:01:27 +03:00
Vadim Petrochenkov
e3ed7b0501
Implement #[deprecated]
attribute (RFC 1270)
2015-12-12 19:39:37 +03:00
Jonas Schievink
ce97479a15
rustdoc: only show macro arm's lhs
2015-11-26 19:14:36 +01:00
Vadim Petrochenkov
c1ad5af4a6
Changes to data produced by privacy pass
2015-11-19 14:16:35 +03:00
Niko Matsakis
e4ff9f71db
Port a bunch of code new-visitor; all of these ports were
...
straightforward uses of `visit_all_items`. In some cases I had to remove
empty `visit_item` calls that were just to suppress visiting nested
items.
2015-11-18 19:22:18 -05:00
Vadim Petrochenkov
e8ddbba2ed
syntax/rustc_front: Simplify VariantData::fields
...
And use VariantData instead of P<VariantData> in Item_ and Variant_
2015-10-25 18:33:51 +03:00
Vadim Petrochenkov
46750d0409
Merge VariantData and VariantData_
2015-10-13 15:19:27 +03:00
Vadim Petrochenkov
40aa09e4c9
Merge struct fields and struct kind
2015-10-13 15:19:25 +03:00
Vadim Petrochenkov
30af54dede
Dict -> Struct, StructDef -> VariantData, def -> data
2015-10-13 15:19:24 +03:00
Vadim Petrochenkov
877c35e8a2
Remove now redundant NodeId from Variant
2015-10-13 15:19:18 +03:00
Vadim Petrochenkov
2314ab29c2
Unify structures and enum variants in HIR
2015-10-13 15:19:16 +03:00
Niko Matsakis
d7b0eb0f39
build up a set of node-ids that we can construct def-ids from
2015-10-01 10:42:37 -04:00
Niko Matsakis
5600c6282e
move direct accesses of node
to go through as_local_node_id
, unless
...
they are being used as an opaque "position identifier"
2015-10-01 10:37:19 -04:00
Niko Matsakis
9ff4f57cd0
move job of creating local-def-ids to ast-map (with a few stragglers)
2015-10-01 10:28:28 -04:00
Vadim Petrochenkov
a636a83caa
Use Names in path fragments and MacroDef
2015-09-22 19:57:43 +03:00
Vadim Petrochenkov
a4af958786
Use Names in HIR Items
2015-09-22 19:53:52 +03:00
Simonas Kazlauskas
f5a99ae7fb
Remove Visibility field from enum variants
...
Followup on #28440
2015-09-17 10:02:59 +03:00
Nick Cameron
e9f1b06329
Use ast attributes every where (remove HIR attributes).
...
This could be a [breaking-change] if your lint or syntax extension (is that even possible?) uses HIR attributes or literals.
2015-09-16 10:57:06 +12:00
Nick Cameron
facdf2ebb1
Add an intital HIR and lowering step
2015-09-03 10:02:36 +12:00
Niko Matsakis
e91bef2e05
fallout from moving def-id
2015-08-24 05:35:34 -04:00
Eduard Burtescu
bc383f6294
rustc: enforce stack discipline on ty::ctxt.
2015-06-19 01:18:42 +03:00
Eduard Burtescu
76eaed44d9
syntax: move ast_map to librustc.
2015-06-10 02:40:45 +03:00
Ariel Ben-Yehuda
c7711002bb
Make caching in stability work. This improves stability check performance
...
by 90%.
2015-05-26 11:38:56 +03:00
Niko Matsakis
df93deab10
Make various fixes:
...
- add feature gate
- add basic tests
- adjust parser to eliminate conflict between `const fn` and associated
constants
- allow `const fn` in traits/trait-impls, but forbid later in type check
- correct some merge conflicts
2015-05-21 11:47:30 -04:00
Eduard Burtescu
af3795721c
syntax: parse const fn
for free functions and inherent methods.
2015-05-21 11:47:30 -04:00
Alex Crichton
8fb31f75c9
rustdoc: Fix cross-crate macro source links
...
The source filename for cross crate macros isn't quite right so the normal
generated links are invalid.
Closes #21311
2015-04-16 09:44:33 -07:00
Tamir Duberstein
29ac04402d
Positive case of len()
-> is_empty()
...
`s/(?<!\{ self)(?<=\.)len\(\) == 0/is_empty()/g`
2015-04-14 20:26:03 -07:00
Alex Crichton
2b9076ee19
rustdoc: Encode ABI in all methods
...
This commit ensures that the ABI of functions is propagated all the way through
to the documentation.
Closes #22038
2015-04-07 17:54:34 -07:00
Alex Crichton
0f3183f42b
rustdoc: Don't duplicate inlined impl blocks
...
Closes #21474
2015-04-07 17:54:34 -07:00
Alex Crichton
eb2f1d925f
rustc: Add support for extern crate foo as bar
...
The compiler will now issue a warning for crates that have syntax of the form
`extern crate "foo" as bar`, but it will still continue to accept this syntax.
Additionally, the string `foo-bar` will match the crate name `foo_bar` to assist
in the transition period as well.
This patch will land hopefully in tandem with a Cargo patch that will start
translating all crate names to have underscores instead of hyphens.
cc #23533
2015-03-24 14:55:15 -07:00
Niko Matsakis
8e58af4004
Fallout in stdlib, rustdoc, rustc, etc. For most maps, converted uses of
...
`[]` on maps to `get` in rustc, since stage0 and stage1+ disagree about
how to use `[]`.
2015-03-23 16:55:45 -04:00
Alex Crichton
4e25765aa2
rustdoc: Fix ICE with cross-crate default impls
...
This adds a special code path for impls which are listed as default impls to
ensure that they're loaded correctly.
2015-03-12 21:01:49 -07:00
Eduard Burtescu
5a6a9ed792
rustc: combine partial_def_map and last_private_map into def_map.
2015-02-24 14:16:02 +02:00