Niko Matsakis
fc3c90cf8a
report an error if we see an unexpected lifetime in impl Trait
...
But leave closure substs alone.
2018-03-21 05:40:59 -04:00
Tyler Mandry
2cdc7af413
Use NOTE instead of error-pattern directive
2018-03-21 00:26:20 -05:00
Tyler Mandry
94bdeb64f9
termination_trait: Add () example to error message
2018-03-21 00:26:00 -05:00
bors
c19264fa83
Auto merge of #49200 - oli-obk:extern_static_metadata, r=michaelwoerister
...
Encode/decode extern statics in metadata and incremental cache
fixes #49153
cc @abonander
r? @michaelwoerister incremental ICE
2018-03-21 01:06:16 +00:00
John Kåre Alsaker
57896abc38
Make resuming generators unsafe instead of the creation of immovable generators. Fixes #47787
2018-03-21 00:09:58 +01:00
kennytm
5f7d7c886c
Rollup merge of #49196 - Phlosioneer:49123-sort-where-conditions, r=QuietMisdreavus
...
Fix ordering of auto-generated trait bounds in rustdoc output
While the order of the where clauses was deterministic, the
ordering of bounds and lifetimes was not. This made the order flip-
flop randomly when new traits and impls were added to libstd.
This PR makes the ordering of bounds and lifetimes deterministic,
and re-enables the test that was causing the issue.
Fixes #49123
2018-03-21 06:18:32 +08:00
Guillaume Gomez
1f51840db0
Propose a variant if it is an enum for E0599
2018-03-20 23:08:04 +01:00
Tyler Mandry
72334fee6f
typeck: Report main return type errors on return type span
2018-03-20 14:19:59 -05:00
Kurtis Nusbaum
3c8d555497
rename epoch to edition
2018-03-20 10:27:02 -07:00
varkor
7791995ad5
Add unit test for Implemented-From-Env
2018-03-20 15:23:54 +00:00
bors
75af15ee6c
Auto merge of #49190 - kennytm:rollup, r=kennytm
...
Rollup of 17 pull requests
- Successful merges: #46518 , #48810 , #48834 , #48902 , #49004 , #49092 , #49096 , #49099 , #49104 , #49125 , #49139 , #49152 , #49157 , #49161 , #49166 , #49176 , #49184
- Failed merges:
2018-03-20 10:18:34 +00:00
Oliver Schneider
13bfbe1394
Encode/decode extern statics in metadata and incremental cache
2018-03-20 10:36:45 +01:00
bors
b99172311c
Auto merge of #48516 - petrochenkov:stabsl, r=nikomatsakis
...
Stabilize slice patterns without `..`
And merge `feature(advanced_slice_patterns)` into `feature(slice_patterns)`.
The detailed description can be found in https://github.com/rust-lang/rust/issues/48836 .
Slice patterns were unstable for long time since before 1.0 due to many bugs in the implementation, now this stabilization is possible primarily due to work of @arielb1 who [wrote the new MIR-based implementation of slice patterns](https://github.com/rust-lang/rust/pull/32202 ) and @mikhail-m1 who [fixed one remaining class of codegen issues](https://github.com/rust-lang/rust/pull/47926 ).
Reference PR https://github.com/rust-lang-nursery/reference/pull/259
cc https://github.com/rust-lang/rust/issues/23121
fixes #48836
2018-03-20 07:42:19 +00:00
gnzlbg
4eff4d9500
ignore emscripten in run-pass test
2018-03-20 08:25:25 +01:00
Tyler Mandry
be29e52c5a
Match against friendly error message
2018-03-20 00:08:23 -05:00
Phlosioneer
57e3df3f87
Fix ordering of auto-generated trait bounds in rustdoc output
...
While the order of the where clauses was deterministic, the
ordering of bounds and lifetimes was not. This made the order flip-
flop randomly when new traits and impls were added to libstd.
This PR makes the ordering of bounds and lifetimes deterministic,
and re-enables the test that was causing the issue.
Fixes #49123
2018-03-19 23:42:14 -04:00
kennytm
c152e98a75
Rollup merge of #49166 - dileepbapat:pr-49133, r=nikomatsakis
...
#49133 - Reworded the Error message: "`pub` not needed here" message
2018-03-20 11:39:45 +08:00
kennytm
cfb531748f
Rollup merge of #49157 - estebank:const-into, r=oli-obk
...
Do not suggest `.into()` in `const`s
Fix #49100 .
2018-03-20 11:39:42 +08:00
Esteban Küber
062a46fdd1
Reduce diagnostic verbosity by removing labels
2018-03-19 19:59:34 -07:00
Vadim Petrochenkov
7c90189e13
Stabilize slice patterns without ..
...
Merge `feature(advanced_slice_patterns)` into `feature(slice_patterns)`
2018-03-20 02:27:40 +03:00
kennytm
73846dca7b
Rollup merge of #49104 - csmoe:semicolon_error, r=petrochenkov
...
improve error message of inner attribute syntax
Fixes #49040
2018-03-20 07:15:23 +08:00
kennytm
49b584ce60
Rollup merge of #48834 - ysiraichi:suggest-remove-ref, r=estebank
...
Suggest removing `&`s
This implements the error message discussed in #47744 .
We check whether removing each `&` yields a type that satisfies the requested obligation.
Also, it was created a new `NodeId` field in `ObligationCause` in order to iterate through the `&`s. The way it's implemented now, it iterates through the obligation snippet and counts the number of `&`.
r? @estebank
2018-03-20 07:15:15 +08:00
bors
6bfa7d02d6
Auto merge of #49058 - withoutboats:pin, r=cramertj
...
Pin, Unpin, PinBox
Implementing rust-lang/rfcs#2349 (do not merge until RFC is merged)
@bors r? @cramertj
2018-03-19 23:01:37 +00:00
boats
540021ff5d
Okay this is the right way.
2018-03-19 15:48:48 -07:00
boats
c68885bd05
Comment out entire test.
2018-03-19 15:34:11 -07:00
Guillaume Gomez
bac6484a31
Fix automatic urls with backticks
2018-03-19 23:25:55 +01:00
Esteban Küber
f332a9ce56
Single diagnostic for all non-mentioned fields in a pattern
2018-03-19 14:08:57 -07:00
boats
e4d0d666b5
Ignore properly.
2018-03-19 13:15:15 -07:00
boats
f8fb9f18a5
Comment out flakey test.
2018-03-19 13:13:31 -07:00
Bryan Drewery
00dac20e01
Merge branch 'update-beta-freebsd' into freebsd-posix-spawn
2018-03-19 13:11:55 -07:00
Esteban Küber
1b8f1fc2d9
Do not suggest .into() in consts
2018-03-19 11:18:35 -07:00
Ralf Jung
c05d23406e
update compile-fail tests: fewer warnings because this is now a HIR lint
2018-03-19 18:08:12 +01:00
Ralf Jung
37ff4736c7
wording nits
2018-03-19 18:04:09 +01:00
Dileep Bapat
a8f59aaef9
#49133 - Reworded the Error message: "pub not needed here" message
2018-03-19 19:22:36 +05:30
Seo Sanghyeon
8236e431ce
Document only-X test header
2018-03-19 22:09:47 +09:00
bors
a04b88d194
Auto merge of #49079 - oli-obk:cross_miri, r=michaelwoerister
...
Cleanup metadata and incremental cache processing of constants
fixes #49033
fixes #49081
we really need tests for this. do we have any cross compilation tests? I couldn't find any
2018-03-19 10:39:26 +00:00
Tyler Mandry
97b3bf99f6
Stabilize termination_trait
...
This stabilizes `main` with non-() return types; see #48453 .
2018-03-19 01:31:04 -05:00
Esteban Küber
685c3c1b4a
Reduce the diagnostic span when multiple fields are missing in pattern
2018-03-18 23:01:11 -07:00
Tyler Mandry
c5c650d670
Split out termination_trait_test feature gate
2018-03-19 00:26:41 -05:00
bors
15add366fa
Auto merge of #49091 - nikomatsakis:issue-49043-ty-infer-hash, r=michaelwoerister
...
extend stable hasher to support `CanonicalTy`
Fixes #49043
r? @michaelwoerister
2018-03-19 05:07:27 +00:00
varkor
ca476dd8d3
Revert "Remove useless powerpc64 entry from ARCH_TABLE, closes #47737 "
...
This reverts commit 16ac85ce4d .
2018-03-19 01:34:32 +00:00
bors
c2f4744d2d
Auto merge of #49095 - alexcrichton:debug-asmjs, r=kennytm
...
Try to reduce amount of time on the asmjs builder
This PR has two commits for two separate strategies:
* First it disables optimizations for all tests, hopefully saving time by not optimizing the test code. This caused a number of run-pass tests to fail which are switched to being ignored here.
* Next it disables a number of test suites which aren't asm.js specific and already run elsewhere
cc #48826
2018-03-19 00:02:32 +00:00
Yukio Siraichi
74a4928ed4
Review fixes.
...
- `span_suggestion` changed to `span_suggestion_short`;
- `Span` used changed to contain only `&` refs;
- Tests passing.
2018-03-18 20:46:28 -03:00
Yukio Siraichi
f6bffd16d1
Rebased with master.
2018-03-18 20:46:28 -03:00
Yukio Siraichi
52cd07aef7
Created multiple line test.
2018-03-18 20:46:28 -03:00
Yukio Siraichi
f44b945e0e
New test added.
2018-03-18 20:46:27 -03:00
Yukio Siraichi
e0fb0132c1
Test added.
2018-03-18 20:46:27 -03:00
gnzlbg
cca2604e6c
add codegen test
2018-03-18 19:55:20 +01:00
gnzlbg
9a44448a25
add simd_select intrinsic
2018-03-18 18:33:36 +01:00
Sébastien Marie
e269a7435e
Allow test target to pass without installing
...
explicitly pass -L target-lib to rustdoc
2018-03-18 18:08:17 +01:00