about summary refs log tree commit diff
path: root/src/test/compile-fail
AgeCommit message (Collapse)AuthorLines
2016-08-30Guard against platforms on which the sysv64 calling convention is not valid ↵CensoredUsername-0/+6
in non-codegen tests. Remove false positive in a test that relied on the exact formatting of an error string and rewrite the sysv64 register allocation test at it was triggering undefined behaviour
2016-08-30Feature gate the sysv64 abi as feature(abi_sysv64) and add testsCensoredUsername-0/+19
2016-08-30Auto merge of #36126 - GuillaumeGomez:rollup, r=GuillaumeGomezbors-4/+33
Rollup of 16 pull requests - Successful merges: #35418, #35759, #35862, #35863, #35895, #35962, #35977, #35993, #35997, #36054, #36056, #36060, #36086, #36100, #36103, #36125 - Failed merges: #35771, #35810
2016-08-30Rollup merge of #36125 - gavinb:error_msgs_p1, r=jonathandturnerGuillaume Gomez-0/+4
Update Error format for E0164, E0165, E0184 Part of #35233 r? @jonathandturner
2016-08-30Rollup merge of #36103 - zjhmale:fix-E0089, r=jonathandturnerGuillaume Gomez-1/+3
Update E0089 to new error format Fixes #35227. Part of #35233. r? @jonathandturner
2016-08-30Rollup merge of #36100 - 0xmohit:pr/error-code-E0260, r=jonathandturnerGuillaume Gomez-1/+4
Update E0260 to new error format Updates #35515. Part of #35233. r? @jonathandturner
2016-08-30Rollup merge of #36060 - paulfanelli:update-e0463-error-msg, r=jonathandturnerGuillaume Gomez-1/+3
Update E0463 error message to new format Fixes #35934 as part of #35233 r? @jonathandturner
2016-08-30Rollup merge of #36056 - birryree:E0194_new_error_format, r=jonathandturnerGuillaume Gomez-1/+3
Update E0194 to new error format Fixes #35280 to update E0194 to support new error message format. Part of #35233. A separate Github issue #36057 tracks the bonus portion of the original ticket. r? @jonathandturner
2016-08-30Rollup merge of #36054 - mikhail-m1:master2, r=jonathandturnerGuillaume Gomez-0/+16
update error E0451 to new format Fixes #35928 as part of #35233. r? @jonathandturner
2016-08-30Auto merge of #36066 - jseyfried:rollup, r=Manishearthbors-4/+119
Batch up libsyntax breaking changes Batch of the following syntax-[breaking-change] changes: - #35591: Add a field `span: Span` to `ast::Generics`. - #35618: Remove variant `Mod` of `ast::PathListItemKind` and refactor the remaining variant `ast::PathListKind::Ident` to a struct `ast::PathListKind_`. - #35480: Change uses of `Constness` in the AST to `Spanned<Constness>`. - c.f. `MethodSig`, `ItemKind` - #35728: Refactor `cx.pat_enum()` into `cx.pat_tuple_struct()` and `cx.pat_path()`. - #35850: Generalize the elements of lists in attributes from `MetaItem` to a new type `NestedMetaItem` that can represent a `MetaItem` or a literal. - #35917: Remove traits `AttrMetaMethods`, `AttributeMethods`, and `AttrNestedMetaItemMethods`. - Besides removing imports of these traits, this won't cause fallout. - Add a variant `Union` to `ItemKind` to future proof for `union` (c.f. #36016). - Remove inherent methods `attrs` and `fold_attrs` of `Annotatable`. - Use methods `attrs` and `map_attrs` of `HasAttrs` instead. r? @Manishearth
2016-08-30Update compiler error 0034 to use new format.athulappadan-3/+11
2016-08-30E0184 Update error format #35275Gavin Baker-0/+2
- Fixes #35275 - Part of #35233 r? @jonathandturner
2016-08-30E0165 Update error format #35270Gavin Baker-0/+1
- Fixes #35270 - Part of #35233 r? @jonathandturner
2016-08-30E0164 Update error format #35269Gavin Baker-0/+1
- Fixes #35269 - Part of #35233 r? @jonathandturner
2016-08-30Update E0089 to new error formatzjhmale-1/+3
2016-08-29Update E0463 error message to new formatPaul Fanelli-1/+3
2016-08-29removed unneeded test, also compiletest vs. rustfmtAndre Bogus-17/+101
2016-08-29rustfmt testsAndre Bogus-35/+37
2016-08-29Update E0260 to new error formatMohit Agarwal-1/+4
Updates #35515. Part of #35233. r? @jonathandturner
2016-08-29update error E0451 to new formatMikhail Modin-0/+16
2016-08-29E0458 Update error format #35932Gavin Baker-1/+3
- Fixes #35932 - Part of #35233 r? @jonathandturner
2016-08-29E0459 Update error format #35933Gavin Baker-0/+1
- Fixes #35933 - Part of #35233 r? @jonathandturner
2016-08-28Add test for #24204Andrew Paseltiner-0/+27
Closes #24204
2016-08-28Add test for #28324Andrew Paseltiner-0/+18
Closes #28324
2016-08-28fixed and extended tests once moreAndre Bogus-3/+67
2016-08-28Auto merge of #36058 - apasel422:tests, r=alexcrichtonbors-0/+48
Add tests for #20433, #26251, #28625, #33687 Closes #20433 Closes #26251 Closes #28625 Closes #33687
2016-08-28Rollup merge of #35850 - SergioBenitez:master, r=nrcJeffrey Seyfried-0/+111
Implement RFC#1559: allow all literals in attributes Implemented rust-lang/rfcs#1559, tracked by #34981.
2016-08-28Rollup merge of #35480 - KiChjang:e0379-bonus, r=nikomatsakisJeffrey Seyfried-3/+7
Move E0379 check from typeck to ast validation Part of #35233. Extension of #35338, #35364. Fixes #35404.
2016-08-28Rollup merge of #35591 - GuillaumeGomez:generics_span, r=jntrmrJeffrey Seyfried-1/+1
Add Span field for Generics structs
2016-08-27Move E0379 check from typeck to ast validationKeith Yeung-3/+7
2016-08-27Add tests for #20433, #26251, #28625, #33687Andrew Paseltiner-0/+48
Closes #20433 Closes #26251 Closes #28625 Closes #33687
2016-08-27Rollup merge of #36044 - mikhail-m1:master, r=jonathandturnerJonathan Turner-2/+6
update error E0450 to new format Fixes #35925 as part of #35233. I've solve the bonus, and I wonder if any simpler way to do this. But may be possible simplify if let expressions? r? @jonathandturner
2016-08-27Rollup merge of #36003 - GuillaumeGomez:err_codes, r=jonathandturnerJonathan Turner-0/+324
Err codes r? @jonathandturner
2016-08-27Rollup merge of #35989 - 0xmohit:pr/error-code-E0453, r=jonathandturnerJonathan Turner-3/+8
Update E0453 to new error format Fixes #35929. Part of #35233. r? @jonathandturner
2016-08-27Rollup merge of #35985 - 0xmohit:pr/error-code-E0277, r=jonathandturnerJonathan Turner-2/+31
Update E0277 to new error format Fixes #35311. Part of #35233. r? @jonathandturner
2016-08-27Rollup merge of #35657 - ahmedcharles:e0389, r=jonathandturnerJonathan Turner-0/+1
Update E0389 to the new format. #35630
2016-08-27update error E0450 to new formatMikhail Modin-2/+6
2016-08-27Fixes #35280 to update E0194 to support new error message format. Part of ↵William Lee-1/+3
#35233.
2016-08-26Auto merge of #35877 - KiChjang:issue-35869, r=arielb1bors-0/+37
Fix ICE when arg types can't be found in impl/trait methods while comparing Fixes #35869.
2016-08-27Rollup merge of #36014 - slash3g:stabilize-type-macros, r=nikomatsakisManish Goregaokar-33/+5
Stabilize type-macros Closes #27245 r? @nikomatsakis
2016-08-27Rollup merge of #36002 - eddyb:abstract-kindness, r=nikomatsakisManish Goregaokar-43/+43
Combine types and regions in Substs into one interleaved list. Previously, `Substs` would contain types and regions, in two separate vectors, for example: ```rust <X as Trait<'a, 'b, A, B>>::method::<'p, 'q, T, U> /* corresponds to */ Substs { regions: ['a, 'b, 'p, 'q], types: [X, A, B, T, U] } ``` This PR continues the work started in #35605 by further removing the distinction. A new abstraction over types and regions is introduced in the compiler, `Kind`. Each `Kind` is a pointer (`&TyS` or `&Region`), with the lowest two bits used as a tag. Two bits were used instead of just one (type = `0`, region = `1`) to allow adding more kinds. `Substs` contain only a `Vec<Kind>`, with `Self` first, followed by regions and types (in the definition order): ```rust Substs { params: [X, 'a, 'b, A, B, 'p, 'q, T, U] } ``` The resulting interleaved list has the property of being the concatenation of parameters for the (potentially) nested generic items it describes, and can be sliced back into those components: ```rust params[0..5] = [X, 'a, 'b, A, B] // <X as Trait<'a, 'b, A, B>> params[5..9] = ['p, 'q, T, U] // <_>::method::<'p, 'q, T, U> ``` r? @nikomatsakis
2016-08-27Rollup merge of #35953 - Aatch:better-missing-block-error, r=nrcManish Goregaokar-0/+20
Improve error message when failing to parse a block 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-27Rollup merge of #35877 - KiChjang:issue-35869, r=arielb1Manish Goregaokar-0/+37
Fix ICE when arg types can't be found in impl/trait methods while comparing Fixes #35869.
2016-08-27rustc: use Vec<Kind> in Substs, where Kind is a &TyS | &Region tagged pointer.Eduard Burtescu-43/+43
2016-08-26Add new error code testsGuillaume Gomez-0/+324
2016-08-26Stabilize type-macrosDaniele Baracchi-33/+5
Closes #27245
2016-08-26Update E0453 to new error formatMohit Agarwal-3/+8
Fixes #35929. Part of #35233. r? @jonathandturner
2016-08-25Implement RFC#1559: allow all literals in attributes.Sergio Benitez-0/+111
2016-08-25Update E0277 to new error formatMohit Agarwal-2/+31
Fixes #35311. Part of #35233. r? @jonathandturner
2016-08-24Auto merge of #35971 - jonathandturner:rollup, r=jonathandturnerbors-4/+149
Rollup of 4 pull requests - Successful merges: #35876, #35920, #35948, #35961 - Failed merges: #35395