Eduard-Mihai Burtescu
0f00979517
syntax: process all edition features before other features.
2018-08-16 02:49:56 +03:00
Eduard-Mihai Burtescu
494889ede1
Revert "Ignore test that fails on stage1"
...
This reverts commit 0e43e6fef2
.
2018-08-16 02:11:44 +03:00
Eduard-Mihai Burtescu
83268ff494
syntax_ext: remove leftover span_err_if_not_stage0 macro.
2018-08-16 02:10:54 +03:00
ashtneoi
f4229b81b5
Re-bless test
2018-08-15 15:25:53 -07:00
ashtneoi
4c4e1ef2c5
Add files I forgot to commit earlier
2018-08-15 15:14:21 -07:00
ashtneoi
671d7e064f
Change a method name and clarify a comment
2018-08-15 15:14:21 -07:00
ashtneoi
bd2b54c23c
Bless tests
2018-08-15 15:14:21 -07:00
ashtneoi
a5b008c450
Test move-into-Fn/FnMut errors too
2018-08-15 15:14:21 -07:00
ashtneoi
6a24abbbc5
Fix compiletest JSON error message
2018-08-15 15:14:21 -07:00
ashtneoi
3c3a7bad49
Allocate fewer Strings at a time
2018-08-15 15:14:21 -07:00
ashtneoi
81c27c6af7
Add another FIXME about suggestions
2018-08-15 15:14:21 -07:00
ashtneoi
9a0020a879
Bless UI tests
2018-08-15 15:14:21 -07:00
ashtneoi
d6dbdee739
Remove incorrect space
2018-08-15 15:14:21 -07:00
ashtneoi
a583aa642e
Remove unnecessary comment
...
Turns out I didn't read the original comment correctly and had some
confusion about how MIR uses temporaries.
2018-08-15 15:14:21 -07:00
ashtneoi
0a82abc47b
Test patterns in tuples
2018-08-15 15:14:21 -07:00
ashtneoi
6cf4e14ac0
Coalesce var-is-not-Copy notes per move
2018-08-15 15:14:21 -07:00
ashtneoi
20ae08bda6
Dedup suggestions
2018-08-15 15:14:21 -07:00
ashtneoi
40b5118c8a
Remove unnecessary underscore
2018-08-15 15:14:21 -07:00
ashtneoi
8135372ed1
Change TODOs to FIXMEs
2018-08-15 15:14:21 -07:00
ashtneoi
10aaba8dbe
Make move errors more consistent with typeck errors
2018-08-15 15:14:21 -07:00
ashtneoi
701c74e067
Make move error suggestions clearer
2018-08-15 15:14:21 -07:00
ashtneoi
b05e9a7f77
Add backquotes around variable name
2018-08-15 15:14:21 -07:00
ashtneoi
8080bdf275
Fix move errors for index expressions
...
The suggestion logic gave up too early, which kept it from suggesting
borrowing index expressions.
2018-08-15 15:14:21 -07:00
ashtneoi
54ddb36ce7
Test move errors for index expressions
2018-08-15 15:14:21 -07:00
ashtneoi
1e87908c52
Accept whitespace between &
and mut
2018-08-15 15:14:21 -07:00
ashtneoi
3a5812bdd9
Add more TODOs
2018-08-15 15:14:21 -07:00
ashtneoi
a05f82fd2d
Suggest match ergonomics, not ref
/ref mut
2018-08-15 15:14:21 -07:00
ashtneoi
7b10133297
Fix some random stuff
2018-08-15 15:10:43 -07:00
Felix S. Klock II
cd89fdbbc9
Removed ignore-test-compare-mode-nll
from unboxed-closures tests
...
by strengthening the tests (by adding no-op references to the
closures doing the borrows after the conflicting borrows, thus
forcing the lifetimes to resemble lexical scopes even under NLL).
2018-08-15 23:47:29 +02:00
Felix S. Klock II
f8084c675e
Removed ignore-test-compare-mode-nll
from hashmap-lifetimes.rs
...
by strengthening the test there.
2018-08-15 23:47:28 +02:00
Felix S. Klock II
fb3ccb2aa2
Removed ignore-test-compare-mode-nll
from borrowck-closures-two-mut-fail.rs
...
by strengthening the tests there.
2018-08-15 23:47:28 +02:00
Felix S. Klock II
dd9f84f2d3
Removed ignore-test-compare-mode-nll
from borrowck-closures-unique.rs
...
by strengthening the tests there.
In almost all cases the strengthening amount to just encoding a use
that models the original lexical lifetime. A more invasive revision
was made in one case where it seems the actual issue is MIR-borrowck's
greater "knowledge" of unreachable code in the control flow...
2018-08-15 23:47:28 +02:00
Esteban Küber
1b5e29ae6f
Do not emit "incorrect close delimiter" twice in the same place
2018-08-15 14:26:03 -07:00
Esteban Küber
2a74d7924a
Tweak unclosed delimiter parser error
2018-08-15 13:18:34 -07:00
Esteban Küber
5a0a38a46f
Do not suggest conversion method that is already there
2018-08-15 13:04:24 -07:00
bors
d767ee1161
Auto merge of #53400 - GuillaumeGomez:rollup, r=GuillaumeGomez
...
Rollup of 8 pull requests
Successful merges:
- #52453 (improve diagnostics for tests with custom return values)
- #53271 (use ? to simplify `TransitiveRelation.maybe_map`)
- #53279 (Extend documentation of `rustc_on_unimplemented`)
- #53342 (fix error for unsized packed struct field)
- #53344 (Add doc examples for std::alloc::{alloc,alloc_zeroed}.)
- #53368 (Ignore test that fails on stage1)
- #53388 (Fix links' color)
- #53396 (Fix since of Iterator::flatten to be a proper semver)
Failed merges:
r? @ghost
2018-08-15 19:39:54 +00:00
Pazzaz
b063bd4616
Test VecDeque append not dropping twice
2018-08-15 19:42:07 +02:00
Guillaume Gomez
b9a51ce2f6
Rollup merge of #53396 - matklad:fix-flatten-since, r=varkor
...
Fix since of Iterator::flatten to be a proper semver
r? @kennytm
2018-08-15 19:20:29 +02:00
Guillaume Gomez
7acfa8615a
Rollup merge of #53388 - GuillaumeGomez:fix-links-color, r=frewsxcv
...
Fix links' color
Fixes #53375 .
Problem was coming from the minifier.
r? @frewsxcv
2018-08-15 19:20:28 +02:00
Guillaume Gomez
a9a67a3a76
Rollup merge of #53368 - matthewjasper:only-stage-2, r=varkor
...
Ignore test that fails on stage1
The error code is not emitted on stage1, so ignore this test there.
2018-08-15 19:20:26 +02:00
Guillaume Gomez
25839dd9c6
Rollup merge of #53344 - frewsxcv:frewsxcv-doc-ptr, r=ollie27
...
Add doc examples for std::alloc::{alloc,alloc_zeroed}.
None
2018-08-15 19:20:25 +02:00
Guillaume Gomez
6bea743d56
Rollup merge of #53342 - RalfJung:unsized-packed, r=cramertj
...
fix error for unsized packed struct field
It was really confusing to be told "only the last field of a struct may have a dynamically sized type" when only the last field *was* unsized.
2018-08-15 19:20:23 +02:00
Guillaume Gomez
8e4f2d115a
Rollup merge of #53279 - estebank:on-unimplemented-doc, r=GuillaumeGomez
...
Extend documentation of `rustc_on_unimplemented`
2018-08-15 19:20:22 +02:00
Guillaume Gomez
b941c8e7fb
Rollup merge of #53271 - llogiq:simplify-maybe-map, r=joshtriplett
...
use ? to simplify `TransitiveRelation.maybe_map`
I think this looks much clearer than the original.
2018-08-15 19:20:21 +02:00
Guillaume Gomez
d8815cfe7d
Rollup merge of #52453 - srijs:fix-52436, r=TimNN
...
improve diagnostics for tests with custom return values
This is an attempt at getting the ball rolling to improve the diagnostics for test functions that return custom `impl Termination` values (see #52436 ).
An alternative could be to use `eprintln!`, but including this in the panic message felt nicely consistent with how failing test assertions would be reported.
Let me know what you think!
2018-08-15 19:20:19 +02:00
bors
d679b57a3a
Auto merge of #53164 - davidtwco:issue-52663-span-decl-captured-variables, r=nikomatsakis
...
Provide span for declaration of captured variables
Part of #52663 .
r? @nikomatsakis
2018-08-15 17:03:39 +00:00
varkor
35a03c8052
Tidy: ignore non-Markdown files when linting for the Unstable Book
2018-08-15 18:01:37 +01:00
varkor
27f2a8420f
Remove outdated Unstable Book sections
2018-08-15 17:56:53 +01:00
varkor
23d10ec4cc
Visit all attributes for feature collection
2018-08-15 17:34:56 +01:00
Aleksey Kladov
1a0d3f0979
Fix since of Iterator::flatten to be a proper semver
2018-08-15 19:28:42 +03:00