1. 18 3月, 2016 12 次提交
  2. 17 3月, 2016 10 次提交
  3. 16 3月, 2016 18 次提交
    • B
      Auto merge of #32228 - jonas-schievink:diag1, r=sanxiyn · fd5603b6
      bors 提交于
      Normalize return type when checking for E0269
      
      Fixes #31597
      
      First time dealing with normalization. Maybe `normalize_associated_type` would be better here, but it seems to imply it's only used during trans.
      fd5603b6
    • B
      Auto merge of #32280 - japaric:rt, r=alexcrichton · e68d40ed
      bors 提交于
      update compiler-rt submodule
      
      fixes #32194
      
      also see rust-lang/compiler-rt#17
      
      r? @alexcrichton
      e68d40ed
    • J
      Resolve conflicts and extend the test · 96d9408d
      Jonas Schievink 提交于
      96d9408d
    • J
      Use `fully_normalize`, unwrapping its result · 4dbb01ff
      Jonas Schievink 提交于
      4dbb01ff
    • J
      Normalize return type when checking for E0269 · f0b0a4ff
      Jonas Schievink 提交于
      Fixes #31597
      f0b0a4ff
    • B
      Auto merge of #32273 - alexcrichton:fix-time-sub, r=aturon · 9afa5a13
      bors 提交于
      std: Fix overflow when subtracting Instant
      
      This code was currently only exercised on OSX, but this applies the same method
      of subtraction used on Linux which doesn't have the same overflow issues.
      
      Note that this currently includes no tests, but that's because this is only
      visible with debug assertions enabled. Soon, however, I'll enable debug
      assertions on all auto builds on the bots so we should get testing for this.
      
      Closes #32268
      9afa5a13
    • O
      7a2c50f9
    • J
      Fix fallout in tests · b3c62654
      Jeffrey Seyfried 提交于
      b3c62654
    • J
      Improve diagnostics for duplicate names · 65ec4dfe
      Jeffrey Seyfried 提交于
      65ec4dfe
    • B
      Auto merge of #32266 - alexcrichton:fix-mingw-rustbuild-again, r=brson · 3317cc9d
      bors 提交于
      rustbuild: Fix LLVM compile on MinGW
      
      The LLVM change [1] in #32239 unfortunately broke the LLVM build on MinGW, so
      this LLVM submodule update brings in one more fix [2] which should hopefully
      remedy that.
      
      Once this lands we should be able to immediately start gating on this to prevent
      it from happening again.
      
      [1]: https://github.com/rust-lang/llvm/commit/be89e4b5
      [2]: https://github.com/rust-lang/llvm/commit/3dcd2c84
      3317cc9d
    • J
      update compiler-rt submodule · 34a44b59
      Jorge Aparicio 提交于
      fixes #32194
      34a44b59
    • B
      Auto merge of #32236 - alexcrichton:better-compile-intrinsics, r=arielb1 · 0986d645
      bors 提交于
      rustc: Improve compile time of platform intrinsics
      
      This commit improves the compile time of `rustc_platform_intrinsics` from 23s to
      3.6s if compiling with `-O` and from 77s to 17s if compiling with `-O -g`. The
      compiled rlib size also drops from 3.1M to 1.2M.
      
      The wins here were gained by removing the destructors associated with `Type` by
      removing the internal `Box` and `Vec` indirections. These destructors meant that
      a lot of landing pads and extra code were generated to manage the runtime
      representations. Instead everything can basically be statically computed and
      shoved into rodata, so all we need is a giant string compare to lookup what's
      what.
      
      Closes #28273
      0986d645
    • A
      rustc: Improve compile time of platform intrinsics · 87ede2da
      Alex Crichton 提交于
      This commit improves the compile time of `rustc_platform_intrinsics` from 23s to
      3.6s if compiling with `-O` and from 77s to 17s if compiling with `-O -g`. The
      compiled rlib size also drops from 3.1M to 1.2M.
      
      The wins here were gained by removing the destructors associated with `Type` by
      removing the internal `Box` and `Vec` indirections. These destructors meant that
      a lot of landing pads and extra code were generated to manage the runtime
      representations. Instead everything can basically be statically computed and
      shoved into rodata, so all we need is a giant string compare to lookup what's
      what.
      
      Closes #28273
      87ede2da
    • A
      std: Fix overflow when subtracting Instant · 0943b166
      Alex Crichton 提交于
      This code was currently only exercised on OSX, but this applies the same method
      of subtraction used on Linux which doesn't have the same overflow issues.
      
      Note that this currently includes no tests, but that's because this is only
      visible with debug assertions enabled. Soon, however, I'll enable debug
      assertions on all auto builds on the bots so we should get testing for this.
      
      Closes #32268
      0943b166
    • B
      Auto merge of #31838 - aochagavia:trans, r=nrc · c66d2380
      bors 提交于
      Refactor rustc_trans::save to allow other backends than CSV
      
      r? @nrc
      
      Things done:
      * Moved `(.*)Data` structs to an own module, so they can be imported easily (`use data::*`).
      * Created a `Dump` trait with callbacks for dumping items.
      * Refactored `DumpCsvVisitor` to use an implementor of `Dump` instead of dumping as CSV. Renamed it to `DumpVisitor`.
      * Created a `DumpCsv` struct that implements `Dump` and serializes items as CSV.
      
      I tried to extract some of the logic contained in `FmtStr` and `Recorder`, such as normalization of ids (I put it in `DumpVisitor`). I think it makes sense to provide the same information to other implementors of `Dump`, instead of normalizing only for `DumpCsv`. However, there is still some logic related to spans implemented only for `DumpCsv`. I just thought it would be better to merge this as soon as possible, since there are so much changes, and fix this afterwards.
      c66d2380
    • A
      Refactor rustc_trans::save · 67395d81
      Adolfo Ochagavía 提交于
      Move rustc_trans::*Data to own module
      Add new data to rustc_trans::save
      Create a Dump trait implemented by structs that dump save analysis data
      Split dump_csv into a DumpVisitor and a CsvDumper
      67395d81
    • A
      rustbuild: Fix LLVM compile on MinGW · 41e184c7
      Alex Crichton 提交于
      The LLVM change [1] in #32239 unfortunately broke the LLVM build on MinGW, so
      this LLVM submodule update brings in one more fix [2] which should hopefully
      remedy that.
      
      Once this lands we should be able to immediately start gating on this to prevent
      it from happening again.
      
      [1]: https://github.com/rust-lang/llvm/commit/be89e4b5
      [2]: https://github.com/rust-lang/llvm/commit/3dcd2c84
      41e184c7
    • B
      Auto merge of #31887 - SimonSapin:quiet-test, r=alexcrichton · 74dfc1dd
      bors 提交于
      Shorter output for `rustc --test` binaries.
      
      Until now, a program created with `rustc --test` prints at least one line per test. This can be very verbose, especially with [data-driven tests](https://internals.rust-lang.org/t/test-and-external-test-harnesses/3145) when hundreds or thousands of tests is not rare.
      
      This changes the default output to one character per test (except metrics and benchmarks results which have additional data to show):
      
      ```
           Running target/debug/wpt-75c594dc1e6e6187
      
      running 314 tests
      ..............................................................................
      ..............................................................................
      ..............................................................................
      ..............................................................................
      ..
      test result: ok. 314 passed; 0 failed; 0 ignored; 0 measured
      ```
      
      <s>The previous behavior is available by passing `--verbose` to the test program. Maybe `cargo test --verbose` could be changed to do that?</s> **Edit:** the default is now unchanged, `-q` or `--quiet` enables the new output.
      74dfc1dd