about summary refs log tree commit diff
path: root/src/test/compile-fail
AgeCommit message (Collapse)AuthorLines
2016-08-24Auto merge of #35764 - eddyb:byegone, r=nikomatsakisbors-104/+0
Remove the old AST-based backend from rustc_trans. Starting with Rust 1.13, `--disable-orbit` , `-Z orbit=off` and `#[rustc_no_mir]` have been removed. Only the new MIR backend is left in the compiler, and only early const_eval uses ASTs from other crates. Filling drop (previously "zeroing drop"), `#[unsafe_no_drop_flag]` and associated unstable APIs are gone. Implementing `Drop` doesn't add a flag anymore to the type, all of the dynamic drop is function local. This is a [breaking-change], please use `Option::None` and/or `mem::forget` if you are unsure about your ability to prevent/control the drop of a value. In the future, `union` will be usable in some such cases. **NOTE**: DO NOT MERGE before we get the new beta as the stage0, there's some cruft to remove. All of this will massively simplify any efforts to implement (and as such it blocks) features such as `union`s, safe use of `#[packed]` or new type layout optimizations, not to mention many other experiments.
2016-08-24fixed compile-fail testAndre Bogus-2/+3
2016-08-24More robust testingKeith Yeung-0/+37
2016-08-24Rollup merge of #35961 - 0xmohit:pr/error-codes-E0445-E0454, r=GuillaumeGomezJonathan Turner-4/+12
Update E0445 and E0454 to new error format Fixes #35922. Fixes #35930. Part of #35233. r? @GuillaumeGomez
2016-08-24Rollup merge of #35920 - GuillaumeGomez:err_codes, r=jonathandturnerJonathan Turner-0/+137
Err codes r? @jonathandturner
2016-08-24Auto merge of #35883 - durka:gh35849, r=eddybbors-0/+16
typeck: use NoExpectation to check return type of diverging fn Fixes #35849. Thanks @eddyb.
2016-08-24Update E0445 and E0454 to new error formatMohit Agarwal-4/+12
Fixes #35922. Fixes #35930. Part of #35233. r? @GuillaumeGomez
2016-08-24Remove drop flags from structs and enums implementing Drop.Eduard Burtescu-84/+0
2016-08-24Disable old trans access via -Z orbit, #[rustc_no_mir] or --disable-orbit.Eduard Burtescu-20/+0
2016-08-24Add new error code testsGuillaume Gomez-0/+137
2016-08-23Rollup merge of #35939 - creativcoder:e0195, r=jonathandturnerGuillaume Gomez-0/+2
Update E0195 to new error format Fixes #35511 Part of #35233 r? @jonathandturner
2016-08-23fixed and extended tests, however...Andre Bogus-3/+14
...there is still one confusing thing – see the _BAZ functions, which appear to be elided in the `compile-fail` test and defaulted in the ´run-pass` test (if you uncomment line 73).
2016-08-23typeck: use NoExpectation to check return type of diverging fnAlex Burka-0/+16
This fixes #35849, a regression introduced by the typeck refactoring around TyNever/!.
2016-08-23Update E0195 to new error formatRahul Sharma-0/+2
2016-08-23fixed compile-fail testAndre Bogus-1/+2
2016-08-23Improve error message when failing to parse a blockJames Miller-0/+20
We want to catch this error: ``` if (foo) bar; ``` as it's valid syntax in other languages, and say how to fix it. Unfortunately it didn't care if the suggestion made sense and just highlighted the unexpected token. Now it attempts to parse a statement, and if it succeeds, it shows the help message. Fixes #35907
2016-08-23first attempt at implementing RFC 1623. This fixes #35897.Andre Bogus-0/+21
This is a work in progress. In particular, I want to add more tests, especially the compile-fail test is very bare-bones.
2016-08-22Update E0389 to the new format. #35630Ahmed Charles-0/+1
2016-08-22Rollup merge of #35858 - shyaamsundhar:patch-1, r=GuillaumeGomezJonathan Turner-0/+3
E0435, E0437 & E0438 New Error Format Part of #35801 , #35802 and #35803 r? @GuillaumeGomez Hi! Please review the changes.
2016-08-22Rollup merge of #35841 - kyrias:new-error-E0424, r=GuillaumeGomezJonathan Turner-2/+7
Update E0424 to the new error format Fixes #35797. Part of #35233. r? @GuillaumeGomez
2016-08-22Rollup merge of #35835 - crypto-universe:E0426, r=jonathandturnerJonathan Turner-1/+3
New format for E0426 Issue #35799 as a part of issue #35233 r? jonathandturner
2016-08-22Rollup merge of #35824 - GuillaumeGomez:err_codes, r=jonathandturnerJonathan Turner-0/+281
Err codes r? @jonathandturner
2016-08-22Rollup merge of #35820 - knight42:update-error-msg, r=jonathandturnerJonathan Turner-44/+85
Updated E0054, E0423 & E0432 to new error format Fixes #35791, #35796 and #35344, as part of #35233 r? @jonathandturner
2016-08-22Rollup merge of #35817 - wesleywiser:fix_35703, r=jonathandturnerJonathan Turner-0/+12
Update E0503 to the new format Fixes #35703 Part of #35233 r? @jonathandturner
2016-08-22Rollup merge of #35526 - munyari:e0033, r=jonathandturnerJonathan Turner-3/+9
Update E0033 to the new error format Part of #35233 Addresses #35498 "r? @jonathandturner
2016-08-22Rollup merge of #35360 - medzin:E0388, r=jonathandturnerJonathan Turner-0/+1
Updated error message E0388 Fixes #35339 as part of #35233. r? @GuillaumeGomez
2016-08-22Updated error message E0388Adam Medziński-0/+1
2016-08-22Remove E0455 test (for now)ggomez-14/+0
2016-08-22 Updated E0423 to new formatKnight-2/+7
2016-08-22 Updated E0432 to new formatKnight-40/+74
2016-08-22Updated E0054 to new formatKnight-2/+4
2016-08-21Auto merge of #35777 - nrc:carrier3, r=@nikomatsakisbors-0/+27
Carrier trait (third attempt) This adds a `Carrier` trait to operate with `?`. The only public implementation is for `Result`, so effectively the trait does not exist, however, it ensures future compatibility for the `?` operator. This is not intended to be used, nor is it intended to be a long-term solution. Although this exact PR has not been through Crater, I do not expect it to be a breaking change based on putting numerous similar PRs though Crater in the past. cc: * [? tracking issue](https://github.com/rust-lang/rust/issues/31436) * [previous PR](https://github.com/rust-lang/rust/pull/35056) * [RFC issue](https://github.com/rust-lang/rfcs/issues/1718) for discussion of long-term Carrier trait solutions. r? @nikomatsakis
2016-08-21Auto merge of #35776 - jseyfried:more_groundwork, r=nrcbors-3/+2
resolve: More groundwork for `item_like_imports` (RFC 1560) r? @nrc
2016-08-21Update lib.rsShyam Sundar B-0/+3
Update lib.rs Update lib.rs Update E0438.rs Update E0437.rs Update E0435.rs
2016-08-20Update E0503 to the new formatWesley Wiser-0/+12
Fixes #35703 Part of #35233
2016-08-20Update E0424 to the new error formatJohannes Löthberg-2/+7
Fixes #35797. Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
2016-08-20Rollup merge of #35839 - jonathandturner:error_touchup, r=AatchJonathan Turner-18/+18
Wording fixes in error messages This PR is largely wording fixes to existing PRs that I found going back through the ones that have already been updated. Sometimes seeing the message in context made me think "oh there's a better wording!" There's one additional fix. This will also prevent the secondary underlining of derive call (since they look like macros to the system in the way I was using): ``` error[E0184]: the trait `Copy` may not be implemented for this type; the type has a destructor --> src/test/compile-fail/E0184.rs:11:10 | 11 | #[derive(Copy)] //~ ERROR E0184 | ^^^^ | | | in this macro invocation ``` Is now just: ``` error[E0184]: the trait `Copy` may not be implemented for this type; the type has a destructor --> src/test/compile-fail/E0184.rs:11:10 | 11 | #[derive(Copy)] //~ ERROR E0184 | ^^^^ ```
2016-08-20Rollup merge of #35831 - trixnz:error-428, r=jonathandturnerJonathan Turner-3/+14
Update E0428 to new format Fixes #35798 as part of #35233. r? @jonathandturner
2016-08-20Rollup merge of #35818 - wdv4758h:E0133-label, r=AatchJonathan Turner-4/+4
Fix label messages for E0133 Issue #35789
2016-08-20Rollup merge of #35812 - mlayne:E0232, r=jonathandturnerJonathan Turner-1/+4
Update error format for E0232 Fixes #35795, as part of #35233. Excited to make my first contribution to rustc! r? @jonathandturner
2016-08-20Rollup merge of #35804 - pliniker:master, r=jonathandturnerJonathan Turner-1/+3
Update error message for E0084 Fixes #35792 as part of #35233 r? @jonathandturner
2016-08-20Rollup merge of #35780 - clementmiao:E0396_new_err_format, r=jonathandturnerJonathan Turner-0/+2
updated E0396 to new error format Updated E0396 to new error format. Part of #35233 Fixes #35779 Thanks again for letting me help! r? @jonathandturner
2016-08-20Rollup merge of #35778 - clementmiao:E0395_new_error_format, r=jonathandturnerJonathan Turner-1/+2
updated E0395 to new error format Updated E0395 to new error format. Part of #35233 Fixes #35693 Thanks again for letting me help! r? @jonathandturner
2016-08-20Fix broken tests for E0428trixnz-1/+9
2016-08-19wording fixes in error messagesJonathan Turner-18/+18
2016-08-19New format for E0426crypto-universe-1/+3
Issue #35799 as a part of issue #35233 ?r jonathandturner
2016-08-19Update E0428 to new formattrixnz-2/+5
2016-08-19Add new error code testsGuillaume Gomez-0/+295
2016-08-19Fix label messages for E0133Chiu-Hsiang Hsu-4/+4
Issue #35789
2016-08-19Remove the Option and bool impls for carrier and add a dummy implNick Cameron-0/+27
The dummy impl should ensure the same type checking behaviour as having other (real) Carrier impls.