Keith Yeung
0a98d73136
Do not span across nodes for E0004
2016-08-08 15:07:14 -07:00
bors
080e0e072f
Auto merge of #35064 - pthariensflame:feature/cow_str_from_iter, r=alexcrichton
...
Add `FromIterator` implementations for `Cow<str>`
This seems like an oversight, since the corresponding implementation for `Cow<[T]> where T: Clone` exists.
2016-08-08 14:59:30 -07: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
Scott A Carr
9f8093856d
refactor other type methods
2016-08-08 13:35:10 -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
8a7edc0116
Rollup merge of #35477 - GuillaumeGomez:fix_E0132, r=jonathandturner
...
Fix E0132 error display
Error and note now use the same span.
r? @jonathandturner
2016-08-08 13:25:58 -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
3d2d5c4c0f
Rollup merge of #35466 - xitep:master, r=steveklabnik
...
book: fix formatting of module layout example
2016-08-08 13:25:57 -07:00
Jonathan Turner
39a26c59ef
Rollup merge of #35465 - cardoe:pattern-book-update, r=steveklabnik
...
book: update example patterns to be more clear
When using Point { x: 0, y: 0 } and showing pattern matching decomposing
x and y individually its hard to understand. By using a different value
for x and a different value for y it is more clear.
2016-08-08 13:25:57 -07:00
Jonathan Turner
732e8f204a
Rollup merge of #35458 - GuillaumeGomez:test_string_ICE, r=alexcrichton
...
Add run-pass test for issue 33498
Fixes #33498 .
r? @alexcrichton
2016-08-08 13:25:57 -07:00
Jonathan Turner
936a6dfea5
Rollup merge of #35452 - ubsan:precedence, r=steveklabnik
...
Finish fixing the operator precedence tables
Add the unstable `:` colon and `<-` inplace operators.
r? @steveklabnik
2016-08-08 13:25:57 -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
Jonathan Turner
7979da0783
Rollup merge of #35446 - pcn:update-E0023-to-new-format, r=jonathandturner
...
Update E0023 to the new format
Added some extra code to check for the appropriate ending for numbers ==
1 vs. not 1 in error messages.
Added an extra test so that the plural suffix is seen and exercised.
2016-08-08 13:25:56 -07:00
Jonathan Turner
dd38172903
Rollup merge of #35396 - munyari:e0191, r=jonathandturner
...
Update E0191 to the new error format
Part of #35233
"r? @jonathandturner
2016-08-08 13:25:56 -07:00
Jonathan Turner
75efffe7fb
Rollup merge of #35371 - mgattozzi:master, r=steveklabnik
...
Update HashMap docs regarding DoS protection
Because of changes to how Rust acquires randomness HashMap is not
guaranteed to be DoS resistant. This commit reflects these changes in
the docs themselves and provides an alternative method to creating
a hash that is resistant if needed.
This fixes #33817 and includes relevant information regarding changes made in #33086
2016-08-08 13:25:55 -07:00
Krzysztof Garczynski
daf7c60d16
Update E0162 to the new format
2016-08-08 21:42:49 +02:00
Felix Rath
3c04ba2c34
add test for issue #29053
2016-08-08 21:04:51 +02:00
Rahul Sharma
6fd1752b25
extend lifetime on binary_search_by_key of SliceExt trait
2016-08-09 00:32:35 +05:30
Federico Ravasio
ee38609c20
Updated E0026 to new format.
2016-08-08 20:58:21 +02:00
hank-der-hafenarbeiter
6eb0218075
updated unit test!
2016-08-08 20:52:00 +02:00
hank-der-hafenarbeiter
a403ddf36d
Updated E0221 message to new format!
2016-08-08 20:51:44 +02:00
bors
f84008b558
Auto merge of #35492 - jonathandturner:fix_nightlies, r=arielb1
...
Fix for nightlies
Remove the NOTE tests for now so that nightlies will pass. We'll move many of these tests to UI tests later, as this is a better place to check the notes.
cc @alexcrichton
2016-08-08 11:17:05 -07:00
Keith Yeung
bd2bd6c71e
Shrink span to variant discriminant expression for E0081
2016-08-08 09:56:41 -07:00
Guillaume Gomez
0658941cd2
Add new error code tests
2016-08-08 18:42:46 +02:00
Jonathan Turner
5f1c6a0076
Remove the NOTE tests for now. We'll move to UI tests later
2016-08-08 09:26:32 -07:00
Doug Goldstein
18565c63db
book: update example patterns to be more clear
...
When using Point { x: 0, y: 0 } and showing pattern matching decomposing
x and y individually its hard to understand. By using a different value
for x and a different value for y it is more clear.
2016-08-08 11:10:44 -05:00
bors
b42a384a80
Auto merge of #35456 - birkenfeld:issue-33784, r=nikomatsakis
...
typeck: suggest (x.field)(...) to call struct fields even when x is a reference
Fixes : #33784
Note: This is a reopen of #33785 .
2016-08-08 07:47:51 -07:00
bors
8a4641bbdf
Auto merge of #35485 - KiChjang:e0004-bonus, r=GuillaumeGomez
...
Lengthen the span label to include match and expr for E0004
Part of #35233 .
Extension of #35191 .
r? @GuillaumeGomez
2016-08-08 03:35:19 -07:00
Seo Sanghyeon
dc7407c77a
Print Rust target name, not LLVM target name, for --print target-list
2016-08-08 19:22:57 +09:00
Keith Yeung
c6e17ec276
Shrink E0205 span label to the trait being implemented
2016-08-07 22:45:00 -07:00
Keith Yeung
06133c50f7
Lengthen the span label to include match and expr for E0004
2016-08-07 22:25:04 -07:00
Corey Farwell
e28521ede7
Remove unnecessary main
functions in doc examples.
2016-08-08 00:07:36 -04:00
bors
6153bbbe38
Auto merge of #35402 - KiChjang:e0206-new-msg, r=GuillaumeGomez
...
Update E0206 message to new format
Part of #35233 .
Fixes #35301 .
r? @GuillaumeGomez
2016-08-07 17:31:55 -07:00
Guillaume Gomez
e40df1c88f
Fix E0132 error display
2016-08-08 01:00:25 +02:00
Keith Yeung
53baa09bfe
Update E0206 message to new format
2016-08-07 15:35:39 -07:00
Christian Poveda
8b111a7cf5
Updated E0087 to new format
2016-08-07 17:00:19 -05:00
Alexander Altman
42e64bc5f2
Add FromIterator
implementations for Cow<str>
...
This seems like an oversight, since the corresponding implementation for `Cow<[T]> where T: Clone` exists.
2016-08-07 13:41:31 -07:00
ShyamSundarB
a848f11007
E0248 Change in issue format
2016-08-08 00:15:36 +05:30
ShyamSundarB
4a99a9de03
E0248 Change in issue format
2016-08-08 00:12:53 +05:30
Guillaume Gomez
4da9bdc563
Update librustc_borrowck error codes check
2016-08-07 20:16:02 +02:00
bors
1744c46e47
Auto merge of #35469 - jonathandturner:rollup, r=jonathandturner
...
Rollup of 21 pull requests
- Successful merges: #35314 , #35355 , #35357 , #35366 , #35394 , #35410 , #35411 , #35413 , #35417 , #35419 , #35421 , #35429 , #35433 , #35434 , #35436 , #35439 , #35443 , #35454 , #35455 , #35467 , #35468
- Failed merges: #35395 , #35415
2016-08-07 10:52:23 -07:00
Panashe M. Fundira
f07f093522
Update E0214 to the new error format
2016-08-07 13:21:23 -04:00
Jonathan Turner
995eeb02ca
Rollup merge of #35468 - munyari:e0205, r=jonathandturner
...
Update E0205 to the new error format
Part of #35233
Addresses #35382
"r? @jonathandturner
2016-08-07 09:59:45 -07:00
Jonathan Turner
8bd8cef318
Rollup merge of #35467 - terrynsun:master, r=jonathandturner
...
Update E0116 to new error code format.
Fixes #35249 as part of #35233 .
r? @jonathandturner
2016-08-07 09:59:44 -07:00