summary refs log tree commit diff
AgeCommit message (Collapse)AuthorLines
2015-09-09Rollup merge of #28289 - shepmaster:include_bytes-docs, r=alexcrichtonManish Goregaokar-2/+2
This can be shown with the example code ```rust fn main() { let () = include_bytes!("/etc/hosts"); } Which will have the error: expected `&[u8; 195]`, found `()`
2015-09-09Rollup merge of #28283 - rutsky:patch-3, r=steveklabnikManish Goregaokar-1/+1
r? @steveklabnik
2015-09-09Rollup merge of #28281 - rutsky:patch-2, r=steveklabnikManish Goregaokar-4/+4
r? @steveklabnik
2015-09-09Auto merge of #28300 - Manishearth:crate_err, r=eddybbors-12/+138
Partially fixes #22750 I'll write a test for this when I figure out how to. r? @eddyb cc @steveklabnik
2015-09-09Add error code for tuple struct constructor errorGuillaume Gomez-3/+27
2015-09-09Add error code for unnecessary visibility qualifierGuillaume Gomez-1/+24
2015-09-09fix capitalization inside sentenseVladimir Rutsky-1/+1
2015-09-09Add error code for enum item visibility errorGuillaume Gomez-2/+29
2015-09-09Add new error code for visibility inside a functionGuillaume Gomez-6/+23
2015-09-09Add error code for privacy error on exported signatureGuillaume Gomez-1/+29
2015-09-09Add new error code for trait privacy errorGuillaume Gomez-2/+40
2015-09-09Auto merge of #28297 - lifthrasiir:rustdoc-html-tweaks, r=alexcrichtonbors-16/+28
I have tested the result with w3m and I believe this is better than the current template. In detail: - `section.sidebar` -> `nav.sidebar`, also added an unordered list. - `div#help` -> `aside#help`, also added a hidden heading. - The current crate is now emphasized in the sidebar. Fixes #16310.
2015-09-09Auto merge of #28277 - DiamondLovesYou:intrinsic-unnamed-addr, r=huonwbors-0/+24
Intrinsics never have an address, so it doesn't make sense to say that their address is unnamed.
2015-09-09Auto merge of #28198 - alexcrichton:from-raw-mut, r=aturonbors-8/+5
Conventionally in C `*mut T` is a transfer of ownership where `*const T` is a loan, so `*mut T` is likely the more appropriate return type for these functions. Additionally, this more closely mirrors the APIs on `Box` for this sort of functionality. cc #27769
2015-09-08Remove references to removed Valgrind headersAndrew Paseltiner-98/+0
2015-09-08Auto merge of #28264 - mneumann:dragonfly_backend_fixes2, r=alexcrichtonbors-2/+0
Having -L/usr/local/lib in the linking path by default interferes with an already installed version of Rust during building of Rust.
2015-09-08Add tests for #17001, #21449, #22992, #23208, #23442Andrew Paseltiner-0/+208
Closes #17001 Closes #21449 Closes #22992 Closes #23208 Closes #23442
2015-09-08Auto merge of #28241 - dhuseby:adding_openbsd_snapshot, r=alexcrichtonbors-0/+1
@alexcrichton please upload this snapshot when landing: https://github.com/dhuseby/rust-manual-snapshots/raw/master/rust-stage0-2015-08-11-1af31d4-openbsd-x86_64-9cae790c4ca19b1b29a048605ce249fe1c20a498.tar.bz2 BTW, this is the snapshot that @semarie has published on his website for use in the OpenBSD port for rust. Credit goes to him.
2015-09-09Print correct crate nameManish Goregaokar-3/+5
2015-09-09Add testManish Goregaokar-0/+71
2015-09-09Fix fixme, add crate checkManish Goregaokar-2/+2
2015-09-08Use 'a different' for trait object mismatches tooManish Goregaokar-12/+17
2015-09-08Handle trait objectsManish Goregaokar-15/+26
2015-09-08Auto merge of #28173 - alexcrichton:llvm-37, r=brsonbors-1/+1
This updates the jemalloc and LLVM submodules to the recently released 4.0.0 and 3.7 versions. There's no breakage on the LLVM side of things because we had already been tracking the 3.7 release branch for awhile and no breakage was introduced, and jemalloc apparently is stable enough that nothing broke!
2015-09-08Auto merge of #28292 - kud1ing:patch-1, r=steveklabnikbors-3/+3
The dates are taken from * https://www.rust-lang.org/install.html * http://blog.rust-lang.org/2015/06/25/Rust-1.1.html * http://blog.rust-lang.org/2015/05/15/Rust-1.0.html
2015-09-09rustdoc: Tweak the main template and CSS for semantic mark-up.Kang Seonghoon-16/+28
- section.sidebar -> nav.sidebar, also added an unordered list. - div#help -> aside#help, also added a hidden heading. - the current crate is now emphasized in the sidebar. Fixes #16310.
2015-09-08Add note for when a type error comes from similarly named objects from two ↵Manish Goregaokar-0/+37
different crate of the same name (#22750)
2015-09-08Fix small sentence about referencesSteve Klabnik-2/+2
Thanks Eric, reported via email
2015-09-08Auto merge of #28287 - llogiq:clippy, r=Manishearthbors-272/+252
It's a large number of small improvements to the code, mostly readability-related, but removing closures and replacing `str::to_string()` with `.to_owned()` should also positively affect performance. r? @Manishearth (once it compiles, of course :smile:)
2015-09-08Fix link to hygienic macros on Wikipediamidinastasurazz-1/+1
2015-09-08Reverted for-loop, it messes up type inferencellogiq-1/+2
2015-09-08Add release days, fixes #28228kud1ing-3/+3
2015-09-08Let's see if lifetime elision works in this casellogiq-1/+1
2015-09-08Fixed required type coercionllogiq-1/+2
I'd have thought that the types of the slice::Split would have been inferred, but this appears not to be the case. Reverted this one change.
2015-09-08Auto merge of #28291 - nrc:shr_span_fix, r=sfacklerbors-1/+21
2015-09-08Fix span bug with >> and type bindingsNick Cameron-1/+21
2015-09-08Auto merge of #28246 - huonw:lang-tracking-issues, r=alexcrichtonbors-110/+145
This is similar to the libs version, which allow an `issue` field in the `#[unstable]` attribute. cc #28244
2015-09-08Allow tracking issues for lang features.Huon Wilson-110/+145
This is similar to the libs version, which allow an `issue` field in the `#[unstable]` attribute. cc #28244
2015-09-07Clarify that `include_bytes!` returns a reference to an array, not just a sliceJake Goulding-2/+2
This can be shown with the example code ```rust fn main() { let () = include_bytes!("/etc/hosts"); } Which will have the error: expected `&[u8; 195]`, found `()`
2015-09-08fixes/improvements thanks to @ManishearthAndre Bogus-6/+4
2015-09-08some more clippy-based improvementsAndre Bogus-273/+253
2015-09-07Auto merge of #28285 - steveklabnik:split_at_idiom, r=arielb1bors-1/+3
Generally, including everything that makes an unsafe block safe in the block is good style. Since the assert! is what makes this safe, it should go inside the block. I also added a few bits of whitespace. This is of course, a little style thing, so no worries if we don't want this patch.
2015-09-07libsyntax: restore lost error messageAleksey Kladov-1/+5
2015-09-07libsyntax: remove dead code from parser.rsAleksey Kladov-35/+24
Both `parse_tuple_struct_body` and `parse_item_struct` handled the case of unit like struct. The redundancy is removed, `parse_tuple_struct_body` now handles only real tuple structs.
2015-09-07Use unsafe more idiomaticallySteve Klabnik-1/+3
Generally, including everything that makes an unsafe block safe in the block is good style. Since the assert! is what makes this safe, it should go inside the block. I also added a few bits of whitespace.
2015-09-07Auto merge of #28278 - pfpacket:typo, r=steveklabnikbors-1/+1
2015-09-07fix punctuation in list (again)Vladimir Rutsky-2/+2
2015-09-07fix capitalization inside sentenseVladimir Rutsky-1/+1
2015-09-07fix punctuation in listVladimir Rutsky-2/+2
r? @steveklabnik
2015-09-07Auto merge of #28275 - hunan-rostomyan:patch-1, r=steveklabnikbors-2/+2