about summary refs log tree commit diff
path: root/src/test/compile-fail
AgeCommit message (Collapse)AuthorLines
2016-08-18Update error format for E0232Michael Layne-1/+4
2016-08-18Update error message for E0084pliniker-1/+3
2016-08-18Add Span field for Generics structsGuillaume Gomez-1/+1
2016-08-18Auto merge of #35732 - jonathandturner:region_error_labels, r=nikomatsakisbors-50/+36
Move 'doesn't live long enough' errors to labels This patch moves the "doesn't live long enough" region-style errors to instead use labels. An example follows. Before: ``` error: `x` does not live long enough --> src/test/compile-fail/send-is-not-static-ensures-scoping.rs:26:18 | 26 | let y = &x; | ^ | note: reference must be valid for the block at 23:10... --> src/test/compile-fail/send-is-not-static-ensures-scoping.rs:23:11 | 23 | fn main() { | ^ note: ...but borrowed value is only valid for the block suffix following statement 0 at 25:18 --> src/test/compile-fail/send-is-not-static-ensures-scoping.rs:25:19 | 25 | let x = 1; | ^ ``` After: ``` error: `x` does not live long enough --> src/test/compile-fail/send-is-not-static-ensures-scoping.rs:26:18 | 26 | let y = &x; | ^ does not live long enough ... 32 | }; | - borrowed value only valid until here ... 35 | } | - borrowed value must be valid until here ``` r? @nikomatsakis
2016-08-18Fix fallout in tests.Jeffrey Seyfried-3/+2
2016-08-18Auto merge of #35769 - eddyb:rollup, r=eddybbors-8/+334
Rollup of 12 pull requests - Successful merges: #35346, #35734, #35739, #35740, #35742, #35744, #35749, #35750, #35751, #35756, #35766, #35768 - Failed merges:
2016-08-17updated E0396 to new error formatclementmiao-0/+2
2016-08-17updated E0395 to new error formatclementmiao-1/+2
2016-08-18Rollup merge of #35770 - crypto-universe:E0221, r=jonathandturnerEduard-Mihai Burtescu-1/+5
Updated test for E0221 As a part of issue #35233 ?r @GuillaumeGomez
2016-08-18Rollup merge of #35768 - GuillaumeGomez:err_codes, r=jonathandturnerEduard-Mihai Burtescu-0/+268
Add new error code tests r? @jonathandturner
2016-08-18Rollup merge of #35765 - KiChjang:e0053-bonus, r=jonathandturnerEduard-Mihai Burtescu-4/+10
Additional span info for E0053 Part of #35233. Fixes #35212. r? @jonathandturner
2016-08-18Rollup merge of #35756 - crypto-universe:E0407, r=GuillaumeGomezEduard-Mihai Burtescu-1/+3
New output for E0407 Issue #35697 as a part of #35233. r? @GuillaumeGomez
2016-08-18Rollup merge of #35749 - GuillaumeGomez:raw_field, r=jonathandturnerEduard-Mihai Burtescu-0/+39
Fixes issue #11004 Fixes #11004. r? @jonathandturner
2016-08-18Rollup merge of #35744 - DevShep:ds/update_E0009, r=jonathandturnerEduard-Mihai Burtescu-1/+4
Update E0009 to new format Part of #35233 Fixes #35193 r? @jonathandturner
2016-08-18Rollup merge of #35739 - circuitfox:E0403-update-error-format, r=jonathandturnerEduard-Mihai Burtescu-0/+2
E0403 update error format Fixes #35696 Part of #35233 r? @jonathandturner Also did the bonus for this one.
2016-08-18Rollup merge of #35346 - DarkEld3r:e0093-formatting, r=jonathandturnerEduard-Mihai Burtescu-1/+3
Update compiler error 0093 to use new error format Addresses #35230, Part of the #35233 meta bug r? @jonathandturner
2016-08-17Fix tidy and nitsJonathan Turner-4/+4
2016-08-18Fix tidy check.crypto-universe-1/+1
2016-08-17Move 'doesn't live long enough' errors to labelsJonathan Turner-50/+36
2016-08-17Display secondary span for E0053 for Mutability TypeErrorsKeith Yeung-4/+10
2016-08-18Updated test for E0221crypto-universe-1/+5
As a part of issue #35233 ?r @GuillaumeGomez
2016-08-17Add new error code testsGuillaume Gomez-0/+268
2016-08-17Replace local backtrace with def-use, repair std macro spansJonathan Turner-157/+0
2016-08-17New output for E0407crypto-universe-1/+3
Issue #35697 as a part of #35233. r? @jonathandturner
2016-08-17Merge branch 'master' into E0403-update-error-formatChris Stankus-48/+49
2016-08-17Remove trailing white spaceJacob-1/+1
2016-08-17Fixes issue #11004Guillaume Gomez-0/+39
2016-08-17Rollup merge of #35731 - pythoneer:fix-35192, r=jonathandturnerJonathan Turner-0/+1
Update E0005 to use a label Fixes #35192 as Part of #35233 r? @jonathandturner
2016-08-17Rollup merge of #35726 - mikhail-m1:master2, r=jonathandturnerJonathan Turner-1/+6
update E0409 to new error format fixes #35699 as part of #35233. r? @jonathandturner
2016-08-17Rollup merge of #35722 - knight42:update-error-msg, r=jonathandturnerJonathan Turner-2/+7
Updated E0394 & E0422 to new format Fixes #35692 and #35700, as part of #35233. r? @jonathandturner
2016-08-17Rollup merge of #35713 - sanxiyn:ui-test, r=nikomatsakisJonathan Turner-37/+0
Use UI test to test spans, instead of forced line break There must be lots more, but these are what I could easily find.
2016-08-17Rollup merge of #35686 - mikhail-m1:master, r=jonathandturnerJonathan Turner-1/+7
update E0375 to new format fixes #35635 as part of #35233. r? @jonathandturner
2016-08-17Rollup merge of #35672 - yossi-k:issue/35323, r=GuillaumeGomezJonathan Turner-0/+3
Update E0322 to new format Fixes #35323. Part of #35233. r? @GuillaumeGomez
2016-08-17Rollup merge of #35671 - canaltinova:E0392, r=jonathandturnerJonathan Turner-0/+1
Update E0392 to new error format Fixes #35631. Part of #35233 r? @jonathandturner or @GuillaumeGomez
2016-08-17Rollup merge of #35670 - RockyTV:e0365, r=jonathandturnerJonathan Turner-1/+4
Update error E0365 to new format Fixes #35633 as part of #35233. r? @jonathandturner
2016-08-17Rollup merge of #35660 - terrynsun:e0207, r=jonathandturnerJonathan Turner-1/+1
Update E0207 label to report parameter type Fixes #35642. r? @jonathandturner (Is this okay? I tagged you since it's a simple error fix similar to the other update ones.)
2016-08-17Rollup merge of #35415 - silenuss:e0030-formatting, r=jonathandturnerJonathan Turner-1/+3
Update compiler error 0030 to use new error format. Part of #35233, Addresses #35204 r? @jonathandturner
2016-08-16Update E0009 to new formatJacob-1/+4
2016-08-17rustc: remove ParamSpace from Substs.Eduard Burtescu-43/+43
2016-08-17rustc: split GenericPredicates of a method from its parent predicates.Eduard Burtescu-1/+2
2016-08-17rustc: remove SelfSpace from ParamSpace.Eduard Burtescu-47/+47
2016-08-17rustc: move the SelfSpace before TypeSpace in Substs.Eduard Burtescu-33/+33
2016-08-16E0403 update error formatChris Stankus-0/+2
2016-08-17Update E0005 Unit-TestDustin Bensing-0/+1
2016-08-16update to new error format E0409Mikhail Modin-1/+6
2016-08-17Updated E0394 to new error messageKnight-1/+4
2016-08-17Updated E0422 to new error messageKnight-1/+3
2016-08-16Auto merge of #35617 - jseyfried:fix_unused_cfg_attr_path, r=eddybbors-2/+14
Fix incorrect unused import warnings on `cfg_attr`ed `path` attributes Fixes #35584. r? @eddyb
2016-08-16Use UI test to test spans, instead of forced line breakSeo Sanghyeon-37/+0
2016-08-16Auto merge of #35162 - canndrew:bang_type_coerced, r=nikomatsakisbors-102/+93
Implement the `!` type This implements the never type (`!`) and hides it behind the feature gate `#[feature(never_type)]`. With the feature gate off, things should build as normal (although some error messages may be different). With the gate on, `!` is usable as a type and diverging type variables (ie. types that are unconstrained by anything in the code) will default to `!` instead of `()`.