Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rollup of 33 pull requests #35571

Closed
wants to merge 74 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
74 commits
Select commit Hold shift + click to select a range
15be66d
Provide a cleaner documentation for 'write!'
cengizio Aug 4, 2016
800aa92
Use consistent spelling for word 'implementor'
cengizio Aug 4, 2016
c630bea
Be more explicit about duck typing
cengizio Aug 4, 2016
751d43a
Ignore VS Code settings directory
vadimcn Aug 5, 2016
2683e84
Update HashMap docs regarding DoS protection
mgattozzi Aug 4, 2016
b79e15d
Update E0191 to the new error format
munyari Aug 5, 2016
2c563c6
Update E0023 to the new format
pcn Aug 7, 2016
abe1cc7
run rustfmt on compiletest folder in src/tools/ folder
srinivasreddy Jun 11, 2016
7c1bb9a
Finish fixing the operator precedence tables
ubsan Aug 7, 2016
56eba5a
Add run-pass test for issue 33498
GuillaumeGomez Aug 7, 2016
ec1ef79
Updated the messages for E0017
pcn Aug 7, 2016
98c6770
Fix formatting of module layout example
Aug 7, 2016
f07f093
Update E0214 to the new error format
munyari Aug 7, 2016
8b111a7
Updated E0087 to new format
Aug 7, 2016
e40df1c
Fix E0132 error display
GuillaumeGomez Aug 7, 2016
e28521e
Remove unnecessary `main` functions in doc examples.
frewsxcv Aug 8, 2016
c6e17ec
Shrink E0205 span label to the trait being implemented
KiChjang Aug 8, 2016
18565c6
book: update example patterns to be more clear
cardoe Aug 7, 2016
bd2bd6c
Shrink span to variant discriminant expression for E0081
KiChjang Aug 8, 2016
a403ddf
Updated E0221 message to new format!
hank-der-hafenarbeiter Aug 8, 2016
6eb0218
updated unit test!
hank-der-hafenarbeiter Aug 8, 2016
ee38609
Updated E0026 to new format.
razielgn Aug 8, 2016
3c04ba2
add test for issue #29053
Aug 8, 2016
daf7c60
Update E0162 to the new format
krzysztofgarczynski Aug 8, 2016
40b2e51
Update E0033 to the new error format
munyari Aug 8, 2016
156c822
Update error messages for E0091 and E0092
stephen-lazaro Aug 8, 2016
da8fed5
Update unit test for E0092
stephen-lazaro Aug 8, 2016
0cb8439
Update E0008 to new format
Aug 8, 2016
0a98d73
Do not span across nodes for E0004
KiChjang Aug 8, 2016
ee076dd
Updated E0433 to new error message. (no bonus)
hank-der-hafenarbeiter Aug 8, 2016
ae9c09d
Updated error for E0045 (no bonus)
hank-der-hafenarbeiter Aug 8, 2016
b5ead00
updated unit test
hank-der-hafenarbeiter Aug 9, 2016
2adc07f
added unit test
hank-der-hafenarbeiter Aug 9, 2016
0e8ec43
Update error message E0384 to new format
theypsilon Aug 9, 2016
71a34d7
Merge branch 'master' of github.com:theypsilon/rust
theypsilon Aug 9, 2016
20ea8cb
Update E0038 to the new error format
munyari Aug 8, 2016
0a3564a
Add tracking issue for `String::insert_str`
murarth Aug 9, 2016
aa40ec7
Update E0007 to new format
Aug 9, 2016
766a0ab
E0128 update error format
circuitfox Aug 9, 2016
46265a0
E0263 updated to new format. rust-lang/rust#35518
Aug 9, 2016
70e760f
Remove redundant `&mut ref mut` in doc for Result::as_mut()
birkenfeld Aug 10, 2016
96c39d2
Rollup merge of #35279 - cengizIO:master, r=brson
steveklabnik Aug 10, 2016
0996264
Rollup merge of #35358 - vadimcn:vscode, r=steveklabnik
steveklabnik Aug 10, 2016
192c8b0
Rollup merge of #35371 - mgattozzi:master, r=steveklabnik
steveklabnik Aug 10, 2016
1bad68b
Rollup merge of #35396 - munyari:e0191, r=jonathandturner
steveklabnik Aug 10, 2016
52258c7
Rollup merge of #35445 - pcn:update-E0017-to-new-format, r=arielb1
steveklabnik Aug 10, 2016
c867f6c
Rollup merge of #35446 - pcn:update-E0023-to-new-format, r=jonathandt…
steveklabnik Aug 10, 2016
7a1015e
Rollup merge of #35448 - srinivasreddy:rf_compiletest, r=nikomatsakis
steveklabnik Aug 10, 2016
41b00f1
Rollup merge of #35449 - poveda-ruiz:master, r=jonathandturner
steveklabnik Aug 10, 2016
7316d22
Rollup merge of #35452 - ubsan:precedence, r=steveklabnik
steveklabnik Aug 10, 2016
4ac3a9d
Rollup merge of #35458 - GuillaumeGomez:test_string_ICE, r=alexcrichton
steveklabnik Aug 10, 2016
2c7a05b
Rollup merge of #35465 - cardoe:pattern-book-update, r=steveklabnik
steveklabnik Aug 10, 2016
7377583
Rollup merge of #35466 - xitep:master, r=steveklabnik
steveklabnik Aug 10, 2016
9c1e4cb
Rollup merge of #35470 - munyari:e0214, r=jonathandturner
steveklabnik Aug 10, 2016
2c78c42
Rollup merge of #35477 - GuillaumeGomez:fix_E0132, r=jonathandturner
steveklabnik Aug 10, 2016
3d5fe6b
Rollup merge of #35482 - frewsxcv:patch-31, r=GuillaumeGomez
steveklabnik Aug 10, 2016
a8d123b
Rollup merge of #35484 - KiChjang:e0205-bonus, r=GuillaumeGomez
steveklabnik Aug 10, 2016
1a96a6d
Rollup merge of #35486 - KiChjang:e0081-bonus, r=jonathandturner
steveklabnik Aug 10, 2016
e44c7ed
Rollup merge of #35504 - razielgn:updated-e0026-to-new-format, r=jona…
steveklabnik Aug 10, 2016
10cbe14
Rollup merge of #35505 - futile:test_29053, r=nikomatsakis
steveklabnik Aug 10, 2016
d021df3
Rollup merge of #35507 - hank-der-hafenarbeiter:master, r=jonathandtu…
steveklabnik Aug 10, 2016
8a0d0a6
Rollup merge of #35524 - garekkream:update-E0162-new-error-format, r=…
steveklabnik Aug 10, 2016
dddc8d5
Rollup merge of #35526 - munyari:e0033, r=jonathandturner
steveklabnik Aug 10, 2016
5847faa
Rollup merge of #35528 - Vassah:master, r=jonathandturner
steveklabnik Aug 10, 2016
c65f1a5
Rollup merge of #35530 - srdja:master, r=jonathandturner
steveklabnik Aug 10, 2016
ecbb3e3
Rollup merge of #35532 - KiChjang:e0004-follow-up, r=jonathandturner
steveklabnik Aug 10, 2016
61915b4
Rollup merge of #35536 - hank-der-hafenarbeiter:E0433, r=jonathandturner
steveklabnik Aug 10, 2016
0e71e44
Rollup merge of #35537 - munyari:e0038, r=jonathandturner
steveklabnik Aug 10, 2016
01d61a1
Rollup merge of #35541 - hank-der-hafenarbeiter:E0045, r=jonathandturner
steveklabnik Aug 10, 2016
785d0f5
Rollup merge of #35552 - theypsilon:master, r=jonathandturner
steveklabnik Aug 10, 2016
928d105
Rollup merge of #35554 - murarth:insert-str-issue, r=apasel422
steveklabnik Aug 10, 2016
5506990
Rollup merge of #35555 - circuitfox:E0128-update-error-format, r=jona…
steveklabnik Aug 10, 2016
11a6619
Rollup merge of #35557 - Limeth:master, r=jonathandturner
steveklabnik Aug 10, 2016
0db7846
Rollup merge of #35562 - birkenfeld:as-mut-doc, r=steveklabnik
steveklabnik Aug 10, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update E0191 to the new error format
  • Loading branch information
munyari committed Aug 6, 2016

Unverified

The committer email address is not verified.
commit b79e15d32c4cd14b4428d1b05a16a7d2234490cc
7 changes: 5 additions & 2 deletions src/librustc_typeck/astconv.rs
Original file line number Diff line number Diff line change
@@ -1194,10 +1194,13 @@ impl<'o, 'gcx: 'tcx, 'tcx> AstConv<'gcx, 'tcx>+'o {
}

for (trait_def_id, name) in associated_types {
span_err!(tcx.sess, span, E0191,
struct_span_err!(tcx.sess, span, E0191,
"the value of the associated type `{}` (from the trait `{}`) must be specified",
name,
tcx.item_path_str(trait_def_id));
tcx.item_path_str(trait_def_id))
.span_label(span, &format!(
"missing associated type `{}` value", name))
.emit();
}

tcx.mk_trait(object.principal, object.bounds)
1 change: 1 addition & 0 deletions src/test/compile-fail/E0191.rs
Original file line number Diff line number Diff line change
@@ -13,6 +13,7 @@ trait Trait {
}

type Foo = Trait; //~ ERROR E0191
//~| NOTE missing associated type `Bar` value

fn main() {
}
Original file line number Diff line number Diff line change
@@ -37,6 +37,7 @@ fn dent_object<COLOR>(c: BoxCar<Color=COLOR>) {
//~| ERROR the value of the associated type `Color` (from the trait `Vehicle`) must be specified
//~| NOTE could derive from `Vehicle`
//~| NOTE could derive from `Box`
//~| NOTE missing associated type `Color` value
}

fn paint<C:BoxCar>(c: C, d: C::Color) {