about summary refs log tree commit diff
path: root/src/test/compile-fail
AgeCommit message (Collapse)AuthorLines
2016-10-11Auto merge of #37095 - petrochenkov:metactor, r=alexcrichtonbors-0/+18
Temporary fix for metadata decoding for struct constructors Same as https://github.com/rust-lang/rust/pull/37078, but for nightly. Ideally, metadata lookup functions should "just work" for constructor ids, but this fixes the issue as well. Fixes https://github.com/rust-lang/rust/issues/37026 r? @alexcrichton
2016-10-11Auto merge of #37090 - GuillaumeGomez:rollup, r=GuillaumeGomezbors-2/+7
Rollup of 9 pull requests - Successful merges: #36679, #36699, #36997, #37040, #37060, #37065, #37072, #37073, #37081 - Failed merges:
2016-10-11Temporary fix for metadata decoding for struct constructorsVadim Petrochenkov-0/+18
2016-10-12Deprecate `Reflect`Nick Cameron-3/+0
[tracking issue](https://github.com/rust-lang/rust/issues/27749)
2016-10-12Stabilise attributes on statements.Nick Cameron-12/+8
Note that attributes on expressions are still unstable and are behind the `stmt_expr_attributes` flag. cc [Tracking issue](https://github.com/rust-lang/rust/issues/15701)
2016-10-12Stabilise `?`Nick Cameron-21/+1
cc [`?` tracking issue](https://github.com/rust-lang/rust/issues/31436)
2016-10-11Rollup merge of #37060 - jfirebaugh:E0303, r=jonathandturnerGuillaume Gomez-2/+7
Update E0303 to new error format Fixes #35790 r? @jonathandturner
2016-10-11Auto merge of #36871 - petrochenkov:pdderr, r=nikomatsakisbors-57/+38
Turn compatibility lint `match_of_unit_variant_via_paren_dotdot` into a hard error The lint was introduced 10 months ago and made deny-by-default 7 months ago. In case someone is still using it, https://github.com/rust-lang/rust/pull/36868 contains a stable replacement. r? @nikomatsakis
2016-10-11Auto merge of #36825 - sbwtw:master, r=alexcrichtonbors-2/+10
add println!() macro with out any arguments lets add println!() to write "\n". like java https://docs.oracle.com/javase/7/docs/api/java/io/PrintStream.html#println()
2016-10-11Add test.Jeffrey Seyfried-3/+3
2016-10-11Clean up the scopes of expanded `#[macro_use]` imports.Jeffrey Seyfried-9/+6
2016-10-09Update E0303 to new error formatJohn Firebaugh-2/+7
2016-10-06Rollup merge of #36932 - michaelwoerister:type-alias-dep-graph-test, ↵Jonathan Turner-0/+56
r=nikomatsakis incr.comp.: Add test case for dependency graph of type aliases. r? @nikomatsakis
2016-10-06Rollup merge of #36909 - GuillaumeGomez:merge_e0002_e0004, r=arielb1Jonathan Turner-1/+1
Merge E0002 into E0004 Fixes #36724. r? @jonathandturner
2016-10-05Turn compatibility lint `match_of_unit_variant_via_paren_dotdot` into a hard ↵Vadim Petrochenkov-57/+38
error
2016-10-04Move pattern resolution checks from typeck to resolveVadim Petrochenkov-55/+74
Make error messages more precise
2016-10-04Fix cross-crate resolution of half-items created by export shadowingVadim Petrochenkov-0/+504
2016-10-04Rollup merge of #36941 - martinhath:issue-21837, r=alexcrichtonManish Goregaokar-0/+20
Add regression test for Issue #21837 This PR adds a regression test for Issue #21837, as explained in the comments of the issue.
2016-10-04Rollup merge of #36798 - gavinb:fix/36164, r=GuillaumeGomezManish Goregaokar-22/+21
Improve error message and snippet for "did you mean `x`" - Fixes #36164 - Part of #35233 Based on the standalone example https://is.gd/8STXMd posted by @nikomatsakis and using the third formatting option mentioned in #36164 and agreed by @jonathandturner. Note however this does not address the question of [how to handle an empty or unknown suggestion](https://github.com/rust-lang/rust/issues/36164#issuecomment-244460024). @nikomatsakis any suggestions on how best to address that part?
2016-10-03Add test for Issue #21837Martin Thoresen-0/+20
2016-10-03incr.comp.: Add test case for dependency graph of type aliases.Michael Woerister-0/+56
2016-10-03Auto merge of #36767 - jseyfried:enforce_rfc_1560_shadowing, r=nrcbors-1/+43
Enforce the shadowing restrictions from RFC 1560 for today's macros This PR enforces a weakened version of the shadowing restrictions from RFC 1560. More specifically, - If a macro expansion contains a `macro_rules!` macro definition that is used outside of the expansion, the defined macro may not shadow an existing macro. - If a macro expansion contains a `#[macro_use] extern crate` macro import that is used outside of the expansion, the imported macro may not shadow an existing macro. This is a [breaking-change]. For example, ```rust macro_rules! m { () => {} } macro_rules! n { () => { macro_rules! m { () => {} } //< This shadows an existing macro. m!(); //< This is inside the expansion that generated `m`'s definition, so it is OK. } } n!(); m!(); //< This use of `m` is outside the expansion, so it causes the shadowing to be an error. ``` r? @nrc
2016-10-02Use a distinct error code for "if may be missing an else clause"John Firebaugh-1/+1
Introduce the possibility of assigning distinct error codes to the various origin types of E0308. Start by assigning E0317 for the "IfExpressionWithNoElse" case, and write a long diagnostic specific to this case. Fixes #36596
2016-10-02Merge E0002 into E0004Guillaume Gomez-1/+1
2016-10-02Auto merge of #36862 - chamoysvoice:E0220, r=GuillaumeGomezbors-3/+5
Update E0220 error format @jonathandturner Part of #35233 . Fixes #35385.
2016-10-02Fix fallout in tests.Jeffrey Seyfried-1/+1
2016-10-02Add test.Jeffrey Seyfried-0/+42
2016-10-02Improve error message and snippet for "did you mean `x`"Gavin Baker-22/+21
- Fixes #36164 - Part of #35233 - handles unknown fields - uses UI-style tests - update all related tests (cfail, ui, incremental)
2016-10-01Auto merge of #36885 - Manishearth:rollup, r=Manishearthbors-16/+64
Rollup of 6 pull requests - Successful merges: #36865, #36872, #36873, #36877, #36880, #36882 - Failed merges:
2016-10-01Rollup merge of #34764 - pnkfelix:attrs-on-generic-formals, r=eddybManish Goregaokar-0/+229
First step for #34761
2016-10-01Rollup merge of #36882 - jseyfried:fix_36881, r=eddybManish Goregaokar-0/+14
resolve: fix incorrect code in `module_to_string` Fixes #36881. r? @nrc or @eddyb
2016-10-01Rollup merge of #36873 - GuillaumeGomez:e0035_e0036, r=jonathandturnerManish Goregaokar-16/+50
Update E0035, E0036 and E0370 to new error format Fixes #35634. Fixes #35206. Fixes #35207. r? @jonathandturner
2016-10-01Fix `module_to_string`.Jeffrey Seyfried-0/+14
2016-09-30Update E0370 to new error formatGuillaume Gomez-16/+48
2016-09-30Update E0036 to new error formatGuillaume Gomez-0/+1
2016-09-30TidyBrian Anderson-2/+2
2016-09-30Adding ignore-emscripten to failing tests.Ross Schulman-0/+4
2016-09-30Update E0220 error formatJesus Garlea-3/+5
squash! Update E0220 error format Update Error E0220 to new format
2016-09-30Update E0035 to new error formatGuillaume Gomez-0/+1
2016-09-30add println!() macro with out any arguments石博文-2/+10
2016-09-28Rollup merge of #36757 - KiChjang:E0025-format, r=jonathandturnerJonathan Turner-9/+21
Update E0025 to new error format Part of #35233. Fixes #35198. r? @jonathandturner
2016-09-28Rollup merge of #36376 - GuillaumeGomez:e0050, r=jonathandturnerJonathan Turner-1/+8
Update E0050 to new error format Part of #35233. Fixes #35211. r? @jonathandturner
2016-09-28Update E0050 to new error formatGuillaume Gomez-1/+8
2016-09-27Auto merge of #36601 - jseyfried:build_reduced_graph_in_expansion, r=nrcbors-7/+13
Assign def ids and build the module graph during expansion r? @nrc
2016-09-27Auto merge of #36761 - jonathandturner:E0425_E0446_E0449, r=nrcbors-45/+74
Update E0425, E0446, E0449 This addresses https://github.com/rust-lang/rust/issues/35343, https://github.com/rust-lang/rust/issues/35923, and https://github.com/rust-lang/rust/issues/35924. Part of https://github.com/rust-lang/rust/issues/35233 Specifically, this adds labels to these error messages following the suggestions in the attached bugs. r? @nrc
2016-09-27Fix fallout in tests.Jeffrey Seyfried-7/+13
2016-09-26Auto merge of #36764 - jonathandturner:rollup, r=jonathandturnerbors-6/+122
Rollup of 14 pull requests - Successful merges: #36563, #36574, #36586, #36662, #36663, #36669, #36676, #36721, #36723, #36727, #36729, #36742, #36754, #36756 - Failed merges:
2016-09-26Rollup merge of #36756 - alygin:e0512-new-format, r=jonathandturnerJonathan Turner-0/+1
New error format for E0512 Part of #35233, fixes #36107 r? @jonathandturner
2016-09-26Rollup merge of #36723 - GuillaumeGomez:e0513, r=jonathandturnerJonathan Turner-0/+19
E0513 Part of #35233 r? @jonathandturner
2016-09-26Rollup merge of #36721 - TimNN:infinite-emptiness, r=nrcJonathan Turner-0/+62
reject macros with empty repetitions Fixes #5067 by checking the lhs of `macro_rules!` for repetitions which could match an empty token tree.