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
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
cea73d6341
update recently moved tests
2018-08-15 13:17:04 -07:00
Esteban Küber
e5e14d307b
When closure with no arguments was expected, suggest wrapping
2018-08-15 13:05:01 -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
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
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
Michael Woerister
d662083a6c
Use CGU name as LLVM module name and add some caching to CGU name generation.
2018-08-15 14:50:54 +02:00
Ralf Jung
2fd2f9cfaf
fix error for unsized packed struct field
2018-08-15 10:53:26 +02:00
varkor
bc8cead070
Account for warning in existing GAT tests
2018-08-15 02:08:20 +01:00
varkor
d305f68cb9
Warn when generic_associated_types feature gate is enabled
2018-08-15 02:02:52 +01:00
Felix S. Klock II
c7041a60a5
Updated the most glaring instances of weak tests w.r.t. NLL that came from #53196 .
...
See also the bulletpoint list on #53351 .
2018-08-15 01:16:05 +02:00
Matthew Jasper
0e43e6fef2
Ignore test that fails on stage1
2018-08-14 22:42:16 +01:00
Vadim Petrochenkov
097c40cf6e
syntax: Enforce attribute grammar in the parser
2018-08-15 00:05:55 +03:00
Matthew Jasper
a19db49c86
Update former compile-fail tests
2018-08-14 21:26:33 +01:00
varkor
83d5a60cf6
Feature gate where clauses on associated type impls
2018-08-14 21:08:21 +01:00
Matthew Jasper
371c23fe34
Update tests
2018-08-14 20:35:47 +01:00
Pramod Bisht
b70be5bc79
Adddressed #51602
2018-08-14 19:05:27 +00:00
David Wood
5532e9dec5
Improved how upvars are detected when presenting errors using prefixes.
2018-08-14 18:38:57 +02:00
kennytm
8e7f69af9c
Rollup merge of #53317 - estebank:abolish-ice, r=oli-obk
...
Mark prior failure to avoid ICE
Fix #53251
2018-08-14 23:59:17 +08:00
David Wood
2c6b0e5cf7
Label definition of captured variables in errors.
2018-08-14 17:36:03 +02:00
memoryruins
f4bed39c5c
Add regression test for issue #30104
...
#30104
2018-08-14 10:26:47 -04:00
memoryruins
a7e877ebdd
Add regression test for issue #48697
...
#48697
2018-08-14 10:25:54 -04:00
David Wood
7b026568f7
Moved problematic tests on x86_64-gnu-nopt back to compile-fail.
2018-08-14 11:12:13 +02:00
David Wood
d775e6132c
Moved problematic tests on x86_64-pc-windows-gnu back to compile-fail.
2018-08-14 11:12:12 +02:00
David Wood
67ec37b608
Moved problematic tests on armhf-gnu back to compile-fail.
2018-08-14 11:12:12 +02:00
David Wood
4b2464592c
Moved problematic tests on wasm32-unknown back to compile-fail.
2018-08-14 11:12:12 +02:00
David Wood
f7f7c1eef3
Moved problematic tests on dist-x86_64-musl back to compile-fail.
2018-08-14 11:12:12 +02:00
David Wood
b8b7a3c30e
Moved problematic tests on i586-unknown-linux-gnu back to compile-fail.
2018-08-14 11:12:12 +02:00
David Wood
768998a8de
Normalize tests for i686 Windows.
2018-08-14 11:12:11 +02:00
David Wood
cd12c82210
Fixed 'no such file or directory' mismatch between Windows and Linux.
2018-08-14 11:12:11 +02:00
David Wood
0cfc17358a
Moved problematic tests on Windows back to compile-fail.
2018-08-14 11:12:11 +02:00
David Wood
a922642455
Moved tests back to compile-test if they don't work on ui.
2018-08-14 11:12:11 +02:00
David Wood
7c13eb42d4
Fix no-link-with-link-args by introducing another normalization.
2018-08-14 11:12:10 +02:00
David Wood
003b5a8b0f
Normalize crateresolve1.rs to support different candidate ordering between executions.
2018-08-14 11:12:10 +02:00
David Wood
8e7b9b8117
Suggested trait implementation ordering is now deterministic.
2018-08-14 11:12:10 +02:00
David Wood
dc5a6571a6
Fixed truncated path not being normalized.
2018-08-14 11:12:10 +02:00
David Wood
2ad663c1cd
Normalize test build directory and root build directory.
2018-08-14 11:12:10 +02:00
David Wood
ed79c31f09
Tidy no longer fails when there are no files or subdirectories in a test directory.
2018-08-14 11:12:09 +02:00
David Wood
3fc7ab2373
Merged migrated compile-fail tests and ui tests. Fixes #46841 .
2018-08-14 11:12:09 +02:00
David Wood
3e0a407988
Updated new UI tests to pass with NLL compare-mode
...
These tests need a review to ensure that those marked as
ignore-compare-mode-nll should be ignored and that this isn't a bug in NLL.
2018-08-14 10:38:00 +02:00
David Wood
b16a30677f
Moved compile-fail tests to ui tests.
2018-08-14 10:38:00 +02:00
Eduard-Mihai Burtescu
13bc0b5a48
rustc_resolve: also inject canaries to detect block scopes shadowing uniform_paths imports.
2018-08-14 07:06:50 +03:00