Eduard Burtescu
ad66c215aa
rustc: switch most remaining middle::ty functions to methods.
2015-06-26 07:34:57 +03:00
Eduard Burtescu
5cedd66a6c
rustc: remove 3 dead functions in middle::ty.
2015-06-26 07:34:56 +03:00
Eduard Burtescu
6db5126240
rustc: make ty::mk_* constructors into methods on ty::ctxt.
2015-06-26 07:34:56 +03:00
Eduard Burtescu
2332765cbc
rustc: prefer unqualified ctxt to ty::ctxt in middle::ty.
2015-06-26 07:34:56 +03:00
Eduard Burtescu
59935f70e0
rustc: move some functions in middle::ty working on Ty to methods.
2015-06-26 07:34:56 +03:00
Eduard Burtescu
aa03871a6e
rustc: combine type-flag-checking traits and fns and into one trait.
2015-06-26 07:34:56 +03:00
bors
378a370ff2
Auto merge of #25646 - huonw:align, r=alexcrichton
...
This removes a footgun, since it is a reasonable assumption to make that
pointers to `T` will be aligned to `align_of::<T>()`. This also matches
the behaviour of C/C++. `min_align_of` is now deprecated.
Closes #21611 .
2015-06-26 02:58:31 +00:00
Jared Roesch
44bccd8842
Rename AsPredicate to ToPredicate in order to match naming conventions
2015-06-25 17:29:20 -07:00
bors
912ab64a0d
Auto merge of #26567 - Techern:os-dupe-code, r=alexcrichton
...
It's nearly midnight. I'm tired. I'll look for something worth doing in the morning :)
2015-06-25 20:22:27 +00:00
Cruz Julian Bishop
ad39fcc535
libstd/rand/os.rs: Remove a tiny bit of duplicated code
...
It's nearly midnight. I'm tired. I'll look for something worth doing in the morning :)
2015-06-25 23:37:28 +00:00
bors
70b2f4789e
Auto merge of #26542 - GuillaumeGomez:patch-2, r=Manishearth
2015-06-25 17:21:44 +00:00
Guillaume Gomez
7b4eb1aa90
Add E0327 error code. Thanks @nagisa for his help!
2015-06-25 18:20:29 +02:00
bors
cfb77788ce
Auto merge of #26559 - BrodyHolden:ffi-doc-references-std-comm, r=bluss
...
The FFI documentation references std::comm. Replace with std::sync::mpsc.
Also wrap the line.
2015-06-25 14:53:16 +00:00
bors
b213c947f8
Auto merge of #26558 - nham:fix_24357, r=alexcrichton
...
Fixes #24357 .
Also adds a (totally separate) regression test, which
Closes #18119
2015-06-25 10:39:09 +00:00
bors
688b62382c
Auto merge of #26561 - SimonSapin:remove-titlecase, r=alexcrichton
...
I added it because it was easy (same a `char::to_lowercase`, just a different table), but it doesn’t make sense to have this in std but not str::to_titlecase, which would require https://github.com/unicode-rs/unicode-segmentation
At some point in the future this feature will be available (both on char and str) in a crates.io crate.
2015-06-25 08:24:23 +00:00
Steven Fackler
18e78b91de
Avoid overflow in Vec::from_iter
...
Closes #26550
2015-06-24 22:59:52 -07:00
Simon Sapin
32b7b50baf
Remove char::to_titlecase. Fix #26555
...
I added it because it was easy (same a `char::to_lowercase`,
just a different table), but it doesn’t make sense to have this
in std but not str::to_titlecase, which would require
https://github.com/unicode-rs/unicode-segmentation
At some point in the future this feature will be available
(both on char and str) in a crates.io crate.
2015-06-24 22:16:25 -07:00
Brody Holden
165a2817a4
Replace std::comm reference with std::sync::mpsc.
...
The FFI documentation references std::comm. Replace with
std::sync::mpsc.
Also wrap the line.
2015-06-24 20:08:55 -07:00
bors
23958d803e
Auto merge of #26553 - brson:stddocs, r=Gankro
...
"Rust" and "The Rust Standard Library" are capitalized.
2015-06-25 01:54:05 +00:00
Nick Hamann
db9af26d76
Add a regression test for #18119 .
...
Closes #18119
2015-06-24 20:15:23 -05:00
Nick Hamann
0cc26b2058
Use correct type for "use of moved value" error with closures.
...
Fixes #24357
2015-06-24 20:15:11 -05:00
bors
e5a28bca77
Auto merge of #26547 - nham:test-19538, r=alexcrichton
...
Closes #19538 .
2015-06-25 00:21:33 +00:00
Huon Wilson
225b116829
Make align_of behave like min_align_of.
...
This removes a footgun, since it is a reasonable assumption to make that
pointers to `T` will be aligned to `align_of::<T>()`. This also matches
the behaviour of C/C++. `min_align_of` is now deprecated.
Closes #21611 .
2015-06-24 17:00:43 -07:00
bors
009e53d70f
Auto merge of #26539 - jooert:remove_bit_vec_append_splitoff, r=alexcrichton
...
This seems to have slipped through the cracks in #26192 .
r? @alexcrichton
2015-06-24 22:49:46 +00:00
Brian Anderson
9b30eabc22
Fix capitalization in std docs
...
"Rust" and "The Rust Standard Library" are capitalized.
2015-06-24 14:33:41 -07:00
bors
21dd4e2a06
Auto merge of #26546 - agrover:add_flock, r=alexcrichton
...
flock(2) is in bsd44. Add its fn definition and constants.
2015-06-24 19:44:10 +00:00
Guillaume Gomez
b7e41d9aea
Add E0396 error explanation
2015-06-24 20:55:23 +02:00
Guillaume Gomez
47c3dc2e7e
Add E0395 error explanation
2015-06-24 20:49:12 +02:00
bors
e2c273f1bb
Auto merge of #26536 - frewsxcv:regression-test-22375, r=alexcrichton
...
Closes #22375
2015-06-24 18:11:39 +00:00
Nick Hamann
079bfad72d
Add a regression test for #19538 .
...
Closes #19538 .
2015-06-24 12:42:05 -05:00
Andy Grover
0f1e514400
Add flock() to liblibc
2015-06-24 10:22:10 -07:00
bors
43ad8d0bec
Auto merge of #26533 - nham:test-23305, r=alexcrichton
...
Closes #23305 .
2015-06-24 15:05:42 +00:00
bors
52f6318700
Auto merge of #26532 - dhuseby:fixing_bitrig_test_failure, r=alexcrichton
...
to get the bitrig builder working again.
2015-06-24 13:33:37 +00:00
bors
4c7d53a202
Auto merge of #26529 - steveklabnik:gh26366, r=alexcrichton
...
Fixes #26366
2015-06-24 12:01:35 +00:00
bors
d278632fef
Auto merge of #26528 - brson:papers, r=alexcrichton
...
This adds all papers that mention Rust that I'm aware of. Includes some undergrad work.
2015-06-24 10:29:26 +00:00
Johannes Oertel
239d9c2b09
Remove remaining use of bit_vec_append_splitoff feature gate.
2015-06-24 12:08:57 +02:00
bors
c411f13f65
Auto merge of #26431 - GuillaumeGomez:patch-2, r=Manishearth
...
Part of #24407 .
cc @michaelsproul
2015-06-24 08:57:34 +00:00
Corey Farwell
425871bd90
Add regression test for #22375
...
Closes #22375
2015-06-24 00:56:53 -07:00
Guillaume Gomez
3c98781256
Add missing end of string
2015-06-24 09:38:42 +02:00
bors
eeeda89e55
Auto merge of #26526 - djc:patch-1, r=steveklabnik
...
In particular, I found that the disclaimer (promised in the second paragraph) doesn't stand out right now. I think the extra headers help with scanning this document, and making it easier to discern which steps are relevant to my particular flow through the options.
2015-06-24 05:53:19 +00:00
bors
5678a1a299
Auto merge of #26520 - oli-obk:three-tuple-transitive-traits, r=bluss
...
Tuples implement Debug and Hash if their components do.
closes #24826
r? @alexcrichton
cc @steveklabnik
2015-06-24 04:21:34 +00:00
bors
2d0cbf3e3e
Auto merge of #26509 - tshepang:4-and-not-3, r=bluss
2015-06-24 02:51:13 +00:00
Nick Hamann
4982b23c22
Add a regression test for #23305 .
...
Closes #23305 .
2015-06-23 21:19:34 -05:00
bors
ba770ae094
Auto merge of #26521 - oli-obk:android-x86-libclibc, r=alexcrichton
...
All types are same as Android/arm. So I add condition for Android/x86
closes #25475
r? @alexcrichton
2015-06-24 01:07:36 +00:00
Steve Klabnik
56fd31f9a4
Fix grammar in style guide on traits
...
Fixes #26366
2015-06-23 15:54:16 -07:00
bors
55deea606b
Auto merge of #26219 - Veedrac:patch-1, r=alexcrichton
...
Fixes #26196 .
Alternatively we could explicitly check and complain (eg. panic), but I don't see the value-add.
2015-06-23 22:03:04 +00:00
Brian Anderson
913c51ab17
doc: Add newest Rust papers
2015-06-23 13:59:43 -07:00
bors
6fed735b22
Auto merge of #26061 - Gankro:inherit-dep, r=brson
...
Uncertain if this is the desired effect/strategy/testing.
r? @aturon
2015-06-23 20:30:56 +00:00
Guillaume Gomez
4c2587c1c0
Add potential cause of the error
2015-06-23 21:47:28 +02:00
Dirkjan Ochtman
5027c9f0d1
Add some more headers to installation documentations
...
In particular, I found that the disclaimer (promised in the second paragraph) doesn't stand out right now. I think the extra headers help with scanning this document, and making it easier to discern which steps are relevant to my particular flow through the options.
2015-06-23 21:31:07 +02:00