kennytm
68d5fddeef
Rollup merge of #54816 - oli-obk:double_promotion, r=alexreg
...
Don't try to promote already promoted out temporaries
fixes #53201
r? @eddyb
2018-10-26 18:24:54 +08:00
Ralf Jung
6b980462c6
validity: assert that unions are non-empty
2018-10-26 11:08:24 +02:00
Nicholas Nethercote
526dc1421b
Use SmallVec
for the queue in coerce_unsized
.
...
This reduces the number of allocations done for the `tuple-stress`
benchmark by 4%.
2018-10-26 19:33:51 +11:00
Marc-Antoine Perennou
bc87c71d86
rustbuild: use configured linker to build boostrap
...
Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
2018-10-26 10:18:48 +02:00
Geoffry Song
4747d83c70
Extend the impl_stable_hash_for! macro for miri.
2018-10-26 01:07:10 -07:00
Eddy Petrișor
ea0c165429
Typo fixes in configure_cmake comments
...
Signed-off-by: Eddy Petrișor <eddy.petrisor@gmail.com>
2018-10-26 08:54:57 +03:00
Shotaro Yamada
3878d24ef6
Remove redundant clone
2018-10-26 12:07:39 +09:00
bors
82239b04dc
Auto merge of #55362 - ehuss:releases-cargo-new-edition, r=Mark-Simulacrum
...
Remove `cargo new --edition` from release notes.
This was removed at the last minute (#55315 , https://github.com/rust-lang/cargo/pull/6216 ).
Apologies for not catching this.
2018-10-26 02:58:28 +00:00
Esteban Küber
a7fbf93f0f
Update mailmap for estebank
2018-10-25 17:10:34 -07:00
bors
7b0735a832
Auto merge of #54145 - nrc:save-path-segments, r=petrochenkov
...
Keep resolved defs in path prefixes and emit them in save-analysis
Closes https://github.com/nrc/rls-analysis/issues/109
r? @eddyb or @petrochenkov
2018-10-26 00:04:29 +00:00
Nicholas Nethercote
38d9277a77
Shrink Statement
.
...
This commit reduces the size of `Statement` from 80 bytes to 56 bytes on
64-bit platforms, by boxing the `AscribeUserType` variant of
`StatementKind`.
This change reduces instruction counts on most benchmarks by 1--3%.
2018-10-26 08:25:47 +11:00
Eric Huss
19c4e36486
Remove cargo new --edition
from release notes.
2018-10-25 13:57:56 -07:00
Nick Cameron
6dd5bb18d7
more reviewer changes
2018-10-26 09:50:51 +13:00
Nick Cameron
63ac2aae51
Fix tests and assertions; add some comments
2018-10-26 09:50:51 +13:00
Nick Cameron
59cb1705d7
rebasing and reviewer changes
...
Primarily refactoring `(Ident, Option<NodeId>)` to `Segment`
2018-10-26 09:50:51 +13:00
Nick Cameron
8ac3272610
save-analysis: handle missing field names
...
FIxes https://github.com/rust-lang-nursery/rls/issues/1031
2018-10-26 09:48:44 +13:00
Nick Cameron
cdcbdfdf0a
Fix tests and rustdoc
2018-10-26 09:48:44 +13:00
Nick Cameron
c480386391
dump refs for path segments in save-analysis
...
Requires adding path segments to the hir map
2018-10-26 09:48:44 +13:00
Nick Cameron
609d0bd8ac
dump data for prefix path segments
2018-10-26 09:48:44 +13:00
Nick Cameron
c2bb7cadf2
save-analysis: remove hacky, unnecessary code now that we have spans for every ident
2018-10-26 09:48:44 +13:00
Nick Cameron
b49da276b3
Store a resolved def on hir::PathSegment
2018-10-26 09:48:44 +13:00
Nick Cameron
fc67d8fac4
Give each PathSegment a NodeId
2018-10-26 09:48:44 +13:00
bors
4bd4e4130e
Auto merge of #54490 - wesleywiser:rewrite_it_in_mir, r=oli-obk
...
Rewrite the `UnconditionalRecursion` lint to use MIR
Part of #51002
r? @eddyb
2018-10-25 20:40:31 +00:00
Aaron Hill
fa444be81d
Fix tidy error
2018-10-25 15:32:59 -04:00
Oliver Scherer
fd77500ed1
Clear up nonpromotable const fn call qualification
2018-10-25 21:18:22 +02:00
Aaron Hill
098c659276
Check for negative impls when finding auto traits
...
Fixes #55321
When AutoTraitFinder begins examining a type, it checks for an explicit
negative impl. However, it wasn't checking for negative impls found when
calling 'select' on predicates found from nested obligations.
This commit makes AutoTraitFinder check for negative impls whenever it
makes a call to 'select'. If a negative impl is found, it immediately
bails out.
Normal users of SelectioContext don't need to worry about this, since
they stop as soon as an Unimplemented error is encountered. However, we
add predicates to our ParamEnv when we encounter this error, so we need
to handle negative impls specially (so that we don't try adding them to
our ParamEnv).
2018-10-25 15:14:32 -04:00
Oliver Scherer
ee7f4a27d3
Grammar nit
2018-10-25 21:14:25 +02:00
Esteban Küber
2cfd790177
List allowed tokens after macro fragments
2018-10-25 11:08:58 -07:00
Oliver Scherer
f4fe9b0a09
Clarify exclusion comment further
2018-10-25 19:39:01 +02:00
Oliver Scherer
4dc028743d
Explain why we can encounter a Goto
terminator that we want to promote
2018-10-25 19:37:07 +02:00
Oliver S̶c̶h̶n̶e̶i̶d̶e̶r Scherer
f7629eff32
Explain a comment in more detail
2018-10-25 18:28:14 +02:00
Oliver S̶c̶h̶n̶e̶i̶d̶e̶r Scherer
13d94ee115
Explain how unused constants may still cause a hard error
2018-10-25 17:20:39 +02:00
Oliver Schneider
1c5ff292fc
Rebase fallout
2018-10-25 17:20:39 +02:00
Ralf Jung
d2e682afed
preserve const eval error information through trait error system
2018-10-25 16:48:15 +02:00
Ralf Jung
7ed7fc881e
add the lint back to the list, and fix tests
2018-10-25 16:48:15 +02:00
Ralf Jung
94586bc133
fix ui tests (rebase fallout)
2018-10-25 16:48:15 +02:00
Ralf Jung
b81302f42d
for now, just use NULL ptr for unsized locals
2018-10-25 16:48:15 +02:00
Ralf Jung
7717a63182
fix a test comment
2018-10-25 16:47:35 +02:00
Alexander Regueiro
7c34f2da57
Addressed minor issues brought up in review.
2018-10-25 16:47:35 +02:00
Oliver Schneider
bf8471aeda
Rebase fallout in ui output
2018-10-25 16:47:35 +02:00
Oliver Schneider
f4a3e50d78
Update rustdoc test
2018-10-25 16:47:35 +02:00
Oliver Schneider
528c72371c
More mono items are generated now
2018-10-25 16:47:35 +02:00
Oliver Schneider
6a6b3309e6
update tests to changes on rustc master
2018-10-25 16:47:35 +02:00
Oliver Schneider
e6f7f4af50
Document error/lint cases in const eval
2018-10-25 16:47:35 +02:00
Oliver Schneider
d736197bc2
Explain the Reveal::UserFacing
deduplication trick
2018-10-25 16:47:35 +02:00
Oliver Schneider
b4ee38ede3
Don't extend hir::Def
when there's already a dedicated "function-like" detector
2018-10-25 16:47:35 +02:00
Oliver Schneider
73e2b4662d
Prepare miri for unsized locals
2018-10-25 16:47:35 +02:00
Oliver Schneider
0f97048618
Deduplicate all the ~~things~~ errors
2018-10-25 16:47:35 +02:00
Oliver Schneider
d34232bcaf
Fix rebase fallout
2018-10-25 16:47:34 +02:00
Corey Farwell
ee26e8edeb
Update RELEASES.md
...
Co-Authored-By: steveklabnik <steve@steveklabnik.com>
2018-10-25 10:47:07 -04:00