1. 08 4月, 2014 21 次提交
    • B
      02f51211
    • A
      Test fixes from rollup · da8d4fdd
      Alex Crichton 提交于
      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)
      da8d4fdd
    • J
      Add test for #11881 · cdf349d4
      JustAPerson 提交于
      Closes #11881.
      
      This code has been copied from the original issue and updated for
      modern Rust APIs.
      cdf349d4
    • K
      std: make vec!() macro handle a trailing comma · 7a281718
      Kang Seonghoon 提交于
      Fixes #12910.
      7a281718
    • D
      87334fb0
    • J
      Fix spelling errors in comments. · 22b63256
      Joseph Crail 提交于
      22b63256
    • A
      std: User a smaller stdin buffer on windows · 6ac34926
      Alex Crichton 提交于
      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
      6ac34926
    • B
      Improve searching for XXX in tidy script (#3303) · 00cbda2d
      Boris Egorov 提交于
      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.
      00cbda2d
    • D
      fix ~ZeroSizeType rvalues · de2567de
      Daniel Micay 提交于
      Closes #13360
      de2567de
    • A
      rustc: Don't read both rlib and dylib metadata · cced02fc
      Alex Crichton 提交于
      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.
      cced02fc
    • A
      rustc: Never register syntax crates in CStore · 5367c32c
      Alex Crichton 提交于
      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.
      5367c32c
    • A
      rustc: Use CStore, not a separate crate cache · 31755e24
      Alex Crichton 提交于
      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.
      31755e24
    • B
      std: Add more docs for ptr mod · ef37cfde
      Brian Anderson 提交于
      ef37cfde
    • A
      Register new snapshots · c3ea3e43
      Alex Crichton 提交于
      c3ea3e43
    • A
      doc: Document flavorful variations of paths · c83afb97
      Alex Crichton 提交于
      Closes #4293
      c83afb97
    • T
      bc234ae1
    • J
    • B
      auto merge of #13393 : alexcrichton/rust/hopefully-fix-bsd, r=sfackler · e415c25b
      bors 提交于
      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?
      e415c25b
    • A
      native: Try hard to not malloc on a forked child · 7da21090
      Alex Crichton 提交于
      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?
      7da21090
    • B
      auto merge of #13288 : alexcrichton/rust/remove-check-fast, r=brson · 9a33330c
      bors 提交于
      Rebasing of #12304.
      9a33330c
    • A
      Fix some windows rpass tests · 2ecae80a
      Alex Crichton 提交于
      2ecae80a
  2. 07 4月, 2014 19 次提交