Jonas Schievink
5adf003b99
Use deterministic FnvHash{Map,Set}
in rustdoc
2016-08-27 15:20:45 +02:00
Eduard Burtescu
7a8d4822d8
rustc: use Vec<Kind> in Substs, where Kind is a &TyS | &Region tagged pointer.
2016-08-27 01:15:07 +03:00
Eduard Burtescu
dffd238f8b
rustc: pass ty::Region behind an interned 'tcx reference.
2016-08-27 01:15:06 +03:00
Eduard Burtescu
5222fa58a1
rustc: use accessors for Substs::{types,regions}.
2016-08-27 00:25:04 +03:00
Corey Farwell
42e8ac87eb
Implement From<ast::FloatTy>
for PrimitiveType
.
2016-08-24 23:27:25 -07:00
Corey Farwell
168cfea8af
Implement From<ast::UintTy>
for PrimitiveType
.
2016-08-24 23:27:25 -07:00
Corey Farwell
8a6f7a5ced
Implement From<ast::IntTy>
for PrimitiveType
.
2016-08-24 23:27:25 -07:00
Corey Farwell
5c849f4a50
Remove unnecessary 'Primitive' prefix on PrimitiveType
enum variants.
2016-08-24 23:27:25 -07:00
Corey Farwell
9dde563990
Stop reexporting PrimitiveType
enum in librustdoc.
2016-08-24 23:27:24 -07:00
Corey Farwell
30397aee0d
Migrate ItemType::from_item to convert::From.
2016-08-24 23:25:26 -07:00
Corey Farwell
28ecfb691d
Move ItemEnum → Generics logic into method on ItemEnum.
2016-08-24 23:25:26 -07:00
Nick Cameron
da1f7731f6
rustdoc: remove the !
from macro URLs and titles
2016-08-18 15:40:56 +12:00
Eduard Burtescu
9453d9b8ad
rustc: remove ParamSpace from Substs.
2016-08-17 06:32:00 +03:00
Eduard Burtescu
6f5e455c2d
rustc: split GenericPredicates of a method from its parent predicates.
2016-08-17 05:50:57 +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
c1cfd58cbd
rustc: remove SelfSpace from ParamSpace.
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
4b25f08512
rustc: move trait objects from TraitRef to ExistentialTraitRef.
2016-08-17 05:50:57 +03:00
Eduard Burtescu
77dc61b5c6
rustc: force all raw accesses to VecPerParamSpace through as_full_slice.
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
Andrew Cann
fadabe08f5
Rename empty/bang to never
...
Split Ty::is_empty method into is_never and is_uninhabited
2016-08-13 21:37:09 +08:00
Andrew Cann
ed02344fbc
Remove obsolete divergence related stuff
...
Replace FnOutput with Ty
Replace FnConverging(ty) with ty
Purge FnDiverging, FunctionRetTy::NoReturn and FunctionRetTy::None
2016-08-13 21:37:09 +08:00
Andrew Cann
9f9f8567eb
Fix rustdoc after rebase
2016-08-13 21:37:09 +08:00
Eduard Burtescu
ef11d4e3c7
rustc: add TyAnon (impl Trait) to the typesystem.
2016-08-12 06:43:34 +03:00
Eduard Burtescu
f0baec691f
syntax: add anonymized type syntax, i.e. impl TraitA+TraitB.
2016-08-12 06:43:34 +03:00
petrochenkov
08f0f7c54a
Substitute private type aliases in rustdoc
2016-08-11 00:32:07 +03:00
Michael Woerister
d5a5149617
Move caching of HIR-inlining into CStore in order to avoid duplicating inlined HIR.
2016-08-01 04:09:12 -04:00
cgswords
5553901146
Adressed PR comments.
2016-07-25 14:27:10 -07:00
cgswords
a5e5ea1646
General MetaItem encapsulation rewrites.
2016-07-25 14:27:10 -07:00
bors
3dbbe2f716
Auto merge of #34684 - oli-obk:eval_rustdoc_array_len, r=alexcrichton
...
evaluate the array length of fixed size array types in rustdoc
mitgates #34579
to fix it we'd need an expression simplifier.
r? @steveklabnik
cc @Osspial
2016-07-13 16:27:30 -07:00
Oliver Schneider
9d33ce58b1
evaluate the array length of fixed size array types in rustdoc
2016-07-13 10:35:58 +02:00
bors
7ad125c4eb
Auto merge of #34686 - alexcrichton:new-stage, r=luqmana
...
rustc: Update stage0 to beta-2016-07-06
Hot off the presses, let's update our stage0 compiler!
2016-07-11 11:29:52 -07:00
Vadim Petrochenkov
2859f8bf39
Add tests + Fix rustdoc regression + Fix rebase
2016-07-08 12:42:57 +03:00
Vadim Petrochenkov
9c05fb29d2
Merge PatKind::QPath into PatKind::Path in HIR
2016-07-08 12:42:57 +03:00
Vadim Petrochenkov
49ea3d48a2
Remove unnecessary accessor function VariantDefData::kind
2016-07-08 12:42: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
bors
d1e5e3ab43
Auto merge of #34587 - ollie27:rustdoc_prim_titles, r=steveklabnik
...
rustdoc: Remove paths from primitive page <title> tags
Currently primitive pages have a title like "std::u8 - Rust" this changes
it to "u8 - Rust" as "std::u8" is the name of a module not a primitive
type.
2016-07-05 20:16:40 -07:00
Oliver Middleton
76f22f4de6
rustdoc: Remove paths from primitive page <title> tags
...
Currently primitive pages have a title like "std::u8 - Rust" this changes
it to "u8 - Rust" as "std::u8" is the name of a module not a primitive
type.
2016-06-30 23:22:16 +01: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
Jonathan Turner
2829fbc638
Address comments and fix travis warning
2016-06-23 08:07:35 -04:00
Jonathan Turner
6ae3502134
Move errors from libsyntax to its own crate
2016-06-23 08:07:35 -04: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
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
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
Eduard Burtescu
bcec7a5848
rustc: add ReErased to be used by trait selection, MIR and trans.
2016-06-05 13:58:51 +03:00
Niko Matsakis
08034eb1a5
add Issue32330
warning marker to bound regions
...
This indicates whether this `BoundRegion` will change from late to early
bound when issue 32330 is fixed. It also indicates the function on
which the lifetime is declared.
2016-05-31 19:41:25 -04:00
Vadim Petrochenkov
216f5fba04
Separate bindings from other patterns in HIR
2016-05-28 00:54:29 +03:00