]>
git.lizzy.rs Git - rust.git/log
Mazdak Farrokhzad [Sat, 24 Aug 2019 22:27:55 +0000 (00:27 +0200)]
typeck/pat.rs: dedup in `check_pat_box`.
Mazdak Farrokhzad [Sat, 24 Aug 2019 22:08:28 +0000 (00:08 +0200)]
typeck/pat.rs: dedup in `check_pat_ref`.
Mazdak Farrokhzad [Sat, 24 Aug 2019 15:54:33 +0000 (17:54 +0200)]
typeck/pat.rs: extract `error_inexistent_fields`.
Mazdak Farrokhzad [Sat, 24 Aug 2019 15:44:43 +0000 (17:44 +0200)]
typeck/pat.rs: extract `error_unmentioned_fields`.
Mazdak Farrokhzad [Sat, 24 Aug 2019 15:34:15 +0000 (17:34 +0200)]
typeck/pat.rs: extract `error_field_already_bound`.
Mazdak Farrokhzad [Sat, 24 Aug 2019 14:42:15 +0000 (16:42 +0200)]
typeck/pat.rs: extract diagnostics from `check_pat_slice`.
Mazdak Farrokhzad [Sat, 24 Aug 2019 13:51:48 +0000 (15:51 +0200)]
typeck/pat.rs: extract `new_ref_ty`.
Mazdak Farrokhzad [Sat, 24 Aug 2019 12:49:32 +0000 (14:49 +0200)]
typeck/pat.rs: some common imports.
Mazdak Farrokhzad [Sat, 24 Aug 2019 12:01:59 +0000 (14:01 +0200)]
typeck/pat.rs: `check_pat_walk` -> `check_pat`.
It's just shorter and we usually don't use the `_walk` suffix.
Mazdak Farrokhzad [Sat, 24 Aug 2019 11:47:07 +0000 (13:47 +0200)]
typeck/pat.rs: `check_pat_top` is the entry point.
This clarifies the fact that type checking patterns unconditionally
starts with `BindByValue` as the default binding mode making the
notion of a default binding mode internal to type checking patterns.
Mazdak Farrokhzad [Sat, 24 Aug 2019 11:40:42 +0000 (13:40 +0200)]
typeck/pat.rs: `(*)` -> `(note_1)` for clarity.
Mazdak Farrokhzad [Sat, 24 Aug 2019 03:13:57 +0000 (05:13 +0200)]
typeck/pat.rs: simplify `check_pat_walk`.
Mazdak Farrokhzad [Sat, 24 Aug 2019 03:08:49 +0000 (05:08 +0200)]
typeck/pat.rs: extract `check_pat_slice`.
Mazdak Farrokhzad [Sat, 24 Aug 2019 02:45:59 +0000 (04:45 +0200)]
typeck/pat.rs: extract `check_pat_ref`.
Mazdak Farrokhzad [Sat, 24 Aug 2019 02:39:23 +0000 (04:39 +0200)]
typeck/pat.rs: extract `check_pat_box`.
Mazdak Farrokhzad [Sat, 24 Aug 2019 02:30:03 +0000 (04:30 +0200)]
typeck/pat.rs: extract `check_pat_tuple`.
Mazdak Farrokhzad [Sat, 24 Aug 2019 02:19:16 +0000 (04:19 +0200)]
typeck/pat.rs: extract `check_pat_ident`.
Mazdak Farrokhzad [Sat, 24 Aug 2019 01:59:15 +0000 (03:59 +0200)]
typeck/pat.rs: extract `check_pat_range`.
Mazdak Farrokhzad [Sat, 24 Aug 2019 01:52:09 +0000 (03:52 +0200)]
typeck/pat.rs: extract `check_pat_lit`.
Mazdak Farrokhzad [Fri, 23 Aug 2019 14:06:33 +0000 (16:06 +0200)]
typeck/pat.rs: extract `calc_default_binding_mode`.
Mazdak Farrokhzad [Fri, 23 Aug 2019 13:55:35 +0000 (15:55 +0200)]
typeck/pat.rs: simplify `peel_off_references`.
Mazdak Farrokhzad [Fri, 23 Aug 2019 13:51:18 +0000 (15:51 +0200)]
typeck/pat.rs: extract `peel_off_references` and define `def_bm` algorithm more declaratively.
Mazdak Farrokhzad [Fri, 23 Aug 2019 13:31:38 +0000 (15:31 +0200)]
typeck/pat.rs: extract `is_non_ref_pat`.
Mazdak Farrokhzad [Fri, 23 Aug 2019 13:05:58 +0000 (15:05 +0200)]
typeck/pat.rs: move note out of `check_dereferenceable` as it angers VSCode.
Mazdak Farrokhzad [Fri, 23 Aug 2019 13:03:21 +0000 (15:03 +0200)]
typeck: move `check_pat_walk` and children to `pat.rs`.
bors [Fri, 23 Aug 2019 05:11:41 +0000 (05:11 +0000)]
Auto merge of #63808 - Rosto75:master, r=KodrAus
A bunch of minor documentation tweaks and fixes.
bors [Fri, 23 Aug 2019 01:27:58 +0000 (01:27 +0000)]
Auto merge of #63801 - jeremystucki:patch-1, r=jonas-schievink
Update .mailmap
bors [Thu, 22 Aug 2019 21:51:14 +0000 (21:51 +0000)]
Auto merge of #63522 - topecongiro:rustfmt-1.4.5, r=Centril
Update rustfmt to 1.4.5
This update includes a bug fix that fixes generating invalid code when formatting an impl block with const generics inside a where clause.
**Changes**
https://github.com/rust-lang/rustfmt/compare/
0462008de87d2757e8ef1dc26f2c54dd789a59a8 ...
1de58ce46d64b1164a214dc0b7fb7c400576c3a6
bors [Thu, 22 Aug 2019 18:06:31 +0000 (18:06 +0000)]
Auto merge of #63807 - Centril:rollup-b8lo8ct, r=Centril
Rollup of 7 pull requests
Successful merges:
- #63624 (When declaring a declarative macro in an item it's only accessible inside it)
- #63737 (Fix naming misspelling)
- #63767 (Use more optimal Ord implementation for integers)
- #63782 (Fix confusion in theme picker functions)
- #63788 (Add amanjeev to rustc-guide toolstate)
- #63796 (Tweak E0308 on opaque types)
- #63805 (Apply few Clippy suggestions)
Failed merges:
r? @ghost
Tomasz Różański [Thu, 22 Aug 2019 17:27:16 +0000 (19:27 +0200)]
Jeremy Stucki [Thu, 22 Aug 2019 14:47:42 +0000 (16:47 +0200)]
Update .mailmap
Mazdak Farrokhzad [Thu, 22 Aug 2019 13:15:45 +0000 (15:15 +0200)]
Rollup merge of #63805 - mati865:clippy, r=Centril
Apply few Clippy suggestions
Somewhat follow-up of https://github.com/rust-lang/rust/pull/62806
Changes per commit are rather small so I can squash them if that's preferred.
Mazdak Farrokhzad [Thu, 22 Aug 2019 13:15:43 +0000 (15:15 +0200)]
Rollup merge of #63796 - estebank:opaque_future, r=Centril
Tweak E0308 on opaque types
```
error[E0308]: if and else have incompatible types
--> file.rs:21:9
|
18 | / if true {
19 | | thing_one()
| | ----------- expected because of this
20 | | } else {
21 | | thing_two()
| | ^^^^^^^^^^^ expected opaque type, found a different opaque type
22 | | }.await
| |_____- if and else have incompatible types
|
= note: expected type `impl std::future::Future` (opaque type)
found type `impl std::future::Future` (opaque type)
= note: distinct uses of `impl Trait` result in different opaque types
= help: if both futures resolve to the same type, consider `await`ing on both of them
```
r? @Centril
CC #63167
Mazdak Farrokhzad [Thu, 22 Aug 2019 13:15:42 +0000 (15:15 +0200)]
Rollup merge of #63788 - mark-i-m:rustc-guide-toolstate-add, r=ehuss
Add amanjeev to rustc-guide toolstate
cc @amanjeev @spastorino
r? @ehuss
Mazdak Farrokhzad [Thu, 22 Aug 2019 13:15:40 +0000 (15:15 +0200)]
Rollup merge of #63782 - GuillaumeGomez:theme-switch-fix, r=kinnison
Fix confusion in theme picker functions
To reproduce the bug currently: click on the theme picker button twice (to show it then hide it). Then click anywhere else: the dropdown menu appears again.
The problem was coming from a confusion of what the `hideThemeButtonState` and `showThemeButtonState` were supposed to do. I switched their codes and updated the `switchThemeButtonState` function. It now works as expected.
r? @kinnison
Mazdak Farrokhzad [Thu, 22 Aug 2019 13:15:38 +0000 (15:15 +0200)]
Rollup merge of #63767 - lzutao:integer-ord-suboptimal, r=nagisa
Use more optimal Ord implementation for integers
Closes #63758
r? @nagisa
### Compare results
([godbolt link](https://godbolt.org/z/dsbczy))
Old assembly:
```asm
example::cmp1:
mov eax, dword ptr [rdi]
mov ecx, dword ptr [rsi]
cmp eax, ecx
setae dl
add dl, dl
add dl, -1
xor esi, esi
cmp eax, ecx
movzx eax, dl
cmove eax, esi
ret
```
New assembly:
```asm
example::cmp2:
mov eax, dword ptr [rdi]
xor ecx, ecx
cmp eax, dword ptr [rsi]
seta cl
mov eax, 255
cmovae eax, ecx
ret
```
Old llvm-mca statistics:
```
Iterations: 100
Instructions: 1100
Total Cycles: 243
Total uOps: 1300
Dispatch Width: 6
uOps Per Cycle: 5.35
IPC: 4.53
Block RThroughput: 2.2
```
New llvm-mca statistics:
```
Iterations: 100
Instructions: 700
Total Cycles: 217
Total uOps: 1100
Dispatch Width: 6
uOps Per Cycle: 5.07
IPC: 3.23
Block RThroughput: 1.8
```
Mazdak Farrokhzad [Thu, 22 Aug 2019 13:15:36 +0000 (15:15 +0200)]
Rollup merge of #63737 - HowJMay:fix_naming, r=jonas-schievink
Fix naming misspelling
Fixes #63734
Mazdak Farrokhzad [Thu, 22 Aug 2019 13:15:35 +0000 (15:15 +0200)]
Rollup merge of #63624 - estebank:unreachable-macro, r=petrochenkov
When declaring a declarative macro in an item it's only accessible inside it
Fix #63164.
r? @petrochenkov
Tomasz Różański [Thu, 22 Aug 2019 13:09:03 +0000 (15:09 +0200)]
Change variables names to be more consistent.
Changed all instances of `c_str` into `cstr` in the documentation examples. This is also consistent with the module source code.
Tomasz Różański [Thu, 22 Aug 2019 12:59:31 +0000 (14:59 +0200)]
Make use of existing constants.
f32::consts::PI / 2.0 -> f32::consts::FRAC_PI_2
f32::consts::PI / 4.0 -> f32::consts::FRAC_PI_4
f64::consts::PI / 2.0 -> f64::consts::FRAC_PI_2
f64::consts::PI / 4.0 -> f64::consts::FRAC_PI_4
Tomasz Różański [Thu, 22 Aug 2019 12:27:51 +0000 (14:27 +0200)]
Change code formatting for readability.
Tomasz Różański [Thu, 22 Aug 2019 11:14:42 +0000 (13:14 +0200)]
Fix punctuation.
Tomasz Różański [Thu, 22 Aug 2019 11:12:31 +0000 (13:12 +0200)]
Remove redundant `mut`.
Tomasz Różański [Thu, 22 Aug 2019 11:06:39 +0000 (13:06 +0200)]
Fix formatting.
Tomasz Różański [Thu, 22 Aug 2019 11:04:32 +0000 (13:04 +0200)]
Fix a typo.
Mateusz Mikuła [Thu, 22 Aug 2019 09:51:59 +0000 (11:51 +0200)]
Apply clippy::let_and_return suggestion
Mateusz Mikuła [Thu, 22 Aug 2019 09:47:36 +0000 (11:47 +0200)]
Apply clippy::needless_return suggestions
Mateusz Mikuła [Thu, 22 Aug 2019 09:44:57 +0000 (11:44 +0200)]
Apply clippy::redundant_field_names suggestion
Jeremy Stucki [Thu, 22 Aug 2019 08:06:25 +0000 (10:06 +0200)]
Update .mailmap
YangHau [Tue, 20 Aug 2019 11:46:23 +0000 (19:46 +0800)]
Fix naming misspelling
bors [Thu, 22 Aug 2019 06:14:49 +0000 (06:14 +0000)]
Auto merge of #63175 - jsgf:argsfile, r=jsgf
rustc: implement argsfiles for command line
Many tools, such as gcc and gnu-ld, support "args files" - that is, being able to specify @file on the command line. This causes `file` to be opened and parsed for command line options. They're separated with whitespace; whitespace can be quoted with double or single quotes, and everything can be \\-escaped. Args files may recursively include other args files via `@file2`.
See https://sourceware.org/binutils/docs/ld/Options.html#Options for the documentation of gnu-ld's @file parameters.
This is useful for very large command lines, or when command lines are being generated into files by other tooling.
Esteban Küber [Wed, 21 Aug 2019 22:35:38 +0000 (15:35 -0700)]
review comments: reword and add test
Esteban Küber [Wed, 21 Aug 2019 23:11:01 +0000 (16:11 -0700)]
review comments
Esteban Küber [Fri, 16 Aug 2019 01:58:20 +0000 (18:58 -0700)]
When declaring a declarative macro in an item it's only accessible inside it
bors [Wed, 21 Aug 2019 22:25:45 +0000 (22:25 +0000)]
Auto merge of #63705 - mark-i-m:fix-guide-1, r=ehuss
Update rustc-guide
Should fix toolstate failure
r? @ehuss
Esteban Küber [Wed, 21 Aug 2019 18:49:51 +0000 (11:49 -0700)]
Add clarification on E0308 about opaque types
Esteban Küber [Wed, 21 Aug 2019 18:46:31 +0000 (11:46 -0700)]
Fix typo in E0308 if/else label
bors [Wed, 21 Aug 2019 17:09:25 +0000 (17:09 +0000)]
Auto merge of #63790 - Centril:rollup-m4ax3r9, r=Centril
Rollup of 6 pull requests
Successful merges:
- #61236 (take into account the system theme)
- #63717 (Fix nested eager expansions in arguments of `format_args`)
- #63747 (update Miri)
- #63772 (ci: move libc mirrors to the rust-lang-ci-mirrors bucket)
- #63780 (Improve diagnostics: break/continue in wrong context)
- #63781 (Run Clippy without json-rendered flag)
Failed merges:
r? @ghost
Lzu Tao [Wed, 21 Aug 2019 15:50:43 +0000 (15:50 +0000)]
Add codegen test for integers compare
Mark Mansi [Mon, 19 Aug 2019 16:06:15 +0000 (11:06 -0500)]
update rustc-guide
Mazdak Farrokhzad [Wed, 21 Aug 2019 15:31:45 +0000 (17:31 +0200)]
Rollup merge of #63781 - mati865:clippy, r=oli-obk,ehuss
Run Clippy without json-rendered flag
Removed in https://github.com/rust-lang/rust/pull/62766
Replacing it with `--json=diagnostic-rendered-ansi` fails:
```
error: using `--json` requires also using `--error-format=json`
```
Running `./x.py clippy src/libstd` locally works fine (with colors) on Linux so I don't know if there is something to fix.
Mazdak Farrokhzad [Wed, 21 Aug 2019 15:31:43 +0000 (17:31 +0200)]
Rollup merge of #63780 - u32i64:issue-63712, r=estebank
Improve diagnostics: break/continue in wrong context
- Fix #63712
- Use `` `break` `` or `` `continue` `` instead of always `break` in `cannot _...`
- Show the enclosing closure or async block we're talking about
- `` `break` outside of loop `` -> `` `break` outside of a loop `` for consistency
r? @estebank
Mazdak Farrokhzad [Wed, 21 Aug 2019 15:31:42 +0000 (17:31 +0200)]
Rollup merge of #63772 - pietroalbini:mirrors-libc, r=alexcrichton
ci: move libc mirrors to the rust-lang-ci-mirrors bucket
Finishing up #63485. Already moved the objects.
r? @alexcrichton
Mazdak Farrokhzad [Wed, 21 Aug 2019 15:31:41 +0000 (17:31 +0200)]
Rollup merge of #63747 - RalfJung:miri, r=RalfJung
update Miri
Fixes https://github.com/rust-lang/rust/issues/63673
r? @oli-obk
Mazdak Farrokhzad [Wed, 21 Aug 2019 15:31:39 +0000 (17:31 +0200)]
Rollup merge of #63717 - petrochenkov:eager, r=matthewjasper
Fix nested eager expansions in arguments of `format_args`
Fixes https://github.com/rust-lang/rust/issues/63460
Fixes https://github.com/rust-lang/rust/issues/63685 (regression from making `format_args` opaque - https://github.com/rust-lang/rust/pull/63114)
r? @matthewjasper
Mazdak Farrokhzad [Wed, 21 Aug 2019 15:31:38 +0000 (17:31 +0200)]
Rollup merge of #61236 - GuillaumeGomez:system-theme, r=Mark-Simulacrum
take into account the system theme
Fixes #61079.
The CSS can now take into account the system theme. I used it to generate some content on the document and from there, if no theme has already been selected, it'll look at the system level theme.
r? @QuietMisdreavus
cc @fenhl
Mark Mansi [Wed, 21 Aug 2019 15:16:57 +0000 (10:16 -0500)]
add amanjeev
Artem Varaksa [Wed, 21 Aug 2019 12:13:13 +0000 (15:13 +0300)]
more `--bless`ing + test error annotations fixes
bors [Wed, 21 Aug 2019 11:40:23 +0000 (11:40 +0000)]
Auto merge of #63779 - Centril:rollup-sx96dli, r=Centril
Rollup of 7 pull requests
Successful merges:
- #63721 (Do not emit JSON dumps of diagnostic codes)
- #63753 (Bump toml dependency.)
- #63755 (Use dedicated type for spans in pre-expansion gating.)
- #63759 (Allow 'default async fn' to parse.)
- #63760 (Update books)
- #63762 (`async_await` was stabilized in 1.39.0, not 1.38.0.)
- #63766 (Remove some duplication when resolving constants)
Failed merges:
r? @ghost
Artem Varaksa [Wed, 21 Aug 2019 11:32:38 +0000 (14:32 +0300)]
`r#type` -> `ty`
Guillaume Gomez [Wed, 21 Aug 2019 11:10:06 +0000 (13:10 +0200)]
Fix confusion in theme picker functions
Guillaume Gomez [Wed, 21 Aug 2019 10:49:01 +0000 (12:49 +0200)]
Replaced skipStorage with saveTheme variable
Artem Varaksa [Wed, 21 Aug 2019 10:17:59 +0000 (13:17 +0300)]
improve diagnostics: break/continue wrong context
Mateusz Mikuła [Wed, 21 Aug 2019 10:14:00 +0000 (12:14 +0200)]
Run Clippy without json-rendered flag
Vadim Petrochenkov [Wed, 21 Aug 2019 09:53:11 +0000 (12:53 +0300)]
Add a regression test for issue #63460
Mazdak Farrokhzad [Wed, 21 Aug 2019 09:52:29 +0000 (11:52 +0200)]
Rollup merge of #63766 - oli-obk:const_eval_dedup, r=zackmdavis
Remove some duplication when resolving constants
Mazdak Farrokhzad [Wed, 21 Aug 2019 09:52:28 +0000 (11:52 +0200)]
Rollup merge of #63762 - rust-lang:fix-async-date, r=Mark-Simulacrum
`async_await` was stabilized in 1.39.0, not 1.38.0.
r? @Mark-Simulacrum
Mazdak Farrokhzad [Wed, 21 Aug 2019 09:52:26 +0000 (11:52 +0200)]
Rollup merge of #63760 - ehuss:update-books, r=ehuss
Update books
## nomicon
25 commits in
8a7d05615e5bc0a7fb961b4919c44f5221ee54da ..
38b9a76bc8b59ac862663807fc51c9b757337fd6
2019-08-07 07:46:59 -0500 to 2019-08-19 10:04:32 -0400
- Fix transmute_copy link
- some edits
- drop parenthetical
- clarify dangling
- fix def.n of dangling
- fold uninit integer rule with reading uninit memory
- refactor null a bit
- resolve some nits
- raw ptrs must be initialized like integers
- Apply suggestions from code review
- explain when metadata is invalid
- mention !
- add more cases of UB
- avoid redundant UB
- stick to broader UB for raw ptr offsets/derefs for now
- be more precise about dangling
- subsume the NonNull things as library types
- handle recursion in the heading
- Define 'producing'
- NonNull, NonZero*
- list more ptr offset computations
- UB
- Fix typo in subtyping
- Add colon to `MySuperSliceable` too
- Fix typo `str::mem` to `std::mem`
## reference
2 commits in
b4b3536839042a6743fc76f0d9ad2a812020aeaa ..
d191a0cdd3b92648e0f1e53b13140a14677cc65b
2019-08-07 02:29:50 +0200 to 2019-08-15 08:42:23 +0200
- Fix warning in stable-check (rust-lang-nursery/reference#653)
- our closure syntax comes from Ruby (rust-lang-nursery/reference#650)
## rust-by-example
5 commits in
f2c15ba5ee89ae9469a2cf60494977749901d764 ..
580839d90aacd537f0293697096fa8355bc4e673
2019-08-07 10:14:25 -0300 to 2019-08-17 23:17:50 -0300
- macros.md: Changing Sometime to more appropriate adverb form Sometimes (rust-lang/rust-by-example#1243)
- Add colon after "See Also" (rust-lang/rust-by-example#1242)
- Update enter_question_mark.md (rust-lang/rust-by-example#1208)
- Add destructuring bind examples (rust-lang/rust-by-example#1238)
- Change initial parameters in `fibonacci()` call. (rust-lang/rust-by-example#1241)
## embedded-book
1 commits in
c5da1e11915d3f28266168baaf55822f7e3fe999 ..
432ca26686c11d396eed6a59499f93ce1bf2433c
2019-08-05 23:02:10 +0000 to 2019-08-09 23:20:22 +0000
- semihosting: add comment adding feature flag to panic-semihosting (rust-embedded/book#203)
Mazdak Farrokhzad [Wed, 21 Aug 2019 09:52:25 +0000 (11:52 +0200)]
Rollup merge of #63759 - Centril:parse-default-async-fn, r=petrochenkov
Allow 'default async fn' to parse.
- Parse default async fn. Fixes #63716.
(`cherry-pick`ed from 3rd commit in https://github.com/rust-lang/rust/pull/63749.)
r? @petrochenkov
Mazdak Farrokhzad [Wed, 21 Aug 2019 09:52:23 +0000 (11:52 +0200)]
Rollup merge of #63755 - Centril:simplify-prexp-gating, r=petrochenkov
Use dedicated type for spans in pre-expansion gating.
- Simplify the overall pre-expansion gating "experience".
Mazdak Farrokhzad [Wed, 21 Aug 2019 09:52:21 +0000 (11:52 +0200)]
Rollup merge of #63753 - ehuss:bump-toml, r=Mark-Simulacrum
Bump toml dependency.
Just removing an old/duplicated dependency from the workspace.
Mazdak Farrokhzad [Wed, 21 Aug 2019 09:52:20 +0000 (11:52 +0200)]
Rollup merge of #63721 - Mark-Simulacrum:decouple-error-index, r=matthewjasper
Do not emit JSON dumps of diagnostic codes
This decouples the error index generator from libsyntax for the most part (though it still depends on librustdoc for the markdown parsing and generation).
Fixes #34588
Vadim Petrochenkov [Mon, 19 Aug 2019 21:24:28 +0000 (00:24 +0300)]
resolve/expand: Rename some things for clarity and add comments
Vadim Petrochenkov [Mon, 19 Aug 2019 20:44:57 +0000 (23:44 +0300)]
expand: Do not do questionable span adjustment before eagerly expanding an expression
Maybe it made sense when it was introduced, but now it's doing something incorrect.
Vadim Petrochenkov [Mon, 19 Aug 2019 20:35:25 +0000 (23:35 +0300)]
expand: Keep the correct current expansion ID for eager expansions
Solve the problem of `ParentScope` entries for eager expansions not exising in the resolver map by creating them on demand.
Vadim Petrochenkov [Mon, 19 Aug 2019 20:10:07 +0000 (23:10 +0300)]
Add a test for an opaque macro eagerly expanding its arguments
Guillaume Gomez [Mon, 27 May 2019 13:57:44 +0000 (15:57 +0200)]
take into account the system theme
Ralf Jung [Wed, 21 Aug 2019 07:37:23 +0000 (09:37 +0200)]
update Miri
Pietro Albini [Wed, 21 Aug 2019 07:06:55 +0000 (09:06 +0200)]
ci: move libc mirrors to the rust-lang-ci-mirrors bucket
Lzu Tao [Wed, 21 Aug 2019 06:25:37 +0000 (06:25 +0000)]
Add comment to avoid accidentally remove the changes.
Lzu Tao [Wed, 21 Aug 2019 00:37:17 +0000 (00:37 +0000)]
Use more optimal Ord implementation for integers
Oliver Scherer [Wed, 21 Aug 2019 00:29:08 +0000 (02:29 +0200)]
Remove some duplication when resolving constants
Mazdak Farrokhzad [Tue, 20 Aug 2019 22:23:08 +0000 (00:23 +0200)]
async_await was stabilized in 1.39.0, not 1.38.0.
Eric Huss [Tue, 20 Aug 2019 21:03:13 +0000 (14:03 -0700)]
Update books
Mazdak Farrokhzad [Tue, 20 Aug 2019 16:10:43 +0000 (18:10 +0200)]
Allow 'default async fn' to parse.
Jeremy Fitzhardinge [Tue, 20 Aug 2019 02:02:12 +0000 (19:02 -0700)]
Move argfile expansion into run_compiler
This will make @path work with miri and other non-standard entrypoints.
Also since this simplifies librustc_driver::args, move it into a simple source file. Also
remove the tests since they're doing nothing more than checking `str::lines` has the right
behaviour.
bors [Tue, 20 Aug 2019 18:33:16 +0000 (18:33 +0000)]
Auto merge of #63752 - Centril:rollup-nlxwety, r=Centril
Rollup of 4 pull requests
Successful merges:
- #62497 (Fix double resolving custom libdir)
- #63209 (Stabilize `async_await` in Rust 1.39.0)
- #63746 (Cherry-pick src/test changes with Centril's changes)
- #63750 (rustc_metadata: replace LazySeq<T> with Lazy<[T]>.)
Failed merges:
r? @ghost
Mazdak Farrokhzad [Tue, 20 Aug 2019 15:07:42 +0000 (17:07 +0200)]
Use dedicated type for spans in pre-expansion gating.
Eric Huss [Tue, 20 Aug 2019 17:46:35 +0000 (10:46 -0700)]
Bump toml dependency.
Just removing an old/duplicated dependency from the workspace.
Mazdak Farrokhzad [Tue, 20 Aug 2019 17:42:21 +0000 (19:42 +0200)]
Rollup merge of #63750 - eddyb:lazy-seq, r=Zoxc
rustc_metadata: replace LazySeq<T> with Lazy<[T]>.
Part of #59953, split out for separate landing (see https://github.com/rust-lang/rust/pull/59953#issuecomment-
502460092 ).
r? @Zoxc