Eduard Burtescu
3f9eba1c7c
rustc: clean up lookup_item_type and remove TypeScheme.
2016-11-10 16:49:53 +02:00
Eduard Burtescu
de0ffadb67
rustc: unify and simplify managing associated items.
2016-11-10 02:06:34 +02:00
Nicholas Nethercote
00e48affde
Replace FnvHasher use with FxHasher.
...
This speeds up compilation by 3--6% across most of rustc-benchmarks.
2016-11-08 15:14:59 +11:00
Jonathan Turner
4c100260e0
Rollup merge of #36966 - ollie27:rustdoc_mut_ptr_impl, r=alexcrichton
...
rustdoc: Fix missing *mut T impl
`impl<T> *mut T` is currently missing from
https://doc.rust-lang.org/nightly/std/primitive.pointer.html and this adds
it back.
2016-10-06 08:35:43 -07:00
Vadim Petrochenkov
bd291ce21a
Turn some impossible definitions into ICEs
2016-10-04 22:25:25 +03:00
Vadim Petrochenkov
75d6522b9a
Eliminate ty::VariantKind in favor of def::CtorKind
2016-10-04 22:22:36 +03:00
Vadim Petrochenkov
d19c16acfb
Fix cross-crate resolution of half-items created by export shadowing
2016-10-04 22:20:37 +03:00
Oliver Middleton
cd7a04cadc
rustdoc: Fix missing *mut T impl
...
`impl<T> *mut T` is currently missing from
https://doc.rust-lang.org/nightly/std/primitive.pointer.html and this adds
it back.
2016-10-04 18:39:28 +01:00
Corey Farwell
a400cccd54
Cleanup return statements.
2016-10-02 21:58:20 -04:00
Corey Farwell
c3bc905e5f
Remove redundant 'Type' in variant names, stop reexporting.
2016-10-02 21:58:18 -04: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
89736e8671
rustc: remove ImplOrTraitItemId and TraitDef's associated_type_names.
2016-09-20 20:08:03 +03:00
Eduard Burtescu
8734aaa33e
rustc_metadata: move more RBML tags to auto-serialization.
2016-09-20 20:08:02 +03:00
Vadim Petrochenkov
4b6c4c08df
Remove some ancient code providing special support for newtypes
2016-09-13 23:33:50 +03:00
Vadim Petrochenkov
f2b672d556
Refactor TyStruct/TyEnum/TyUnion into TyAdt
2016-09-08 22:17:53 +03:00
Vadim Petrochenkov
e05e74ac83
Replace _, _ with ..
2016-09-04 12:30:33 +03:00
Vadim Petrochenkov
c2ca1530db
Fix rebase + address comments
2016-09-03 13:39:34 +03:00
Vadim Petrochenkov
6792bd99fe
Support unions in rustdoc
2016-09-03 13:39:34 +03:00
Jonas Schievink
5adf003b99
Use deterministic FnvHash{Map,Set} in rustdoc
2016-08-27 15:20:45 +02:00
Eduard Burtescu
9453d9b8ad
rustc: remove ParamSpace from Substs.
2016-08-17 06:32:00 +03:00
Eduard Burtescu
3e74e5bffe
rustc: split Generics of a method from its parent Generics.
2016-08-17 05:50:57 +03:00
Eduard Burtescu
4158673ad7
rustc: reduce Substs and Generics to a simple immutable API.
2016-08-17 05:50:57 +03:00
Eduard Burtescu
e314636b86
rustc: use Vec instead of VecPerParamSpace for ty::GenericPredicates.
2016-08-17 05:50:57 +03:00
Alex Crichton
0c137ab0a6
rustc: Update stage0 to beta-2016-07-06
...
Hot off the presses, let's update our stage0 compiler!
2016-07-06 09:29:15 -07:00
Jeffrey Seyfried
2fda7d4a51
Rollup merge of #34105 - ollie27:rustdoc_derived, r=alexcrichton
...
rustdoc: Remove Derived Implementations title
As far as I know whether a trait was derived or not does not change the
public API so there is no need to include this information in the docs.
This title currently just adds an extra divide in the list of trait
implementations which I don't think needs to be there.
2016-06-29 00:33:30 +00:00
Oliver Middleton
ebfdd110c3
rustdoc: Fix a couple of issues with src links to external crates
...
- src links/redirects to extern fn from another crate had an extra '/'.
- src links to `pub use` of a crate module had an extra '/'.
- src links to renamed reexports from another crate used the new name
for the link but should use the original name.
2016-06-20 22:22:17 +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
Ariel Ben-Yehuda
b2100cc7b5
fix damage in librustc
2016-06-09 00:38:38 +03:00
Oliver Middleton
cc18104034
rustdoc: Remove Derived Implementations title
...
As far as I know whether a trait was derived or not does not change the
public API so there is no need to include this information in the docs.
This title currently just adds an extra divide in the list of trait
implementations which I don't think needs to be there.
2016-06-05 23:50:18 +01:00
Vadim Petrochenkov
766f9b5a2f
Remove ExplicitSelf from HIR
2016-05-14 13:26:40 +03:00
Eduard Burtescu
76affa5d6f
rustc: Split 'tcx into 'gcx and 'tcx for InferCtxt and its users.
2016-05-11 04:14:58 +03:00
Eduard Burtescu
513d392f7e
rustc: Replace &'a TyCtxt<'tcx> with a TyCtxt<'a, 'tcx> wrapper.
2016-05-11 04:14:58 +03:00
Eduard Burtescu
f8ea24edc8
rustc: Avoid free functions taking &TyCtxt and &InferCtxt.
2016-05-11 04:14:58 +03:00
bors
8e414e0e3f
Auto merge of #33091 - sanxiyn:unused-trait-import-3, r=nrc
...
Warn unused trait imports, rebased
Rebase of #30021 .
Fix #25730 .
2016-05-08 04:50:27 -07:00
Georg Brandl
24117f3c58
rustdoc: fix inserting source code spans for constant values
...
This will go wrong when the constants partially result from macro expansion.
Instead, use the expressions and pretty-print them as Rust code.
Fixes : #33302
2016-05-03 13:09:42 +02:00
Seo Sanghyeon
7ad1900e1c
Remove unused trait imports flagged by lint
2016-05-03 18:48:34 +09:00
mitaa
dca7f0162c
Remove, now unnecessary, workaround
...
This used to be done to avoid inlining impls referencing private items,
but is now unnecessary since we actually check that impls do not
reference non-doc-reachable items.
2016-04-24 08:17:14 +02:00
mitaa
cc615b2072
Inline impls on traits too
2016-04-24 08:17:14 +02:00
bors
478a33dabc
Auto merge of #33002 - mitaa:rdoc-cross-impls, r=alexcrichton
...
rustdoc: refine cross-crate impl inlining
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.
fixes #14586
fixes #31948
.. and also applies the reachability checking to cross-crate links.
fixes #28480
r? @alexcrichton
2016-04-19 05:00:10 -07: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
Jeffrey Seyfried
3bf9fc0c2a
Fix fallout in rustdoc
2016-04-14 04:53:33 +00: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
e8a8dfb056
rustc: retire hir::map's paths.
2016-04-06 13:51:55 +03:00
Eduard Burtescu
ffca6c3e15
rustc: move middle::{def,def_id,pat_util} to hir.
2016-04-06 09:14:21 +03:00
Eduard Burtescu
8b0937293b
rustc: move rustc_front to rustc::hir.
2016-04-06 09:01:55 +03:00
Oliver Schneider
3eac64747f
move const_eval and check_match out of librustc
2016-03-30 13:43:36 +02:00
bors
cad964a626
Auto merge of #32461 - mitaa:rdoc-anchors, r=alexcrichton
...
rustdoc: Correct anchor for links to associated trait items
fixes #28478
r? @alexcrichton
2016-03-28 18:34:50 -07:00