about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2014-04-10auto merge of #13437 : kaseyc/rust/remove_unnecessary_struct, r=sanxiynbors-3/+0
Removes the unused Point struct from assert-eq-macro-fail.rs.
2014-04-10auto merge of #13436 : pongad/rust/lazyemit, r=thestingerbors-176/+189
Fixes #11926
2014-04-09Remove the unused Point struct in the assert-eq-macro-fail.rs test.Kasey Carrothers-3/+0
2014-04-09auto merge of #13413 : alexcrichton/rust/once-fn-move, r=brsonbors-2/+61
This fixes the categorization of the upvars of procs (represented internally as once fns) to consider usage to require a loan. In doing so, upvars are no longer allowed to be moved out of repeatedly in loops and such. Closes #10398 Closes #12041 Closes #12127
2014-04-09Emit intrinsic lazilyMichael Darakananda-176/+189
2014-04-09auto merge of #13383 : ben0x539/rust/glob-dots, r=brsonbors-17/+111
Fixes #12930.
2014-04-08rustc: Prevent repeated moves out of proc upvarsAlex Crichton-2/+61
This fixes the categorization of the upvars of procs (represented internally as once fns) to consider usage to require a loan. In doing so, upvars are no longer allowed to be moved out of repeatedly in loops and such. Closes #10398 Closes #12041 Closes #12127
2014-04-08auto merge of #13399 : SimonSapin/rust/patch-8, r=cmrbors-1/+1
2014-04-08auto merge of #13397 : alexcrichton/rust/rollup, r=alexcrichtonbors-431/+782
2014-04-08Update an obsolete comment about conditionsSimon Sapin-1/+1
2014-04-08Test fixes from rollupAlex Crichton-8/+0
Closes #13394 (sync: remove unsafe and add Send+Share to Deref (enabled by autoderef vtables)) Closes #13389 (Made libflate functions return Options instead of outright failing) Closes #13388 (doc: Document flavorful variations of paths) Closes #13387 (Register new snapshots) Closes #13386 (std: Add more docs for ptr mod) Closes #13384 (Tweak crate loading to load less metadata) Closes #13382 (fix ~ZeroSizeType rvalues) Closes #13378 (Update tidy script, replace XXX with FIXME) Closes #13377 (std: User a smaller stdin buffer on windows) Closes #13369 (Fix spelling errors in comments.) Closes #13314 (Made 'make install' include libs for additional targets) Closes #13278 (std: make vec!() macro handle a trailing comma) Closes #13276 (Add test for #11881)
2014-04-08Add test for #11881JustAPerson-0/+60
Closes #11881. This code has been copied from the original issue and updated for modern Rust APIs.
2014-04-08std: make vec!() macro handle a trailing commaKang Seonghoon-1/+30
Fixes #12910.
2014-04-08Fix spelling errors in comments.Joseph Crail-5/+5
2014-04-08std: User a smaller stdin buffer on windowsAlex Crichton-1/+72
Apparently windows doesn't like reading from stdin with a large buffer size, and it also apparently is ok with a smaller buffer size. This changes the reader returned by stdin() to return an 8k buffered reader for stdin rather than a 64k buffered reader. Apparently libuv has run into this before, taking a peek at their code, with a specific comment in their console code saying that "ReadConsole can't handle big buffers", which I presume is related to invoking ReadFile as if it were a file descriptor. Closes #13304
2014-04-08Improve searching for XXX in tidy script (#3303)Boris Egorov-6/+7
Few places where previous version of tidy script cannot find XXX: * inside one-line comment preceding by a few spaces; * inside multiline comments (now it finds it if multiline comment starts on the same line with XXX). Change occurences of XXX found by new tidy script.
2014-04-08fix ~ZeroSizeType rvaluesDaniel Micay-2/+19
Closes #13360
2014-04-08rustc: Don't read both rlib and dylib metadataAlex Crichton-4/+12
This is an optimization which is quite impactful for compiling small crates. Reading libstd's metadata takes about 50ms, and a hello world before this change took about 100ms (this change halves that time). Recent changes made it such that this optimization wasn't performed, but I think it's a better idea do to this for now. See #10786 for tracking this issue.
2014-04-08rustc: Never register syntax crates in CStoreAlex Crichton-43/+51
When linking, all crates in the local CStore are used to link the final product. With #[phase(syntax)], crates want to be omitted from this linkage phase, and this was achieved by dumping the entire CStore after loading crates. This causes crates like the standard library to get loaded twice. This loading process is a fairly expensive operation when dealing with decompressing metadata. This commit alters the loading process to never register syntax crates in CStore. Instead, only phase(link) crates ever make their way into the map of crates. The CrateLoader trait was altered to return everything in one method instead of having separate methods for finding information.
2014-04-08rustc: Use CStore, not a separate crate cacheAlex Crichton-70/+61
This separate crate cache is one factor which is causing libstd to be loaded twice during normal compilation. The crates loaded for syntax extensions have a separate cache than the crates loaded for linking, so all crates are loaded once per #[phase] they're tagged with. This removes the cache and instead uses the CStore structure itself as the cache for loaded crates. This should allow crates loaded during the syntax phase to be shared with the crates loaded during the link phase.
2014-04-08std: Add more docs for ptr modBrian Anderson-53/+182
2014-04-08Register new snapshotsAlex Crichton-208/+194
2014-04-08doc: Document flavorful variations of pathsAlex Crichton-1/+46
Closes #4293
2014-04-08Made libflate functions return Options instead of outright failingTobba-21/+39
2014-04-08sync: remove unsafe and add Send+Share to Deref (enabled by autoderef vtables)Jim Radford-11/+7
2014-04-07native: Try hard to not malloc on a forked childAlex Crichton-1/+31
This appears to be causing the BSD bots to lock up when looking at the core dumps I've managed to get. Dropping the `FileDesc` structure triggers the `Arc` it's contained in to get cleaned up, invoking free(). This instead just closes the file descriptor (the arc itself is never cleaned up). I'm still not entirely sure why this is a problem because the pthreads runtime should register hooks for fork() to prevent this sort of deadlock, but perhaps that's only done on linux?
2014-04-08libglob: only return dirs for globs ending in /Benjamin Herr-2/+14
`foo.txt/` should not return `foo.txt` if `foo.txt` is in fact a text file and not a directory.
2014-04-08libglob: allow "." and ".." to be matchedBenjamin Herr-16/+98
... also don't read the whole directory if the glob for that path component doesn't contain any metacharacters. Patterns like `../*.jpg` will work now, and `.*` will match both `.` and `..` to be consistent with shell expansion. As before: Just `*` still won't match `.` and `..`, while it will still match dotfiles like `.git` by default.
2014-04-07auto merge of #13288 : alexcrichton/rust/remove-check-fast, r=brsonbors-456/+280
Rebasing of #12304.
2014-04-07Fix some windows rpass testsAlex Crichton-30/+72
2014-04-07auto merge of #13358 : tbu-/rust/pr_doc_equivrel, r=cmrbors-63/+72
Add requirements of TotalEq and TotalOrd Clarify that TotalEq needs an underlying equivalence relation and that TotalOrd needs a total ordering and specifically named the required (and sufficient) attributes.
2014-04-07auto merge of #13356 : alexcrichton/rust/ignore-flaky, r=huonwbors-1/+1
This test relies on the parent to be descheduled before the child sends its data. This has proved to be unreliable on libnative on the bots. It's a fairly trivial test regardless, so ignoring it for now won't lose much.
2014-04-07auto merge of #13354 : alexcrichton/rust/fixup-some-signals, r=sfacklerbors-10/+9
This also makes the listener struct sendable again by explicitly putting the Send bound on the relevant Rtio object. cc #13352
2014-04-07auto merge of #13347 : HeroesGrave/rust/master, r=alexcrichtonbors-1/+1
This has to be the most pathetic pull request I've ever made, but the `[` in `#![some_attribute]` was not getting highlighted in KATE.
2014-04-06auto merge of #13165 : sfackler/rust/io-vec, r=alexcrichtonbors-177/+187
`Reader`, `Writer`, `MemReader`, `MemWriter`, and `MultiWriter` now work with `Vec<u8>` instead of `~[u8]`. This does introduce some extra copies since `from_utf8_owned` isn't usable anymore, but I think that can't be helped until `~str`'s representation changes.
2014-04-06rmake: Fix a test on FreeBSDAlex Crichton-2/+13
2014-04-06Remove ignore-fast that has cropped upAlex Crichton-13/+2
2014-04-06Use ignore-freebsd for tests broken on FreeBSDBrian Anderson-2/+2
2014-04-06Ignore another test that fails mysteriously on BSDBrian Anderson-0/+2
2014-04-06test: Ignore run-make tests that don't work on BSDBrian Anderson-0/+13
2014-04-06mk: Pass the name of the make command to maketest.pyBrian Anderson-7/+8
This should make BSD use the proper GNU make.
2014-04-06test: Ignore compile-fail/issue-5806.rsBrian Anderson-0/+2
Broken on BSD. #12460
2014-04-06Remove check-fast. Closes #4193, #8844, #6330, #7416Brian Anderson-404/+168
2014-04-06De-~[] IO utilsSteven Fackler-6/+6
2014-04-06De-~[] Mem{Reader,Writer}Steven Fackler-65/+66
2014-04-06De-~[] Reader and WriterSteven Fackler-108/+117
There's a little more allocation here and there now since from_utf8_owned can't be used with Vec.
2014-04-06auto merge of #13346 : ben0x539/rust/priv-field-in, r=alexcrichtonbors-38/+135
In the error message for when a private field is used, include the name of the struct, or if it's a struct-like enum variant, the names of the variant and the enum. This fixes #13341.
2014-04-06auto merge of #13345 : bjz/rust/irc, r=alexcrichtonbors-1/+5
This adds links to `#rust-gamedev`, `#rust-internals`, and `#rust-osdev`.
2014-04-06Remove use of block comments in src/libstd/cmp.rsTobias Bucher-84/+72
2014-04-06auto merge of #13340 : FlaPer87/rust/code-model, r=cmrbors-1/+43
Rust currently defaults to `RelocPIC` regardless. This patch adds a new codegen option that allows choosing different relocation-model. The available models are: - default (Use the target-specific default model) - static - pic - no-pic For a more detailed information use `llc --help`