about summary refs log tree commit diff
path: root/src/test/compile-fail
AgeCommit message (Collapse)AuthorLines
2017-12-13Mir typeck Cast for Unsize valueSantiago Pastorino-0/+24
2017-12-13Mir typeck Cast for ClosureFnPtr valueSantiago Pastorino-0/+22
2017-12-13Mir typeck Cast for UnsafeFnPtr valueSantiago Pastorino-0/+24
2017-12-13Mir typeck Cast for ReifyFnPtr valueSantiago Pastorino-0/+52
2017-12-13Check functions predicatesSantiago Pastorino-0/+28
2017-12-13Check Aggregate predicatesSantiago Pastorino-0/+28
2017-12-13Check Repeat RvalueSantiago Pastorino-0/+39
2017-12-13Auto merge of #46613 - petrochenkov:absext, r=nikomatsakisbors-0/+84
Resolve absolute paths as extern under a feature flag cc https://github.com/rust-lang/rust/issues/44660 r? @nikomatsakis
2017-12-12Auto merge of #46570 - AgustinCB:issue-46553, r=oli-obkbors-2/+0
Ignore `unsopported constant expr` error Fixes #46553
2017-12-13Resolve absolute paths as extern under a feature flagVadim Petrochenkov-0/+84
2017-12-12Auto merge of #46598 - davidtwco:issue-46471, r=arielb1bors-9/+15
MIR borrowck: error message confuses locals and temporaries Fixes #46471 and fixes #46472 (see [this Gitter comment](https://gitter.im/rust-impl-period/WG-compiler-nll?at=5a2d5cb53ae2aa6b3facf0c2)). r? @arielb1
2017-12-12Auto merge of #46657 - nikomatsakis:resolve-lifetimes-query, r=arielb1bors-42/+2
move `resolve_lifetimes` into a proper query Now that we made `resolve_lifetimes` into a query, elision errors no longer abort compilation, which affects some tests. Also, remove `dep_graph_crosscontaminate_tables` -- there is no a path in the dep-graph, though red-green handles it. The same scenario is (correctly) tested by issue-42602.rs in any case. r? @michaelwoerister
2017-12-11Updated existing tests with new error messages.David Wood-9/+15
2017-12-11Auto merge of #46558 - arielb1:union-borrow-refactor, r=nikomatsakisbors-8/+19
Clean up the MIR borrowck code I want to avoid the new code to start with so much technical debt. r? @nikomatsakis
2017-12-11move `resolve_lifetimes` into a proper queryNiko Matsakis-42/+2
Now that we made `resolve_lifetimes` into a query, elision errors no longer abort compilation, which affects some tests. Also, remove `dep_graph_crosscontaminate_tables` -- there is no a path in the dep-graph, though red-green handles it. The same scenario is (correctly) tested by issue-42602.rs in any case.
2017-12-11Merge remote-tracking branch 'origin/master' into miriOliver Schneider-4112/+164
2017-12-10Auto merge of #46248 - ↵bors-4/+55
zackmdavis:one_time_private_enum_variant_reexport_error, r=estebank one-time diagnostics for private enum variants glob reëxport ![private_enum_reexport](https://user-images.githubusercontent.com/1076988/33224719-4e5805f0-d121-11e7-8bc0-a708a277a5db.png) r? @estebank
2017-12-10centralize `does_not_live_long_enough` error reportingAriel Ben-Yehuda-4/+8
2017-12-10use `places_conflict` to handle reassignmentAriel Ben-Yehuda-4/+11
This fixes the handling of reassignment of struct fields.
2017-12-09one-time diagnostic and suggestion for reëxporting private variant errorZack M. Davis-4/+55
We issue just one message for an erroneous glob private variant reëxport (using the Session's one-time-diagnostics capability), but individual (non-glob) such erroneous reëxports still get their own messages. The suggestion to make the enum public is also one-time. The enum variant reëxport error didn't have an associated error code (and remedying this here is deemed out of the scope of this commit), so we resort to the expediency of using 0 as the `DiagnosticMessageId` value. Adding Debug to NameResolution was helpful in development. This resolves #46209.
2017-12-09Auto merge of #46572 - vramana:fix-45638, r=estebankbors-2/+13
Fix bad error message for cannot_reborrow_already_uniquely_borrowed
2017-12-08Fix bad error message for cannot_reborrow_already_uniquely_borrowedRamana Venkata-2/+13
Fixes #45638
2017-12-07Auto merge of #46497 - AgustinCB:issue-46311, r=petrochenkovbors-0/+63
Modify message for keyword as identifier name This is a temporary solution to #46311. The message is generic enough to cover both cases and is probably a fine enough solution to the specific problem described in the task. However, the underlying reason for this to be wrong is that `next_token_inner` returns `Lifetime` even if the token is a label. That's not simple, as the syntax for both can be quite similar and it may need to take a look to the next token to make a decision. I'm not sure I have enough knowledge about the project to be able to solve that (yet!), so I thought I'll fix the immediate problem first.
2017-12-07Ignore `unsopported constant expr` errorAgustin Chiappe Berrini-2/+0
2017-12-07Auto merge of #46532 - est31:master, r=est31bors-4099/+0
Allow feature-gate tests to live in ui/ and migrate most of the tests from compile-fail The PR consists of three commits: 1. change tidy to allow feature-gate tests to live in ui/ 2. migrate some feature gate tests to ui/ with renaming only 3. migrate some feature gate tests to ui/ with also removing `// gate-test-...` lines and renaming them to the standard `feature-gate-<feat-name>.rs` format.
2017-12-07region-ebr-does-not-outlive-static: reuse old test insteadNiko Matsakis-3/+13
2017-12-07Migrate even more feature gate tests to uiest31-893/+0
We also rename some of the files to conform to the feature-gate-<feat_name>.rs pattern that is most common.
2017-12-07Migrate a few feature gate tests to uiest31-3206/+0
Renames only in this commit, and obviously .stderr file additions.
2017-12-07remove unnecessary changesAgustin Chiappe Berrini-8/+4
2017-12-07address commentsAgustin Chiappe Berrini-3/+8
2017-12-07Auto merge of #46528 - CensoredUsername:stabilize_abi_sysv64, r=arielb1bors-19/+0
Stabilize abi_sysv64 Closes #36167, stabilizing the use of the "sysv64" ABI on x64 platforms where it is not the default ABI. FCP on this is complete in the tracking issue.
2017-12-06Auto merge of #46268 - arielb1:union-borrow, r=nikomatsakisbors-25/+28
MIR borrowck: implement union-and-array-compatible semantics Fixes #44831. Fixes #44834. Fixes #45537. Fixes #45696 (by implementing DerefPure semantics, which is what we want going forward). r? @nikomatsakis
2017-12-06and refactor to just move the checkingAgustin Chiappe Berrini-0/+62
2017-12-06Update miri to rustc changesOliver Schneider-1103/+4187
2017-12-06Stabilize abi_sysv64CensoredUsername-19/+0
2017-12-06convert errors to warningsAriel Ben-Yehuda-0/+2
2017-12-06fix borrows across loops, libcore *almost* compilesAriel Ben-Yehuda-13/+3
2017-12-06handle gen/kill sets togetherAriel Ben-Yehuda-1/+5
2017-12-06fix handling of CallScopeDataAriel Ben-Yehuda-2/+8
This fixes the tests for issue #29793
2017-12-06improve conflict error reportingAriel Ben-Yehuda-2/+2
2017-12-06MIR borrowck: implement union-and-array-compatible semanticsAriel Ben-Yehuda-8/+11
Fixes #44831. Fixes #44834. Fixes #45537. Fixes #45696 (by implementing DerefPure semantics, which is what we want going forward).
2017-12-05convert the new conflicts to a soft errorAriel Ben-Yehuda-0/+1
2017-12-05refactor a bitAriel Ben-Yehuda-0/+29
2017-12-04make `resolve_regions_and_report_errors` take an `OutlivesEnv`Niko Matsakis-0/+37
This revealed some shortcomings, one of which is fixed. Fixes #45937.
2017-12-03add and unignore testsAriel Ben-Yehuda-0/+23
2017-12-02Auto merge of #46256 - estebank:suggest-deref, r=arielb1bors-1/+1
Use suggestions instead of notes ref mismatches On type mismatch errors, use a suggestion when encountering minimal differences in type differences due to refs, instead of a note.
2017-12-02Auto merge of #45904 - sunjay:gat-parser, r=nikomatsakisbors-0/+28
Generic Associated Types Parsing & Name Resolution Hi! This PR adds parsing for generic associated types! :tada: :tada: :tada: Tracking Issue: #44265 ## Notes For Reviewers * [x] I still need to add the stdout and stderr files to my ui tests. It takes me a *long* time to compile the compiler locally, so I'm going to add this as soon as possible in the next day or so. * [ ] My current ui tests aren't very good or very thorough. I'm reusing the `parse_generics` and `parse_where_clause` methods from elsewhere in the parser, so my changes work without being particularly complex. I'm not sure if I should duplicate all of the generics test cases for generic associated types. It might actually be appropriate to duplicate everything here, since we don't want to rely on an implementation detail in case it changes in the future. If you think so too, I'll adapt all of the generics test cases into the generic associated types test cases. * [ ] There is still more work required to make the run-pass tests pass here. In particular, we need to make the following errors disappear: ``` error[E0110]: lifetime parameters are not allowed on this type --> ./src/test/run-pass/rfc1598-generic-associated-types/streaming_iterator.rs:23:41 | 23 | bar: <T as StreamingIterator>::Item<'static>, | ^^^^^^^ lifetime parameter not allowed on this type ``` ``` error[E0261]: use of undeclared lifetime name `'a` --> ./src/test/run-pass/rfc1598-generic-associated-types/iterable.rs:15:47 | 15 | type Iter<'a>: Iterator<Item = Self::Item<'a>>; | ^^ undeclared lifetime ``` There is a FIXME comment in streaming_iterator. If you uncomment that line, you get the following: ``` error: expected one of `!`, `+`, `,`, `::`, or `>`, found `=` --> ./src/test/run-pass/rfc1598-generic-associated-types/streaming_iterator.rs:29:45 | 29 | fn foo<T: for<'a> StreamingIterator<Item<'a>=&'a [i32]>>(iter: T) { /* ... */ } | ^ expected one of `!`, `+`, `,`, `::`, or `>` here ``` r? @nikomatsakis
2017-12-01Use suggestions instead of notes ref mismatchesEsteban Küber-1/+1
On type mismatch errors, use a suggestion when encountering minimal differences in type differences due to refs, instead of a note.
2017-12-02Rollup merge of #45880 - arielb1:never-coerce, r=nikomatsakiskennytm-3/+17
make coercions to `!` in unreachable code a hard error This was added to cover up a lazy extra semicolon in #35849, but does not actually make sense. This is removed as a part of the stabilization of `never_type`.
2017-12-01Auto merge of #46236 - davidtwco:issue-46023, r=arielb1bors-0/+22
MIR-borrowck: immutable unique closure upvars can be mutated Fixes #46023 and #46160 (see [this comment](https://github.com/rust-lang/rust/pull/46236#issuecomment-347204874)).