about summary refs log tree commit diff
AgeCommit message (Collapse)AuthorLines
2015-09-09Rollup merge of #28281 - rutsky:patch-2, r=steveklabnikManish Goregaokar-4/+4
r? @steveklabnik
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-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-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-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-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-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-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-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 punctuation in listVladimir Rutsky-2/+2
r? @steveklabnik
2015-09-07Auto merge of #28275 - hunan-rostomyan:patch-1, r=steveklabnikbors-2/+2
2015-09-07Auto merge of #28272 - Manishearth:improve_vec_docs, r=steveklabnikbors-0/+6
r? @steveklabnik
2015-09-07at_exit: fix a typo of the doc commentRyo Munakata-1/+1
2015-09-07Auto merge of #28175 - christopherdumas:master, r=nrcbors-2/+1
per #28168. This is my first contribution. I don't know who to "r?" for source code changes.
2015-09-06Don't add unnamed address attributes to intrinsics.Richard Diamond-0/+24
Intrinsics never have an address, so it doesn't make sense to say that their address is unnamed.
2015-09-06Auto merge of #28270 - arielb1:raw-fat-ops, r=nrcbors-40/+234
r? @nrc Fixes #17736 Fixes #18829 Fixes #23888 Fixes #28236
2015-09-07Add note about clone in docs for vec![]Manish Goregaokar-0/+6
2015-09-06Fix a typoHunan Rostomyan-2/+2
2015-09-06Auto merge of #27893 - nikomatsakis:mir, r=nrcbors-103/+6161
This PR contains a new crate, `rustc_mir`, which implements the MIR as specified in the RFC (more or less). There are no targeted unit tests at the moment, as I didn't decide what kind of infrastructure would be best and didn't take the time to implement it. ~~NB: In packaging up this PR, I realized that MIR construction code is not triggering for methods right now, I think it's only for fixed fns. I'll push a fix for this soon. Hopefully it doesn't stop any crates from building. :)~~ Fixed. Everything still seems to work. However, the MIR construction code (`librustc_mir/build`) is intentionally quite distinct from the code which munges the compiler's data structures (`librustc_mir/tcx`). The interface between the two is the `HIR` trait (`librustc_mir/hir`). To avoid confusion with @nrc's work, perhaps a better name for this trait is warranted, although ultimately this trait *will* be connected to the HIR, I imagine, so in a way the name is perfect. Anyway, I'm open to suggestions. The initial motivation for this split was to allow for the MIR construction code to be unit-tested. But while I didn't end up writing unit tests (yet), I did find the split made the code immensely easier to think about, since the messiness of our existing system, with its myriad hashtables, punning, and so forth, is confined to one part, which simply transforms to a more fully explicit AST-like form. I tried to separate out the commits somewhat, but since this mostly new code, it mostly winds up coming in one fell swoop in the MIR commit. Quick guide to the MIR crate: - `repr.rs` defines the MIR itself; each MIR instance is parameterized by some HIR `H` - `build/` is the MIR construction code, parameterized by a particular HIR - `hir/` is the definition of the HIR interface - `tcx/` is the impl of the HIR interface for the tcx - `dump.rs` is the minimal compiler pass that invokes the HIR One open question: - In the HIR trait, I used exclusively struct-like variants. I found I like this more, since things have names. Should I convert the repr code?
2015-09-06enable slice patterns and enable building rustdocNiko Matsakis-108/+208
2015-09-06Auto merge of #28269 - petrochenkov:docorder, r=steveklabnikbors-17/+19
This is what I was talking about in https://github.com/rust-lang/rust/pull/26462#issuecomment-113883744 r? @steveklabnik
2015-09-06Auto merge of #28265 - boblehest:master, r=blussbors-11/+16
In the last code snippet on the following page there is a bug in the implementation of Vec::drain(). https://doc.rust-lang.org/nightly/nomicon/vec-drain.html ```rust pub fn drain(&mut self) -> Drain<T> { // Oops, setting it to 0 while we still need the old value! self.len = 0; unsafe { Drain { // len is used to create a &[T] from &self here, // so we end up always creating an empty slice. iter: RawValIter::new(&self), vec: PhantomData, } } } ``` A simple test to verify that Drain is broken can be found here: https://play.rust-lang.org/?gist=30f579565e4bbf4836ce&version=nightly And here's one with a fixed implementation: https://play.rust-lang.org/?gist=2ec0c1a6dcf5defd7a53&version=nightly
2015-09-06Rustonomicon: Reword potentially confusing comment in Vec::drain.Jørn Lode-2/+2
2015-09-06functional structure update syntax -> structure update syntaxchristopherdumas-2/+1
2015-09-06implement raw fat pointer opsAriel Ben-Yehuda-40/+234
2015-09-06Further tweaks to doc/index.mdVadim Petrochenkov-8/+10
2015-09-06Reorder sections in doc/index.mdVadim Petrochenkov-16/+16
2015-09-06convert TODOs to FIXMEsNiko Matsakis-2/+4
2015-09-06fix EUV delegate to take advantage of defaults. This alsoNiko Matsakis-1/+1
works around a stage0 bug that has since been fixed.
2015-09-06plumbing to automatically run MIR for crates where it works;Niko Matsakis-0/+13
this serves as a poor man's unit test infrastructure until MIR is more built up
2015-09-06add MIR crate and link it into the driverNiko Matsakis-2/+8
2015-09-06add -Z always-build-mir optionNiko Matsakis-0/+6
2015-09-06add MIR code (unused thus far)Niko Matsakis-12/+5856
2015-09-06extract autoderef type adjustment code into a reusableNiko Matsakis-22/+39
helper
2015-09-06move fnv hashing support into librustc_data_structuresNiko Matsakis-37/+57