Johannes Löthberg
ff44f088d7
Update E0424 to the new error format
...
Fixes #35797 .
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
2016-08-20 22:05:51 +02:00
bors
43c090ed69
Auto merge of #35732 - jonathandturner:region_error_labels, r=nikomatsakis
...
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-18 05:39:11 -07:00
bors
9d6520f97b
Auto merge of #35769 - eddyb:rollup, r=eddyb
...
Rollup of 12 pull requests
- Successful merges: #35346 , #35734 , #35739 , #35740 , #35742 , #35744 , #35749 , #35750 , #35751 , #35756 , #35766 , #35768
- Failed merges:
2016-08-18 00:15:11 -07:00
Eduard-Mihai Burtescu
d69cd7207b
Rollup merge of #35770 - crypto-universe:E0221, r=jonathandturner
...
Updated test for E0221
As a part of issue #35233
?r @GuillaumeGomez
2016-08-18 06:12:23 +03:00
Eduard-Mihai Burtescu
d36b296cb6
Rollup merge of #35768 - GuillaumeGomez:err_codes, r=jonathandturner
...
Add new error code tests
r? @jonathandturner
2016-08-18 06:12:23 +03:00
Eduard-Mihai Burtescu
8ccc11b31b
Rollup merge of #35765 - KiChjang:e0053-bonus, r=jonathandturner
...
Additional span info for E0053
Part of #35233 .
Fixes #35212 .
r? @jonathandturner
2016-08-18 06:12:23 +03:00
Eduard-Mihai Burtescu
c3601d40ec
Rollup merge of #35756 - crypto-universe:E0407, r=GuillaumeGomez
...
New output for E0407
Issue #35697 as a part of #35233 .
r? @GuillaumeGomez
2016-08-18 06:12:23 +03:00
Eduard-Mihai Burtescu
f1861b814a
Rollup merge of #35749 - GuillaumeGomez:raw_field, r=jonathandturner
...
Fixes issue #11004
Fixes #11004 .
r? @jonathandturner
2016-08-18 06:12:22 +03:00
Eduard-Mihai Burtescu
394c4497de
Rollup merge of #35744 - DevShep:ds/update_E0009, r=jonathandturner
...
Update E0009 to new format
Part of #35233
Fixes #35193
r? @jonathandturner
2016-08-18 06:12:22 +03:00
Eduard-Mihai Burtescu
71759ec52c
Rollup merge of #35739 - circuitfox:E0403-update-error-format, r=jonathandturner
...
E0403 update error format
Fixes #35696
Part of #35233
r? @jonathandturner
Also did the bonus for this one.
2016-08-18 06:12:21 +03:00
Eduard-Mihai Burtescu
612506bfff
Rollup merge of #35346 - DarkEld3r:e0093-formatting, r=jonathandturner
...
Update compiler error 0093 to use new error format
Addresses #35230 , Part of the #35233 meta bug
r? @jonathandturner
2016-08-18 06:12:21 +03:00
Jonathan Turner
864b3efd33
Fix tidy and nits
2016-08-17 15:53:10 -07:00
crypto-universe
ed54226467
Fix tidy check.
2016-08-18 00:43:18 +02:00
Jonathan Turner
70ce90c320
Move 'doesn't live long enough' errors to labels
2016-08-17 15:24:42 -07:00
Keith Yeung
34bc3c94f2
Display secondary span for E0053 for Mutability TypeErrors
2016-08-17 15:12:56 -07:00
crypto-universe
de5aaee0c5
Updated test for E0221
...
As a part of issue #35233
?r @GuillaumeGomez
2016-08-18 00:07:24 +02:00
Guillaume Gomez
8d78237701
Add new error code tests
2016-08-17 23:45:10 +02:00
Jonathan Turner
61865384b8
Replace local backtrace with def-use, repair std macro spans
2016-08-17 14:26:14 -07:00
crypto-universe
2179defa04
New output for E0407
...
Issue #35697 as a part of #35233 .
r? @jonathandturner
2016-08-17 19:59:22 +02:00
Chris Stankus
6a1efbd08e
Merge branch 'master' into E0403-update-error-format
2016-08-17 12:31:20 -05:00
Jacob
d01bfb122e
Remove trailing white space
2016-08-17 10:21:15 -07:00
Guillaume Gomez
feeed0b51b
Fixes issue #11004
2016-08-17 19:12:37 +02:00
Jonathan Turner
c216617cf2
Rollup merge of #35731 - pythoneer:fix-35192, r=jonathandturner
...
Update E0005 to use a label
Fixes #35192 as Part of #35233
r? @jonathandturner
2016-08-17 06:25:28 -07:00
Jonathan Turner
fbc62afba6
Rollup merge of #35726 - mikhail-m1:master2, r=jonathandturner
...
update E0409 to new error format
fixes #35699 as part of #35233 .
r? @jonathandturner
2016-08-17 06:25:28 -07:00
Jonathan Turner
5fc58dcaff
Rollup merge of #35722 - knight42:update-error-msg, r=jonathandturner
...
Updated E0394 & E0422 to new format
Fixes #35692 and #35700 , as part of #35233 .
r? @jonathandturner
2016-08-17 06:25:27 -07:00
Jonathan Turner
75454f72a3
Rollup merge of #35713 - sanxiyn:ui-test, r=nikomatsakis
...
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-17 06:25:27 -07:00
Jonathan Turner
f0f12d9fb1
Rollup merge of #35686 - mikhail-m1:master, r=jonathandturner
...
update E0375 to new format
fixes #35635 as part of #35233 .
r? @jonathandturner
2016-08-17 06:25:26 -07:00
Jonathan Turner
eac17f1ee8
Rollup merge of #35672 - yossi-k:issue/35323, r=GuillaumeGomez
...
Update E0322 to new format
Fixes #35323 . Part of #35233 .
r? @GuillaumeGomez
2016-08-17 06:25:25 -07:00
Jonathan Turner
8ff8f77b77
Rollup merge of #35671 - canaltinova:E0392, r=jonathandturner
...
Update E0392 to new error format
Fixes #35631 . Part of #35233
r? @jonathandturner or @GuillaumeGomez
2016-08-17 06:25:25 -07:00
Jonathan Turner
02a8e2c285
Rollup merge of #35670 - RockyTV:e0365, r=jonathandturner
...
Update error E0365 to new format
Fixes #35633 as part of #35233 .
r? @jonathandturner
2016-08-17 06:25:25 -07:00
Jonathan Turner
a9e3cffde1
Rollup merge of #35660 - terrynsun:e0207, r=jonathandturner
...
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-17 06:25:24 -07:00
Jonathan Turner
d3f55e1e86
Rollup merge of #35415 - silenuss:e0030-formatting, r=jonathandturner
...
Update compiler error 0030 to use new error format.
Part of #35233 ,
Addresses #35204
r? @jonathandturner
2016-08-17 06:25:23 -07:00
Jacob
7675e4b514
Update E0009 to new format
2016-08-16 22:21:31 -07:00
Eduard Burtescu
9453d9b8ad
rustc: remove ParamSpace from Substs.
2016-08-17 06:32:00 +03:00
Eduard Burtescu
6f5e455c2d
rustc: split GenericPredicates of a method from its parent predicates.
2016-08-17 05:50:57 +03:00
Eduard Burtescu
c1cfd58cbd
rustc: remove SelfSpace from ParamSpace.
2016-08-17 05:50:57 +03:00
Eduard Burtescu
b354ae95a2
rustc: move the SelfSpace before TypeSpace in Substs.
2016-08-17 05:50:57 +03:00
Chris Stankus
f0ff2d32c8
E0403 update error format
2016-08-16 20:49:09 -05:00
Dustin Bensing
4cfdf634c1
Update E0005 Unit-Test
2016-08-17 00:40:08 +02:00
Mikhail Modin
193b9ae86b
update to new error format E0409
2016-08-16 22:13:09 +03:00
Knight
3caa451b9d
Updated E0394 to new error message
2016-08-17 03:02:25 +08:00
Knight
d2e78956c3
Updated E0422 to new error message
2016-08-17 03:02:25 +08:00
bors
1de5b7e8c2
Auto merge of #35617 - jseyfried:fix_unused_cfg_attr_path, r=eddyb
...
Fix incorrect unused import warnings on `cfg_attr`ed `path` attributes
Fixes #35584 .
r? @eddyb
2016-08-16 06:32:20 -07:00
Seo Sanghyeon
3aa63400a2
Use UI test to test spans, instead of forced line break
2016-08-16 20:46:50 +09:00
bors
e25542cb02
Auto merge of #35162 - canndrew:bang_type_coerced, r=nikomatsakis
...
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 `()`.
2016-08-16 00:12:12 -07:00
bors
197be89f36
Auto merge of #35680 - GuillaumeGomez:err_codes, r=jonathandturner
...
Err codes
r? @jonathandturner
2016-08-15 11:35:01 -07:00
Mikhail Modin
349f10a15d
update E0375 to new format
2016-08-15 20:37:03 +03:00
Guillaume Gomez
92779194ed
Add new error code tests
2016-08-15 16:47:45 +02:00
bors
b72fa8ca95
Auto merge of #35567 - creativcoder:e0261, r=jonathandturner
...
Update E0261 and E0262 to new error format
Fixes #35516 and #35517 . Part of #35233
r? @jonathandturner
2016-08-15 05:12:35 -07:00
silenuss
fa61f82bf2
Update compiler error 0030 to use new error format.
2016-08-15 00:21:13 -06:00