varkor
04fa5d3adb
Remove Ty prefix from Ty{Foreign|Param}
2018-08-22 16:07:55 +01:00
varkor
6f637da50c
Remove Ty prefix from Ty{Adt|Array|Slice|RawPtr|Ref|FnDef|FnPtr|Dynamic|Closure|Generator|GeneratorWitness|Never|Tuple|Projection|Anon|Infer|Error}
2018-08-22 16:07:44 +01:00
Guillaume Gomez
e67bba8ebe
Fix missing impl trait display as ret type
2018-08-21 22:40:55 +02:00
bors
1558ae7cfd
Auto merge of #51880 - varkor:generics-hir-generalisation-followup, r=eddyb
...
The Great Generics Generalisation: HIR Followup
Addresses the final comments in #48149 .
r? @eddyb, but there are a few things I have yet to clean up. Making the PR now to more easily see when things break.
cc @yodaldevoid
2018-08-20 15:47:39 +00:00
Donato Sciarra
d3fe97f3d3
mv codemap() source_map()
2018-08-19 23:01:01 +02:00
Donato Sciarra
82607d2cf3
mv (mod) codemap source_map
2018-08-19 23:01:00 +02:00
Donato Sciarra
d6dcbcd4e1
mv FileMap SourceFile
2018-08-19 23:00:59 +02:00
varkor
a14bc713e7
Add Default for GenericParamCount
2018-08-19 20:02:34 +01:00
QuietMisdreavus
9e4e266877
turn intra-doc-link collection into an early pass
2018-08-04 22:20:45 -05:00
Guillaume Gomez
0bff861d32
Remove FinderTrait and move its functions into DocContext
2018-08-04 11:02:25 +02:00
Guillaume Gomez
4aba7de2a7
Clean generic impls code
2018-08-04 11:02:00 +02:00
Mark Rousskov
5aec365cb9
Store concrete crate stores where possible
2018-08-03 11:09:49 -06:00
Pietro Albini
f52ef3b839
Rollup merge of #52835 - GuillaumeGomez:ice-rustdoc-links, r=eddyb
...
Fix Alias intra doc ICE
Fixes #52611 .
cc @QuietMisdreavus
r? @varkor
2018-08-01 21:46:27 +02:00
Guillaume Gomez
d94bdf8c66
Put back original field discovery
2018-07-31 21:43:29 +02:00
Mark Rousskov
620c4fdf53
Delete unused code in rustdoc
2018-07-30 16:33:56 -06:00
Guillaume Gomez
d5f1f70a8e
Fix Alias intra doc ICE
2018-07-30 20:57:27 +02:00
Matthew Jasper
503455bcc7
Remove unused muts
2018-07-29 18:04:09 +01:00
bors
dab71516f1
Auto merge of #52585 - GuillaumeGomez:generic-impls, r=QuietMisdreavus
...
[rustdoc] Generic impls
Fixes #33772 .
r? @QuietMisdreavus
2018-07-28 20:44:17 +00:00
Guillaume Gomez
7a3c7b2097
Don't display full blanket implementation and put it into its own section
2018-07-28 15:18:38 +02:00
Tatsuyuki Ishi
66c4dc9769
Add missing dyn
2018-07-25 10:24:31 +09:00
bors
2e6fc3e2c0
Auto merge of #52211 - bjorn3:misc_rustdoc_changes, r=QuietMisdreavus
...
Misc rustdoc changes
2018-07-23 09:37:03 +00:00
Guillaume Gomez
39849d5128
First step to generic trait impls
2018-07-22 20:58:51 +02:00
kennytm
8e6971dd2d
Rollup merge of #52581 - petrochenkov:bmacrodoc, r=alexcrichton
...
Avoid using `#[macro_export]` for documenting builtin macros
Use a special `rustc_*` attribute instead.
cc https://github.com/rust-lang/rust/pull/52234
2018-07-23 01:00:03 +08:00
bors
d3b3bc5767
Auto merge of #52368 - GuillaumeGomez:intra_doc_link_resolution_failure-documented, r=QuietMisdreavus
...
Add "self" intra-link support
Fixes #49583 .
r? @QuietMisdreavus
2018-07-22 10:48:15 +00:00
Guillaume Gomez
88f2643679
Add "self" intra-link support
2018-07-22 00:22:30 +02:00
Vadim Petrochenkov
a18be44d63
Avoid using #[macro_export] for documenting builtin macros
2018-07-21 02:49:34 +03:00
bors
c7cba3d33f
Auto merge of #52024 - oli-obk:existential_parse, r=nikomatsakis
...
Implement existential types
(not for associated types yet)
r? @nikomatsakis
cc @Centril @varkor @alexreg
2018-07-19 21:14:01 +00:00
bors
11864c4e6c
Auto merge of #51854 - davidtwco:rfc-2008-rustdoc, r=QuietMisdreavus
...
RFC 2008 non-exhaustive enums/structs: Rustdoc
Part of #44109 . Not sure how those who maintain rustdoc primarily would prefer this addition look or where it should be placed, happy to make any changes required.
r? @QuietMisdreavus (not sure if this is the right person, just guessing)
2018-07-19 19:03:03 +00:00
Oliver Schneider
53d2ebb0ad
Implement existential types
2018-07-18 10:53:08 +02:00
csmoe
5b0cf56f32
ItemKind
2018-07-16 15:09:17 +02:00
csmoe
7e5d224472
ForeignItemKind
2018-07-16 15:09:17 +02:00
csmoe
f12eca47e0
TyKind
2018-07-16 15:09:17 +02:00
Vadim Petrochenkov
7d142c1e53
Address comments
2018-07-14 14:57:15 +03:00
Vadim Petrochenkov
5987fe8f75
Remove most of Hash impls from AST and HIR structures
2018-07-14 14:57:14 +03:00
Vadim Petrochenkov
4d1a30c92b
Remove most of PartialEq impls from AST and HIR structures
2018-07-14 14:56:57 +03:00
bjorn3
55c11e3db4
Misc rustdoc changes
2018-07-13 14:39:44 +02:00
David Wood
d0d33a0335
Switch to any from count when checking for non_exhaustive attribute.
2018-07-13 08:36:01 +01:00
David Wood
5ccafa106f
Simplified checking for non_exhaustive attribute.
2018-07-05 22:44:58 +01:00
Oliver Schneider
75a6fde6a4
Update rustdoc
2018-07-02 10:37:49 +02:00
Zack M. Davis
43a0a65fa2
call it hir::VisibilityKind instead of hir::Visibility_:*
...
It was pointed out in review that the glob-exported
underscore-suffixed convention for `Spanned` HIR nodes is no longer
preferred: see February 2016's #31487 for AST's migration away from
this style towards properly namespaced NodeKind enums.
This concerns #51968 .
2018-07-01 11:05:10 -07:00
Zack M. Davis
4ae89129e1
in which hir::Visibility recalls whence it came (i.e., becomes Spanned)
...
There are at least a couple (and plausibly even three) diagnostics that
could use the spans of visibility modifiers in order to be reliably
correct (rather than hacking and munging surrounding spans to try to
infer where the visibility keyword must have been).
We follow the naming convention established by the other `Spanned` HIR
nodes: the "outer" type alias gets the "prime" node-type name, the
"inner" enum gets the name suffixed with an underscore, and the variant
names are prefixed with the prime name and `pub use` exported from here
(from HIR).
Thanks to veteran reviewer Vadim Petrochenkov for suggesting this
uniform approach. (A previous draft, based on the reasoning that
`Visibility::Inherited` should not have a span, tried to hack in a named
`span` field on `Visibility::Restricted` and a positional field on
`Public` and `Crate`. This was ... not so uniform.)
2018-06-30 22:41:01 -07:00
Vadim Petrochenkov
9f92fce77c
Fortify dummy span checking
2018-06-30 01:53:32 +03:00
Vadim Petrochenkov
09856c85b7
expansion: Give names to some fields of SyntaxExtension
2018-06-30 01:53:32 +03:00
Mark Rousskov
57aceeecc0
Rollup merge of #51636 - oli-obk:const_diagnostics, r=eddyb
...
Refactor error reporting of constants
cc @eddyb
This PR should not change any behaviour. It solely simplifies the internal handling of the errors
2018-06-28 16:07:10 -06:00
Oliver Schneider
4bb9648b27
Merge ConstVal and ConstValue
2018-06-28 11:04:25 +02:00
Oliver Schneider
05994779ea
Move everything over from middle::const_val to mir::interpret
2018-06-28 11:02:31 +02:00
Vadim Petrochenkov
d7072b5bb4
Fix rebase
2018-06-28 11:04:51 +03:00
Vadim Petrochenkov
f0622dfe5d
Use Idents for associated item definitions in HIR
...
Remove emulation of hygiene with gensyms
2018-06-28 11:04:50 +03:00
Vadim Petrochenkov
c6ca1e4abd
Use Idents in a number of structures in HIR
...
Namely: labels, type parameters, bindings in patterns, parameter names in functions without body.
All of these do not need hygiene after lowering to HIR, only span locations.
2018-06-28 11:04:50 +03:00
Vadim Petrochenkov
e8215a4f6f
Use Idents for path segments in HIR
2018-06-28 11:04:50 +03:00