Mazdak Farrokhzad
e61a8a94f7
Apply suggestions from code review
...
Co-Authored-By: RalfJung <post@ralfj.de>
2019-02-21 15:28:46 +01:00
Gabriela Alexandra Moldovan
e5d1fa58f2
codegen and write_metadata can mutate ModuleLLvm.
2019-02-21 13:38:44 +00:00
Aaron Power
0ab2aedb7f
Update RELEASES.md
2019-02-21 14:10:24 +01:00
Mahmut Bulut
99d67ca3b8
Destabilize fixed-width const defined atomic integers
...
* With this PR 1.34.0 onwards const declarations of atomic integers will be
unstable.
2019-02-21 13:57:51 +01:00
Ralf Jung
0f6d36375f
explain why we use static alignment in ref-to-place conversion
2019-02-21 13:15:59 +01:00
bors
0e25a6829c
Auto merge of #58535 - RalfJung:miri, r=oli-obk
...
update miri
r? @oli-obk
Fixes https://github.com/rust-lang/rust/issues/58558
2019-02-21 11:44:16 +00:00
Aaron Power
8060eb473d
Update RELEASES.md
2019-02-21 10:27:22 +01:00
Ralf Jung
59bdb31c89
final pin projections tweaking
2019-02-21 10:21:59 +01:00
Ralf Jung
c9ade6a577
more pin projections tweaking
2019-02-21 09:57:29 +01:00
Stjepan Glavina
c6d24cd504
Enable feature duration_constants in examples
2019-02-21 09:13:50 +01:00
Alex Gurganus
6a5abea709
Remove braces from most E0505 examples
...
The solution which uses braces to release the borrow
before it is moved is only required to satisfy the 2015
edition borrow checker.
All other examples give the expected results for both
2015 and 2018 editions.
2019-02-20 16:12:28 -06:00
Trevor Spiteri
42d749c9ec
Update RELEASES.md
...
Co-Authored-By: Aaronepower <Aaronepower@users.noreply.github.com>
2019-02-20 23:10:54 +01:00
Gabriela Alexandra Moldovan
36f18f2d3a
Allow Self::Module to be mutated.
...
`codegen_allocator` and `write_metadata` mutate the underlying LLVM module. As
such, it makes sense for these two functions to receive a mutable reference to
the module (as opposed to an immutable one).
2019-02-20 21:35:34 +00:00
bors
1349c84a4f
Auto merge of #58056 - nikomatsakis:issue-57843-universe-leak, r=pnkfelix
...
make generalization code create new variables in correct universe
In our type inference system, when we "generalize" a type T to become
a suitable value for a type variable V, we sometimes wind up creating
new inference variables. So, for example, if we are making V be some
subtype of `&'X u32`, then we might instantiate V with `&'Y u32`.
This generalized type is then related `&'Y u32 <: &'X u32`, resulting
in a region constriant `'Y: 'X`. Previously, however, we were making
these fresh variables like `'Y` in the "current universe", but they
should be created in the universe of V. Moreover, we sometimes cheat
in an invariant context and avoid creating fresh variables if we know
the result must be equal -- we can only do that when the universes
work out.
Fixes #57843
r? @pnkfelix
2019-02-20 21:12:18 +00:00
Stjepan Glavina
102436d16a
Put Future trait into spotlight
2019-02-20 22:06:30 +01:00
Stjepan Glavina
f223c03372
Add examples for duration constants
2019-02-20 21:58:20 +01:00
Alex Gurganus
b2a02c8d4a
Fixes #58586 : Make E0505 explain example fail for 2018 edition
2019-02-20 14:46:42 -06:00
Ralf Jung
1b556f16c9
expand pinning projections
2019-02-20 19:38:28 +01:00
gnzlbg
103ed0c347
Search for target_triple.json only if builtin target not found
...
Before this commit, if the builtin target was found, but an error
happened when instantiating it (e.g. validating the target
specification file failed, etc.), then we ignored those errors
and proceeded to try to find a `target_triple.json` file, and if
that failed, reported that as an error.
With this commit, if rustc is supposed to provide the builtin target,
and something fails while instantiating it, that error will
get properly propagated.
2019-02-20 19:37:54 +01:00
Paul Dicker
6464e32ea9
Use standard Read/Write traits in sys::stdio
2019-02-20 19:27:03 +01:00
Paul Dicker
b09803e869
Address review comments
2019-02-20 19:26:56 +01:00
Ralf Jung
06b2affa78
tweak pinning projections
2019-02-20 18:28:12 +01:00
Andre Bogus
8cf3605c50
fix typo
2019-02-20 17:59:17 +01:00
Clint Frederickson
02fe6a7ba6
./x.py test src/test/ui --stage 1 --bless -i --compare-mode=nll
2019-02-20 09:54:10 -07:00
Pietro Albini
703e2361f0
ci: switch appveyor to gce builders to try debugging the 259 failure
2019-02-20 17:01:29 +01:00
Santiago Pastorino
a12982cdc2
Run rustfmt
2019-02-20 12:15:27 -03:00
Santiago Pastorino
801c3f060f
Fix erroneous loop diagnostic in nll
...
This commit fixes the logic of detecting when a use happen in a later
iteration of where a borrow was defined
Fixes #53773
2019-02-20 12:15:08 -03:00
Aaron Power
d072510579
Update RELEASES.md
2019-02-20 15:53:44 +01:00
Aaron Power
262156433e
Update RELEASES.md
2019-02-20 15:51:22 +01:00
Santiago Pastorino
cbc865defd
Use successor_within_block helper
2019-02-20 11:49:18 -03:00
Dale Wijnand
ad096d1a0e
Dedup a rustdoc diagnostic construction
2019-02-20 14:07:07 +00:00
Stjepan Glavina
8e219e7eb5
Turn duration consts into associated consts
2019-02-20 14:21:15 +01:00
ljedrz
404e6435d0
update clippy: partially HirIdify
2019-02-20 13:18:16 +01:00
bors
f66e4697ae
Auto merge of #58578 - kennytm:rollup, r=kennytm
...
Rollup of 24 pull requests
Successful merges:
- #56470 (Modify doctest's auto-`fn main()` to allow `Result`s)
- #58044 (Make overflowing and wrapping negation const)
- #58303 (Improve stability tags display)
- #58336 (Fix search results interactions)
- #58384 (Fix tables display)
- #58392 (Use less explicit shifting in std::net::ip)
- #58409 (rustdoc: respect alternate flag when formatting impl trait)
- #58456 (Remove no longer accurate diagnostic code about NLL)
- #58528 (Don't use an allocation for ItemId in StmtKind)
- #58530 (Monomorphize less code in fs::{read|write})
- #58534 (Mention capping forbid lints)
- #58536 (Remove UB in pointer tests)
- #58538 (Add missing fmt structs examples)
- #58539 (Add alias methods to PathBuf for underlying OsString (#58234 ))
- #58544 (Fix doc for rustc "-g" flag)
- #58545 (Add regression test for a specialization-related ICE (#39448 ))
- #58546 (librustc_codegen_llvm => 2018)
- #58551 (Explain a panic in test case net::tcp::tests::double_bind)
- #58553 (Use more impl header lifetime elision)
- #58562 (Fix style nits)
- #58565 (Fix typo in std::future::Future docs)
- #58568 (Fix a transposition in driver.rs.)
- #58569 (Reduce Some Code Repetitions like `(n << amt) >> amt`)
- #58576 (Stabilize iter::successors and iter::from_fn)
2019-02-20 10:14:28 +00:00
ljedrz
47dc349491
adjust intravisit HirIdification
2019-02-20 11:00:43 +01:00
ljedrz
f5bba2c6d7
HirIdification: change some NodeId to HirId calls
2019-02-20 11:00:43 +01:00
ljedrz
36fffa8196
hir: remove parent_node from NodeCollector
2019-02-20 11:00:43 +01:00
ljedrz
56bf2c6316
hir: change HirIdValidator.hir_ids_seen to a set
2019-02-20 11:00:43 +01:00
ljedrz
4a4e5f3897
hir: add and use hir_to_node_id in NodeCollector
2019-02-20 11:00:43 +01:00
ljedrz
6536dbb640
hir: HirId-ify intravisit
2019-02-20 11:00:43 +01:00
Ralf Jung
c52560d788
tweaks
2019-02-20 09:45:28 +01:00
Aleksey Kladov
65622e319e
cleanup macro after 2018 transition
...
We can now use `?`
2019-02-20 10:10:11 +03:00
Aleksey Kladov
abb07c42ec
remove a bit of dead code
2019-02-20 09:49:52 +03:00
Paul Dicker
f411852add
Refactor Windows stdio and remove stdin double buffering
2019-02-20 06:37:30 +01:00
Paul Dicker
cc20ed678e
Remove unused Read implementation on sys::Windows::Stdin
2019-02-20 06:37:30 +01:00
Paul Dicker
06511573f2
Remove sys::*::Stderr Write implementation
2019-02-20 06:37:30 +01:00
kennytm
a1a17f5c66
Rollup merge of #58044 - Lokathor:lokathor, r=alexcrichton
...
Make overflowing and wrapping negation const
Remember that the signed and unsigned versions are slightly different here, so there's four functions made const instead of just two.
2019-02-20 12:01:58 +08:00
kennytm
8ca56e1e02
Rollup merge of #58576 - SimonSapin:successors, r=Centril
...
Stabilize iter::successors and iter::from_fn
FCP: https://github.com/rust-lang/rust/issues/58045#issuecomment-464674773 , https://github.com/rust-lang/rust/issues/55977#issuecomment-463964234
2019-02-20 11:59:26 +08:00
kennytm
95daca4aaf
Rollup merge of #58569 - kenta7777:reduce-code-repetition, r=oli-obk
...
Reduce Some Code Repetitions like `(n << amt) >> amt`
This Pull Request is related to [#49937 ](https://github.com/rust-lang/rust/issues/49937 ).
This Pull Request has reduced repetition of `(n << amt) >> amt`.
2019-02-20 11:59:23 +08:00
kennytm
2f9fa199d2
Rollup merge of #58568 - benjaminp:driver-trans, r=wesleywiser
...
Fix a transposition in driver.rs.
2019-02-20 11:59:20 +08:00