1. 15 May, 2019 3 commits
  2. 20 Apr, 2019 1 commit
  3. 19 Apr, 2019 6 commits
  4. 14 Apr, 2019 3 commits
  5. 13 Apr, 2019 1 commit
  6. 12 Apr, 2019 5 commits
  7. 10 Apr, 2019 2 commits
  8. 07 Apr, 2019 2 commits
    • Jeremy Soller's avatar
      Get rid of duplicate code · 50a5e5cc
      Jeremy Soller authored
      50a5e5cc
    • Jeremy Soller's avatar
      Add Redox scheme prefix · 4d71257e
      Jeremy Soller authored
      Fixes for Redox Path handling
      
      Update to new system calls and enviromental variables
      
      Remove unused type parameter
      
      Don't forget to close executable file
      
      Interpret shebangs on redox
      
      This is no longer handled on the kernel side
      
      Fix for missing setenv/unsetenv
      
      Use mangled names for compiler builtins to avoid conflicts with relibc
      
      Another attempt to fix build issues
      
      WIP aarch64-unknown-redox support
      
      Untested.
      
      Introduce a target family for Redox
      
      The Redox base target spec located within the rustc source did not
      specify a 'target_family' attribute. However, the x86_64 specific target
      spec located within the redox source did.
      
      Now AArch64 could have done something similar but unfortunately can't
      since there are rust compiler mods needed to support Redox on AArch64
      which imply that any AArch64 target spec file in the Redox source shall
      be ignored in favour of the target spec within the rustc source.
      
      The target_family attribute is eventually translated into an environment
      variable called CARGO_CFG_TARGET_FAMILY whose presence can be tested by
      software built with the compiler generated from the target spec.
      
      Some crates expect this variable to contain something failing which they
      crash. Eg onig_sys within rust-onig. Since the Redox base target spec in
      the rustc source doesn't specify target_family for AArch64, such crates
      don't build.
      
      The solution is to introduce target_family in the Redox base
      target spec within the rustc source so both x86_64 and AArch64 have it
      defined by default. It is set to "redox".
      
      "unix" would perhaps be more preferable but using that breaks the rustc
      build which starts making incorrect assumptions about the support libs
      that Redox has.
      4d71257e
  9. 06 Apr, 2019 6 commits
    • bors's avatar
      Auto merge of #59710 - alexcrichton:llvm-9-compat, r=sanxiyn · 8159f389
      bors authored
      rustc: Start implementing compat with LLVM 9
      
      This commit doesn't actually migrate to LLVM 9, but it brings our own
      C++ bindings in line with LLVM 9 and able to compile against tip of
      tree. The changes made were:
      
      * The `MainSubprogram` flag for debuginfo moved between flag types.
      * Iteration of archive members was tweaked slightly and we have to
        construct the two iterators before constructing the returned
        `RustArchiveIterator` value.
      * The `getOrInsertFunction` binding now returns a wrapper which we use
        `getCallee()` on to get the value we're interested in.
      8159f389
    • bors's avatar
      Auto merge of #59745 - cwhakes:master, r=sanxiyn · 209b0b41
      bors authored
      Change `copytest` parameter name from `y` to `sign`
      
      This should help clarify ambiguity with whether `a.copysign(b)` applies the sign of `a` to `b` or `b` to `a`.
      
      r? @Centril
      209b0b41
    • bors's avatar
      Auto merge of #59744 - cuviper:output-errors, r=sanxiyn · 2982dbf8
      bors authored
      Show better errors for LLVM IR output
      
      I was trying to output LLVM IR directly to the console:
      
          $ rustc hello.rs --emit=llvm-ir -o /dev/stdout
          LLVM ERROR: IO failure on output stream: Bad file descriptor
      
      Now `LLVMRustPrintModule` returns an error, and we print:
      
          error: failed to write LLVM IR to /dev/stdout.hello.7rcbfp3g-cgu.0.rcgu.ll: Permission denied
      
      ... which is more informative.
      2982dbf8
    • bors's avatar
      Auto merge of #59723 - Zoxc:rem-noforce, r=michaelwoerister · b025802a
      bors authored
      Remove no_force from coherent_trait
      
      r? @michaelwoerister
      b025802a
    • Will Hakes's avatar
      350e492b
    • Josh Stone's avatar
      Show better errors for LLVM IR output · aafe2c6d
      Josh Stone authored
      I was trying to output LLVM IR directly to the console:
      
          $ rustc hello.rs --emit=llvm-ir -o /dev/stdout
          LLVM ERROR: IO failure on output stream: Bad file descriptor
      
      Now `LLVMRustPrintModule` returns an error, and we print:
      
          error: failed to write LLVM IR to /dev/stdout.hello.7rcbfp3g-cgu.0.rcgu.ll: Permission denied
      
      ... which is more informative.
      aafe2c6d
  10. 05 Apr, 2019 11 commits
    • bors's avatar
      Auto merge of #59741 - Centril:rollup-3us4b8q, r=Centril · 05b4554e
      bors authored
      Rollup of 6 pull requests
      
      Successful merges:
      
       - #58894 (Fix invalid bounds string generation in rustdoc)
       - #59599 (Updated RELEASES.md for 1.34.0)
       - #59624 (SGX target: Use linker option to avoid code CGU assignment kludge)
       - #59696 (Remove invalid assertion back::link::from add_upstream_rust_crates().)
       - #59707 (Add missing tryfrom example)
       - #59727 (wasi: Use shared API for preopened fds)
      
      Failed merges:
      
      r? @ghost
      05b4554e
    • Mazdak Farrokhzad's avatar
      Rollup merge of #59727 - alexcrichton:wasi-apis, r=fitzgen · 8455818b
      Mazdak Farrokhzad authored
      wasi: Use shared API for preopened fds
      
      This commit updates the wasi target with supported added in
      CraneStation/wasi-sysroot#10. That function allows both C and Rust to
      cooperate in how preopened files are managed, enabling us to learn about
      propened files through the same interface. The `open_parent` function in
      the wasi `fs` module was updated to avoid its own initialization of a
      global preopened map and instead delegate to libc to perform this
      functionality.
      
      This should both be more robust into the future in terms of handling
      path logic as well as ensuring the propened map is correctly set up at
      process boot time. This does currently require some unfortunate
      allocations on our side, but if that becomes an issue we can always
      paper over those in time!
      8455818b
    • Mazdak Farrokhzad's avatar
      Rollup merge of #59707 - GuillaumeGomez:GuillaumeGomez-patch-1, r=Centril · c065367c
      Mazdak Farrokhzad authored
      Add missing tryfrom example
      
      r? @rust-lang/docs
      c065367c
    • Mazdak Farrokhzad's avatar
      Rollup merge of #59696 - michaelwoerister:fix-issue-59137, r=alexcrichton · f3f68987
      Mazdak Farrokhzad authored
      Remove invalid assertion back::link::from add_upstream_rust_crates().
      
      This removes a misplaced assertion. The function containing the assertion is actually only ever called for upstream crates that are not considered for LTO, so we don't care whether upstream code has been merged in by LTO or not.
      
      Fixes #59137
      
      r? @alexcrichton
      f3f68987
    • Mazdak Farrokhzad's avatar
      Rollup merge of #59624 - jethrogb:jb/sgx-unwind-syms, r=alexcrichton · 6c7ec18e
      Mazdak Farrokhzad authored
      SGX target: Use linker option to avoid code CGU assignment kludge
      
      cc @VardhanThigle @faern
      6c7ec18e
    • Mazdak Farrokhzad's avatar
      Rollup merge of #59599 - XAMPPRocky:master, r=Mark-Simulacrum · 2b90d673
      Mazdak Farrokhzad authored
      Updated RELEASES.md for 1.34.0
      
      [Rendered](https://github.com/XAMPPRocky/rust/blob/master/RELEASES.md)
      
      This also corrects an omission in the previous 1.33.0 release.
      
      r? @Mark-Simulacrum
      
      cc @rust-lang/release
      2b90d673
    • Mazdak Farrokhzad's avatar
      Rollup merge of #58894 - GuillaumeGomez:invalid-lifetime-bounds, r=estebank · e5435d97
      Mazdak Farrokhzad authored
      Fix invalid bounds string generation in rustdoc
      
      Fixes #58737.
      
      Very weird and I'm not sure this is the best fix around. However, trying to fix it beforehand seems overly complicated compared to the gain (in `clean`, it wouldn't change anything since we **have to** return something so that wouldn't work, and in `hir`, I'm afraid I'd break something else for very little gain).
      
      Also, I wasn't able to make a small code to reproduce the issue. The only way to test is to document `crossbeam` directly and check the `Scope` struct...
      
      r? @QuietMisdreavus
      e5435d97
    • bors's avatar
      Auto merge of #59500 - crlf0710:boxed-closure-impls, r=cramertj · acd8dd6a
      bors authored
      Unsized rvalues: implement boxed closure impls. (2nd try)
      
      This is a rebase of S-blocked-closed PR #55431 to current master. LLVM has moved forward since then, so maybe we can check whether the new LLVM 8.0 version unblocked this work.
      acd8dd6a
    • Mazdak Farrokhzad's avatar
      4ba30341
    • Alex Crichton's avatar
      wasi: Use shared API for preopened fds · bb2c0d18
      Alex Crichton authored
      This commit updates the wasi target with supported added in
      CraneStation/wasi-sysroot#10. That function allows both C and Rust to
      cooperate in how preopened files are managed, enabling us to learn about
      propened files through the same interface. The `open_parent` function in
      the wasi `fs` module was updated to avoid its own initialization of a
      global preopened map and instead delegate to libc to perform this
      functionality.
      
      This should both be more robust into the future in terms of handling
      path logic as well as ensuring the propened map is correctly set up at
      process boot time. This does currently require some unfortunate
      allocations on our side, but if that becomes an issue we can always
      paper over those in time!
      bb2c0d18
    • Guillaume Gomez's avatar
      Add missing tryfrom example · c3862107
      Guillaume Gomez authored
      c3862107