Nazım Can Altınova
6d998d664b
Update E0392 to new error format
2016-08-15 00:22:59 +03:00
bors
d3c3de8abe
Auto merge of #35138 - petrochenkov:clarify, r=eddyb
...
Implement RFC 1506 "Clarify the relationships between various kinds of structs and variants"
cc https://github.com/rust-lang/rust/issues/35626
2016-08-12 19:38:46 -07:00
Vadim Petrochenkov
f6624782d4
Parse numeric fields in struct expressions and patterns
2016-08-13 00:08:14 +03:00
Vadim Petrochenkov
59be332a1b
Remove restrictions from tuple structs/variants
...
Hard errors are turned into feature gates
2016-08-13 00:08:14 +03:00
bors
1deb02ea69
Auto merge of #35431 - GuillaumeGomez:err_codes, r=jonathandturner
...
Err codes
r? @jonathandturner
2016-08-12 08:58:55 -07:00
Eduard Burtescu
23f0494114
test: add more extensive tests for impl Trait.
2016-08-12 06:46:31 +03:00
Eduard Burtescu
08bf9f69b9
typeck: leak auto trait obligations through impl Trait.
2016-08-12 06:46:31 +03:00
Eduard Burtescu
c976e073fd
rustc: don't reveal specializable polymorphic projections.
2016-08-12 06:43:34 +03:00
bors
8787a12334
Auto merge of #35592 - jonathandturner:rollup, r=jonathandturner
...
Rollup of 23 pull requests
- Successful merges: #35279 , #35331 , #35358 , #35375 , #35445 , #35448 , #35482 , #35486 , #35505 , #35528 , #35530 , #35532 , #35536 , #35537 , #35541 , #35552 , #35554 , #35555 , #35557 , #35562 , #35565 , #35569 , #35576
- Failed merges: #35395 , #35415 , #35563
2016-08-11 13:14:28 -07:00
Jonathan Turner
cdedad530f
Rollup merge of #35576 - circuitfox:E0072-update-error-format, r=jonathandturner
...
E0072 update error format
Part of #35233
Fixes #35506
r? @jonathandturner
The bonus for this issue currently seems to be impossible to do reliably, as the compiler seems to lack span information for item names alone, like `Foo` in `struct Foo { ... }`. It would be possible to hack something together by computing span offsets, but that seems like a solution that would be begging for trouble.
A proper solution to this would, of course, be to add span information to the right place (seems to be `rustc::hir::Item::name` but I may be wrong).
2016-08-11 06:34:02 -07:00
Jonathan Turner
efbed8ba79
Rollup merge of #35565 - wdv4758h:E0133, r=jonathandturner
...
Update E0133 to new format
Part of #35233
Fix #35509
r? @jonathandturner
2016-08-11 06:34:01 -07:00
Jonathan Turner
aaed538b24
Rollup merge of #35557 - Limeth:master, r=jonathandturner
...
E0263 updated to new format.
Fixes #35518 . Part of #35233 .
r? @jonathandturner
2016-08-11 06:34:01 -07:00
Jonathan Turner
a5408a5415
Rollup merge of #35555 - circuitfox:E0128-update-error-format, r=jonathandturner
...
E0128 update error format
Fixes #35508
Part of #35233
r? @jonathandturner
2016-08-11 06:34:00 -07:00
Jonathan Turner
b758688505
Rollup merge of #35552 - theypsilon:master, r=jonathandturner
...
Update error message E0384 to new format
Part of #35233
Fixes #35184
r? @jonathandturner
2016-08-11 06:34:00 -07:00
Jonathan Turner
08d5df8f5f
Rollup merge of #35541 - hank-der-hafenarbeiter:E0045, r=jonathandturner
...
Updated E0045 to new error format (no bonus)
Part of #35501
r? @jonathandturner
2016-08-11 06:34:00 -07:00
Jonathan Turner
8d63269b8a
Rollup merge of #35537 - munyari:e0038, r=jonathandturner
...
Update E0038 to the new error format
Part of #35233
Addresses #35500
"r? @jonathandturner
This doesn't compile yet, and I need help. In my naive solution, adding the span label makes our error message a mutable `errors::DiagnosticBuilder` pointer.
```bash
python src/bootstrap/bootstrap.py --step check-cfail E0038 --stage 1
```
```
Building stage0 std artifacts (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
Building stage0 test artifacts (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
Building stage0 compiler artifacts (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
Compiling rustc v0.0.0 (file:///home/nash/code/rust/src/librustc)
src/librustc/traits/error_reporting.rs:735:9: 735:12 error: mismatched types [E0308]
src/librustc/traits/error_reporting.rs:735 err
^~~
src/librustc/traits/error_reporting.rs:735:9: 735:12 help: run `rustc --explain E0308` to see a detailed explanation
src/librustc/traits/error_reporting.rs:735:9: 735:12 note: expected type `core::option::Option<errors::DiagnosticBuilder<'tcx>>`
src/librustc/traits/error_reporting.rs:735:9: 735:12 note: found type `core::option::Option<&mut errors::DiagnosticBuilder<'_>>`
error: aborting due to previous error
error: Could not compile `rustc`.
To learn more, run the command again with --verbose.
command did not execute successfully: "/home/nash/code/rust/build/x86_64-unknown-linux-gnu/stage0/bin/cargo" "build" "-j" "4" "--target" "x86_64-unknown-linux-gnu" "--release" "--features" " jemalloc" "--manifest-path" "/home/nash/code/rust/src/rustc/Cargo.toml"
expected success, got: exit code: 101
```
2016-08-11 06:34:00 -07:00
Jonathan Turner
294ac7b561
Rollup merge of #35536 - hank-der-hafenarbeiter:E0433, r=jonathandturner
...
Updated E0433 to new error message. (no bonus)
Part of #35345
r? @jonathandturner
2016-08-11 06:33:59 -07:00
Jonathan Turner
c7513d79a1
Rollup merge of #35530 - srdja:master, r=jonathandturner
...
Update E0008 and E0007 to new format
Part of #35233
A fix for #35496
r? @jonathandturner
2016-08-11 06:33:59 -07:00
Jonathan Turner
0283443522
Rollup merge of #35528 - Vassah:master, r=jonathandturner
...
Update Error Format for E0091 and E0092
Addresses [#35228 ](https://github.com/rust-lang/rust/issues/35228 ) and [#35229 ](https://github.com/rust-lang/rust/issues/35229 ) as part of [#35233 ](https://github.com/rust-lang/rust/issues/35233 ).
Please let me know if there are any issues; first time contributor.
r? @jonathandturner
2016-08-11 06:33:59 -07:00
Jonathan Turner
853fe86906
Rollup merge of #35486 - KiChjang:e0081-bonus, r=jonathandturner
...
Shrink span to variant discriminant expression for E0081
Part of #35233 .
Extension of #35353 .
Fixes #35224 .
r? @jonathandturner
2016-08-11 06:33:58 -07:00
Jonathan Turner
d2e9573194
Rollup merge of #35445 - pcn:update-E0017-to-new-format, r=arielb1
...
Update e0017 to new format
Updated `span_err!` to use `struct_span_err!` and provide a `span_label` that describes the error in context.
Updated the test to look for the `span_label`s that are provided now.
2016-08-11 06:33:58 -07:00
Jonathan Turner
e24c326400
Rollup merge of #35375 - trixnz:update-error-326, r=jonathandturner
...
Update error format for E0326
Fixes #35335 as part of #35233
r? @jonathandturner
2016-08-11 06:33:57 -07:00
Jonathan Turner
260a379ba5
Rollup merge of #35331 - trixnz:update-error-130, r=jonathandturner
...
Update error format for E0130
Fixes #35256 as part of #35233
r? @jonathandturner
2016-08-11 06:33:57 -07:00
petrochenkov
d43b9cb487
privacy: Move private-in-public diagnostics for type aliases to the public interface location
2016-08-11 00:32:07 +03:00
Vadim Petrochenkov
b7db9e88bf
privacy: Substitute type aliases in private-in-public checker
2016-08-11 00:32:07 +03:00
Chris Stankus
c5f9febc48
E0072 update error format
2016-08-10 13:37:59 -05:00
trixnz
e2cc1571ba
Fixed no-pattern-in-args test for new E0130 format
2016-08-10 19:55:54 +02:00
trixnz
f656a92cbb
Update error format for E0130
2016-08-10 19:55:54 +02:00
trixnz
034df94780
Update error format for E0326
2016-08-10 19:04:11 +02:00
bors
1f2ae3849c
Auto merge of #35525 - jonathandturner:rollup, r=jonathandturner
...
Rollup of 15 pull requests
- Successful merges: #35371 , #35396 , #35446 , #35449 , #35452 , #35458 , #35465 , #35466 , #35470 , #35475 , #35477 , #35484 , #35504 , #35507 , #35524
- Failed merges: #35395 , #35415
2016-08-10 10:03:08 -07:00
Chiu-Hsiang Hsu
e7065b7f92
Update E0133 to new format
2016-08-10 15:29:45 +08:00
Jakub Hlusička
46265a0809
E0263 updated to new format. rust-lang/rust#35518
2016-08-09 23:56:19 +02:00
Chris Stankus
766a0ab651
E0128 update error format
2016-08-09 15:13:32 -05:00
srdja
aa40ec7f11
Update E0007 to new format
2016-08-09 21:23:11 +02:00
Panashe M. Fundira
20ea8cba53
Update E0038 to the new error format
2016-08-09 13:59:00 -04:00
José manuel Barroso Galindo
71a34d728b
Merge branch 'master' of github.com:theypsilon/rust
2016-08-10 00:35:16 +07:00
José manuel Barroso Galindo
0e8ec4333c
Update error message E0384 to new format
...
Part of #35233
Fixes #35184
2016-08-10 00:07:42 +07:00
Jonathan Turner
fb1c6acc81
Update E0087.rs
2016-08-09 07:53:52 -07:00
hank-der-hafenarbeiter
2adc07f462
added unit test
2016-08-09 14:40:07 +02:00
hank-der-hafenarbeiter
b5ead0060c
updated unit test
2016-08-09 14:02:25 +02:00
srdja
0cb8439aa3
Update E0008 to new format
2016-08-08 23:36:50 +02:00
Stephen Lazaro
da8fed5f90
Update unit test for E0092
2016-08-08 14:10:59 -07:00
Stephen Lazaro
156c822ab2
Update error messages for E0091 and E0092
2016-08-08 14:10:09 -07:00
Jonathan Turner
f835b38385
Rollup merge of #35524 - garekkream:update-E0162-new-error-format, r=jonathandturner
...
Update E0162 to the new format
Part of #35233 .
Fixes #35268 .
r? @jonathandturner
2016-08-08 13:25:59 -07:00
Jonathan Turner
7db3f86966
Rollup merge of #35507 - hank-der-hafenarbeiter:master, r=jonathandturner
...
Updated Error mesage to new format for E0221
Part of #35386
r? @jonathandturner
2016-08-08 13:25:59 -07:00
Jonathan Turner
0a3766a41a
Rollup merge of #35504 - razielgn:updated-e0026-to-new-format, r=jonathandturner
...
Updated E0026 to new format.
Part of #35233 .
Fixes #35497 .
r? @jonathandturner
2016-08-08 13:25:59 -07:00
Jonathan Turner
a72891e9e8
Rollup merge of #35484 - KiChjang:e0205-bonus, r=GuillaumeGomez
...
Shrink E0205 span label to the trait being implemented
Part of #35233 .
Extension of #35468 .
Closes #35382 .
r? @GuillaumeGomez
2016-08-08 13:25:59 -07:00
Jonathan Turner
bbbac59c29
Rollup merge of #35475 - shyaamsundhar:patch-1, r=jonathandturner
...
E0248 New Format
2016-08-08 13:25:58 -07:00
Jonathan Turner
0e4e8e9544
Rollup merge of #35470 - munyari:e0214, r=jonathandturner
...
Update E0214 to the new error format
Part of #35233
Addresses #35383
"r? @jonathandturner
2016-08-08 13:25:58 -07:00
Jonathan Turner
c479f0210c
Rollup merge of #35449 - poveda-ruiz:master, r=jonathandturner
...
Updated E0087 to new format
Part of #35233 . r? @jonathandturner
2016-08-08 13:25:56 -07:00