Mazdak Farrokhzad
21509b81fa
Rollup merge of #58256 - taiki-e:librustc_cratesio_shim-2018, r=Centril
...
librustc_cratesio_shim => 2018
Transitions `librustc_cratesio_shim` to Rust 2018; cc #58099
r? @Centril
2019-02-09 00:15:57 +01:00
Mazdak Farrokhzad
8cbee1c68e
Rollup merge of #58255 - taiki-e:librustc_metadata-2018, r=Centril
...
librustc_metadata => 2018
Transitions `librustc_metadata` to Rust 2018; cc #58099
r? @Centril
2019-02-09 00:15:55 +01:00
Mazdak Farrokhzad
379a048bbb
Rollup merge of #58251 - h-michael:librustc_traits-2018, r=Centril
...
Transition librustc_traits to 2018 edition
Transitions librustc_traits to Rust 2018; cc #58099
r? @Centril
2019-02-09 00:15:54 +01:00
Mazdak Farrokhzad
50df4d188f
Rollup merge of #58247 - taiki-e:librustc_passes-2018, r=Centril
...
librustc_passes => 2018
Transitions `librustc_passes` to Rust 2018; cc #58099
r? @Centril
2019-02-09 00:15:53 +01:00
Mazdak Farrokhzad
543f457169
Rollup merge of #58245 - taiki-e:librustc_lint-2018, r=Centril
...
librustc_lint => 2018
Transitions `librustc_lint` to Rust 2018; cc #58099
r? @Centril
2019-02-09 00:15:52 +01:00
Mazdak Farrokhzad
2b8ed1e1bd
Rollup merge of #58233 - taiki-e:librustc_save_analysis-2018, r=Centril
...
librustc_save_analysis => 2018
Transitions `librustc_save_analysis` to Rust 2018; cc #58099
r? @Centril
2019-02-09 00:15:50 +01:00
Mazdak Farrokhzad
5b4cf9b90d
Rollup merge of #58222 - taiki-e:librustc_allocator-2018, r=Centril
...
librustc_allocator => 2018
Transitions `librustc_allocator` to Rust 2018; cc #58099
r? @Centril
2019-02-09 00:15:49 +01:00
Mazdak Farrokhzad
6f5941e113
Rollup merge of #58120 - h-michael:build_helper-theme-2018, r=Centril
...
Transition build_helper to 2018 edition
Transitions build_helper to Rust 2018; cc #58099
r? @Centril
2019-02-09 00:15:48 +01:00
Mazdak Farrokhzad
f674779012
Rollup merge of #58115 - h-michael:rustdoc-2018, r=Centril
...
Transition rustdoc to 2018 edition
Transitions rustdoc to Rust 2018; cc #58099
2019-02-09 00:15:46 +01:00
Mazdak Farrokhzad
dbd73f640f
Rollup merge of #58091 - phansch:compiletest2018, r=Centril
...
Transition compiletest to Rust 2018
This transitions `src/tools/compiletest` to Rust 2018.
cc #58099
2019-02-09 00:15:44 +01:00
bors
a2ec156a5b
Auto merge of #58161 - davidtwco:issue-57960, r=arielb1
...
Lower constant patterns with ascribed types.
Fixes #57960 .
This PR fixes a bug introduced by #55937 which started checking user
type annotations for associated type patterns. Where lowering a
associated constant expression would previously return a
`PatternKind::Constant`, it now returns a `PatternKind::AscribeUserType`
with a `PatternKind::Constant` inside, this PR unwraps that to
access the constant pattern inside and behaves as before.
r? @pnkfelix
2019-02-08 17:13:56 +00:00
bors
0710c2026f
Auto merge of #58294 - hrls:master, r=GuillaumeGomez
...
fix rustdoc JS
#58290
2019-02-08 14:16:14 +00:00
Taiki Endo
fed677e56f
librustc_cratesio_shim => 2018
2019-02-08 20:55:12 +09:00
Taiki Endo
7267bc2d4a
librustc_metadata => 2018
2019-02-08 20:50:17 +09:00
Taiki Endo
bf531bd459
librustc_passes => 2018
2019-02-08 20:40:49 +09:00
Taiki Endo
6140134b6f
librustc_lint => 2018
2019-02-08 20:35:41 +09:00
bors
652ae3fffd
Auto merge of #58213 - Mark-Simulacrum:fix-checktools, r=alexcrichton
...
Add embedded book to test such that checktools works
r? @alexcrichton
FWIW this doesn't attempt to make sure we don't break check tools again -- we intentionally make the bash script not exit when x.py fails so we'd need some special case handling so for now I'm just fixing the bug itself, not its cause.
2019-02-08 10:17:01 +00:00
hrls
5288f3f967
fix rustdoc JS
2019-02-08 12:47:20 +03:00
bors
43e04fb552
Auto merge of #58191 - varkor:const-generics-ast, r=petrochenkov
...
Add const generics to the AST
This is mostly split out from https://github.com/rust-lang/rust/pull/53645 in an effort to make progress merging const generics piecewise instead of in one go.
cc @yodaldevoid, @petrochenkov
r? @eddyb
2019-02-08 05:50:16 +00:00
varkor
f2fe71c02a
Resolve incorrect diagnostic for using a non-const value in a constant
2019-02-07 16:03:12 +01:00
bors
d173180116
Auto merge of #58266 - GuillaumeGomez:rollup, r=GuillaumeGomez
...
Rollup of 11 pull requests
Successful merges:
- #57504 (Re-enable history api on file:// protocol)
- #57848 (Generate a documentation page for core::mem::transmute.)
- #57884 (Update minifier version)
- #57954 (rustdoc: remove blank unstable spans)
- #58028 (Fix image link in the settings menu)
- #58033 (rustdoc: wrap stability tags in colored spans)
- #58086 ([rustdoc] Improve file list display)
- #58143 (Sort elements in the sidebar)
- #58146 (Prevent automatic collapse of methods impl blocks)
- #58150 (Don't apply impl block collapse rules to trait impls)
- #58185 (Remove images' url to make it work even without internet connection)
Failed merges:
r? @ghost
2019-02-07 14:47:57 +00:00
varkor
1b933a5ce9
Add a test forbidding the use of const parameters in inner items
2019-02-07 15:03:20 +01:00
varkor
4e0e188999
Make name resolution handle consts in GenericParamsFromOuterFunction properly
2019-02-07 15:03:20 +01:00
varkor
451f128783
Parse negative literals in const generic arguments
2019-02-07 15:03:20 +01:00
varkor
9ad04b9960
Add warning for a parameter list with an attribute but no parameters
2019-02-07 15:03:20 +01:00
varkor
dbc7924b3f
Add test for generic parameter list solely containing an attribute
2019-02-07 15:03:20 +01:00
varkor
b3015abfa0
Fix update to 2018 edition
2019-02-07 15:03:20 +01:00
varkor
61f35f0641
Adjust generic const param resolution
2019-02-07 15:03:20 +01:00
varkor
bbdcc4e7ce
Adjust parser generic parameter errors
2019-02-07 15:02:17 +01:00
varkor
899d013fef
Fix E0670 doc error
2019-02-07 15:02:17 +01:00
varkor
7461a5e655
Fix ast_validation printing of const generics
2019-02-07 15:02:17 +01:00
varkor
1805546084
Fix const generic parameter save analysis
2019-02-07 15:02:17 +01:00
varkor
bf2f62cb98
Add test for const parameter before other generic parameters
2019-02-07 15:02:17 +01:00
varkor
ed51b6148f
Add test for const parameter depending on type parameter
2019-02-07 15:02:17 +01:00
varkor
2f73245ca4
Add test forbidding const parameters in const fn
2019-02-07 15:02:17 +01:00
varkor
455d659e91
Update tests
...
Co-Authored-By: Gabriel Smith <yodaldevoid@users.noreply.github.com>
2019-02-07 15:02:17 +01:00
varkor
8fd5979006
Add const generics feature gate test
...
Co-Authored-By: Gabriel Smith <yodaldevoid@users.noreply.github.com>
2019-02-07 15:02:17 +01:00
varkor
3991ba76ee
Support const generics in save analysis
...
Co-Authored-By: Gabriel Smith <yodaldevoid@users.noreply.github.com>
2019-02-07 15:02:17 +01:00
varkor
06abaee21b
Add error for const parameters depending on type parameters
...
Co-Authored-By: Gabriel Smith <yodaldevoid@users.noreply.github.com>
2019-02-07 15:02:17 +01:00
varkor
11874a0c14
Validate generic parameter and argument order in ast_validation
...
Co-Authored-By: Gabriel Smith <yodaldevoid@users.noreply.github.com>
2019-02-07 15:02:17 +01:00
varkor
2fec52bf58
Add lowering errors for const generics
...
Co-Authored-By: Gabriel Smith <yodaldevoid@users.noreply.github.com>
2019-02-07 15:02:17 +01:00
varkor
29f7206366
Add const params to Def
...
Co-Authored-By: Gabriel Smith <yodaldevoid@users.noreply.github.com>
2019-02-07 15:02:17 +01:00
varkor
ea0d99829d
Add resolution errors for const generics
...
Co-Authored-By: Gabriel Smith <yodaldevoid@users.noreply.github.com>
2019-02-07 15:02:17 +01:00
varkor
b4ef753e8f
Add pretty-printing for const generics
...
Co-Authored-By: Gabriel Smith <yodaldevoid@users.noreply.github.com>
2019-02-07 15:02:16 +01:00
varkor
d7695abb76
Support const generics in derive
...
Co-Authored-By: Gabriel Smith <yodaldevoid@users.noreply.github.com>
2019-02-07 15:02:16 +01:00
varkor
0a8d98a270
Parse const generics
...
Co-Authored-By: Gabriel Smith <yodaldevoid@users.noreply.github.com>
2019-02-07 15:02:16 +01:00
varkor
8d83521f0b
Add const_generics feature flag
...
Co-Authored-By: Gabriel Smith <yodaldevoid@users.noreply.github.com>
2019-02-07 15:02:16 +01:00
varkor
751dcdf606
Add Const kind to AST
...
Co-Authored-By: Gabriel Smith <yodaldevoid@users.noreply.github.com>
2019-02-07 15:02:16 +01:00
Guillaume Gomez
761caa2334
Rollup merge of #58185 - GuillaumeGomez:images-url, r=SimonSapin
...
Remove images' url to make it work even without internet connection
Needed for local std docs mainly.
cc @SimonSapin
r? @QuietMisdreavus
2019-02-07 14:28:41 +01:00
Guillaume Gomez
da8da5e061
Rollup merge of #58150 - GuillaumeGomez:dont-apply-impl-collapse-rules-to-trait-impls, r=Manishearth
...
Don't apply impl block collapse rules to trait impls
Fixes #58147 .
r? @QuietMisdreavus
2019-02-07 14:28:40 +01:00