Vadim Petrochenkov
30af54dede
Dict -> Struct, StructDef -> VariantData, def -> data
2015-10-13 15:19:24 +03:00
Vadim Petrochenkov
f4e3851aa7
Fix rebase
2015-10-13 15:19:22 +03:00
Vadim Petrochenkov
b404ded15b
Fix failing privacy test
2015-10-13 15:19:21 +03:00
Vadim Petrochenkov
8a12c19171
Test and gate empty structures and variants better
2015-10-13 15:19:20 +03:00
Vadim Petrochenkov
beda1f88a7
Provide span for visit_struct_def + remove some dead code
2015-10-13 15:19:19 +03:00
Vadim Petrochenkov
877c35e8a2
Remove now redundant NodeId from Variant
2015-10-13 15:19:18 +03:00
Vadim Petrochenkov
495566ee61
Decouple structure kinds from NodeIds
2015-10-13 15:19:17 +03:00
Vadim Petrochenkov
2314ab29c2
Unify structures and enum variants in HIR
2015-10-13 15:19:16 +03:00
Vadim Petrochenkov
ea47c2b6b3
Unify structures and enum variants in AST
2015-10-13 15:19:15 +03:00
bors
ec4362da56
Auto merge of #28993 - frewsxcv:regression-test-17336, r=alexcrichton
...
Closes #17336
2015-10-13 03:19:11 +00:00
bors
60c18c8f34
Auto merge of #28987 - ahmedcharles:liballoc, r=brson
2015-10-13 00:37:09 +00:00
bors
5c7dbf6c0e
Auto merge of #28986 - ahmedcharles:error-index-generator, r=brson
2015-10-12 20:16:24 +00:00
Corey Farwell
d98195b40c
Add regression test for #17336
...
Closes #17336
2015-10-12 09:44:26 -04:00
bors
8aa621a996
Auto merge of #28914 - steveklabnik:doc_iterator, r=alexcrichton
...
This replaces what was there with a comprehensive overview.
Thanks to @hoverbear for suggesting that these docs needed improvement.
2015-10-12 13:40:46 +00:00
Steve Klabnik
1fbf8bb664
Write better module-level docs for std::iter
...
This replaces what was there with a comprehensive overview.
2015-10-12 09:40:48 -04:00
bors
843e528fd0
Auto merge of #28985 - ahmedcharles:driver, r=nrc
2015-10-12 08:11:40 +00:00
Ahmed Charles
f65dbb1dc4
Run rustfmt on error-index-generator.
2015-10-11 23:44:32 -07:00
Ahmed Charles
e49a9561dc
Run rustfmt on driver.
2015-10-11 23:41:43 -07:00
Ahmed Charles
5dcd406188
Run rustfmt on liballoc.
2015-10-11 22:11:59 -07:00
bors
81b3b27cf5
Auto merge of #28969 - chrisccerami:link_to_ffi_in_concurrency_chapter, r=steveklabnik
2015-10-11 23:20:28 +00:00
bors
c413bb4fff
Auto merge of #28973 - nrc:match-source, r=Manishearth
...
r? @Manishearth
2015-10-11 21:35:48 +00:00
Nick Cameron
254a10b318
Properly set the MatchSource for for loops
2015-10-12 09:49:29 +13:00
bors
8fbb35b835
Auto merge of #28960 - barosl:home-temp-dir-doc, r=alexcrichton
...
This concern was raised by #28940 .
2015-10-11 19:51:22 +00:00
bors
9dafceb1f9
Auto merge of #28948 - steveklabnik:gh28944, r=alexcrichton
...
"Crate features" isn't a thing in Rust, but you do need to add this line
to your crate root.
Fixes #28944
2015-10-11 18:06:51 +00:00
Chris C Cerami
42e3f1dfae
Link to FFI in Concurrency chapter
2015-10-11 13:23:57 -04:00
bors
603582776a
Auto merge of #28966 - ykomatsu:trpl, r=steveklabnik
2015-10-11 16:20:13 +00:00
bors
84ff665558
Auto merge of #28964 - eminence:docfix, r=sfackler
...
r? @steveklabnik
2015-10-11 14:32:45 +00:00
Yoshito Komatsu
9652fc1d49
Fix some typos
2015-10-11 22:38:44 +09:00
bors
db6c7124b4
Auto merge of #28965 - bluss:ptr-write-doc, r=huonw
...
core: Update the safety docs for core::ptr::write
Updated to reflect that not dropping a value is safe (but discouraged).
2015-10-11 11:45:26 +00:00
Ulrik Sverdrup
4dee42fe58
core: Update the safety docs for core::ptr::write
...
Updated to reflect that not dropping a value is safe (but discouraged).
2015-10-11 13:40:47 +02:00
Andrew Chin
dce58baff0
Trivial typo fix: from_utrf8 should be from_utf8
2015-10-10 23:33:43 -04:00
Barosl Lee
8667aa207b
Clarify the behavior of std::env::home_dir
and std::env::temp_dir
...
This concern was raised by #28940 .
2015-10-11 09:46:23 +09:00
bors
9d3e79ad37
Auto merge of #28941 - jcaudle:rustfmt/librand-distributions-normal, r=nrc
...
This is my first PR to rust and first collaboration on a rust project, but I think the formatting looked ok. If this works out, I hope to go through more of librand.
2015-10-10 22:39:35 +00:00
bors
f0ae44ab93
Auto merge of #28949 - iwillspeak:rustfmt-libflate, r=nrc
...
This commit updates the libflate crate with the formatting output of
`rustfmt`.
r? @nrc
2015-10-10 19:55:37 +00:00
Will Speak
e3af117f4d
Update Libflate Formatting
...
This commit updates the libflate crate with the formatting output of
`rustfmt`.
2015-10-10 19:00:20 +01:00
Steve Klabnik
988ab562eb
Diagnostic change: crate features -> crate root
...
"Crate features" isn't a thing in Rust, but you do need to add this line
to your crate root.
Fixes #28944
2015-10-10 13:35:40 -04:00
bors
1302187673
Auto merge of #28945 - shama:doc-typos, r=steveklabnik
...
Just a few typos found in the docs. Thanks!
2015-10-10 16:40:05 +00:00
Kyle Robinson Young
a6aa6456ee
doc: fixing typos
2015-10-10 09:15:55 -07:00
bors
e3cd872418
Auto merge of #28922 - panicbit:trpl-missing-docs, r=steveklabnik
2015-10-10 14:51:42 +00:00
bors
e6abcbcb21
Auto merge of #28938 - GlenDC:master, r=Manishearth
...
Here is my attempt to resolve issue #28822 , @Manishearth.
Please let me know if it's fine. And if not, what should I do instead?
This issue felt like quite a good start for some rust contributions. It allows me to get used to the workflow and codebase of rust in an easy-to-swallow manner. Are there any other issues you would recommend me to look at? :) Would love to do some more stuff!
2015-10-10 12:02:24 +00:00
glendc
55546362d9
Whitelisting PatWild for E0022. Fix #28822
2015-10-10 09:27:24 +00:00
bors
8091cb139f
Auto merge of #28930 - steveklabnik:update_pr, r=steveklabnik
...
https://github.com/rust-lang/rust/pull/27813#issuecomment-146842041
2015-10-10 07:56:49 +00:00
bors
39376de485
Auto merge of #28920 - dotdash:const_align, r=eddyb
...
For enum variants, the default alignment for a specific variant might be
lower than the alignment of the enum type itself. In such cases we, for
example, generate memcpy calls with an alignment that's higher than the
alignment of the constant we copy from.
To avoid that, we need to explicitly set the required alignment on
constants.
Fixes #28912 .
2015-10-10 06:07:40 +00:00
bors
840d29eab6
Auto merge of #28928 - ykomatsu:trpl, r=Manishearth
2015-10-10 04:15:33 +00:00
Joseph Caudle
928e4b2541
Run rustfmt on librand/distributions/normal.rs
2015-10-10 00:01:57 -04:00
bors
b6fd615b8a
Auto merge of #28932 - barosl:empty-comment, r=alexcrichton
...
Previously, `/**/` was incorrectly regarded as a doc comment because it starts with `/**` and ends with `*/`. However, this caused an ICE because some code assumed that the length of a doc comment is at least 5. This commit adds an additional check to `is_block_doc_comment` that tests the length of the input.
Fixes #28844 .
2015-10-10 02:29:37 +00:00
bors
87cd2c0827
Auto merge of #28861 - pnkfelix:fsk-nonparam-dropck-issue28498, r=arielb1
...
implement RFC 1238: nonparametric dropck.
cc #28498
cc @nikomatsakis
2015-10-10 00:39:29 +00:00
Björn Steinbrink
6ad079e341
Set proper alignment on constants
...
For enum variants, the default alignment for a specific variant might be
lower than the alignment of the enum type itself. In such cases we, for
example, generate memcpy calls with an alignment that's higher than the
alignment of the constant we copy from.
To avoid that, we need to explicitly set the required alignment on
constants.
Fixes #28912 .
2015-10-10 01:15:36 +02:00
bors
439311d938
Auto merge of #28049 - steveklabnik:doc_write, r=alexcrichton
2015-10-09 22:15:24 +00:00
Björn Steinbrink
7ff4524e54
Use a proper C string for the gdb script section name
2015-10-09 23:25:57 +02:00