QuietMisdreavus
c754e8240c
refactor: move access_levels
into RenderInfo
2018-09-20 05:42:38 -05:00
QuietMisdreavus
87760e5f5e
collect auto-/blanket-impls during collect-trait-impls
2018-09-20 05:42:37 -05:00
QuietMisdreavus
6aa74939bf
only move access_levels/external_traits after early passes
2018-09-20 05:42:24 -05:00
bors
b24330fb7d
Auto merge of #53705 - ms2300:tmp, r=oli-obk
...
#53576 Renaming TyAnon -> TyOpaque
Fixes #53576
2018-09-08 14:16:37 +00:00
ms2300
6c14360c32
Changing TyAnon -> TyOpaque and relevant functions
2018-09-05 13:01:16 -06:00
Eduard-Mihai Burtescu
6b8fba5a42
rustc_typeck: turn where Type:,
into a WF(Type) predicate, instead of ignoring it.
2018-08-31 09:02:35 +03:00
Matthias Krüger
ede1f7d2a5
use String::new() instead of String::from(""), "".to_string(), "".to_owned() or "".into()
2018-08-23 10:14:52 +02:00
bors
f1b506af02
Auto merge of #53607 - GuillaumeGomez:rollup, r=GuillaumeGomez
...
Rollup of 10 pull requests
Successful merges:
- #53418 (Mark some suggestions as MachineApplicable)
- #53431 (Moved some feature gate ui tests to correct location)
- #53442 (Update version of rls-data used with save-analysis)
- #53504 (Set applicability for more suggestions.)
- #53541 (Fix missing impl trait display as ret type)
- #53544 (Point at the trait argument when using unboxed closure)
- #53558 (Normalize source line and column numbers.)
- #53562 (Lament the invincibility of the Turbofish)
- #53574 (Suggest direct raw-pointer dereference)
- #53585 (Remove super old comment on function that parses items)
Failed merges:
- #53472 (Use FxHash{Map,Set} instead of the default Hash{Map,Set} everywhere in rustc.)
- #53563 (use String::new() instead of String::from(""), "".to_string(), "".to_owned() or "".into())
r? @ghost
2018-08-22 19:59:52 +00:00
Guillaume Gomez
3d8e760bf8
Rollup merge of #53541 - GuillaumeGomez:fix-impl-trait-ret-type, r=oli-obk
...
Fix missing impl trait display as ret type
I need to convert a `TraitPredicate` into a `TraitBound` to get the returned impl trait. So far, didn't find how or even if it was the good way to do it.
cc @eddyb @oli-obk (since you're the one behind the change apparently 😉 )
2018-08-22 17:45:36 +02:00
varkor
d0209c44a6
Replace TyForeign with ForeignTy
2018-08-22 16:08:49 +01:00
varkor
05cfb3f5b5
Rename Def::{Param, Foreign} to Def::{TyParam, TyForeign}
2018-08-22 16:08:49 +01:00
varkor
8a5dccde2a
Remove Ty prefix from Ty{Bool|Char|Int|Uint|Float|Str}
2018-08-22 16:08:49 +01:00
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 mut
s
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