1. 21 6月, 2022 4 次提交
  2. 20 6月, 2022 16 次提交
    • G
      Rename ContextInfo into HrefContext · dda980de
      Guillaume Gomez 提交于
      dda980de
    • G
      Add support for macro in "jump to def" feature · 3f12fa7f
      Guillaume Gomez 提交于
      3f12fa7f
    • B
      Auto merge of #98264 - compiler-errors:missing-arg-placeholder, r=jackh726 · a5c039cd
      bors 提交于
      Make missing argument placeholder more obvious that it's a placeholder
      
      Use `/* ty */` instead of `{ty}`, since people might be misled into thinking that this is valid syntax, and not just a diagnostic placeholder.
      
      Fixes #96880
      a5c039cd
    • B
      Auto merge of #97931 - xldenis:fix-if-let-source-scopes, r=nagisa · 9a0b7749
      bors 提交于
      Fix `SourceScope` for `if let` bindings.
      
      Fixes #97799.
      
      I'm not sure how to test this properly, is there any way to observe the difference in behavior apart from `ui` tests? I'm worried that they would be overlooked in the case of a regression.
      9a0b7749
    • B
      Auto merge of #98265 - JohnTitor:rollup-wtfqc4g, r=JohnTitor · 17c6bde1
      bors 提交于
      Rollup of 4 pull requests
      
      Successful merges:
      
       - #95534 (Add `core::mem::copy` to complement `core::mem::drop`.)
       - #97912 (Stabilize `Path::try_exists()` and improve doc)
       - #98225 (Make debug_triple depend on target json file content rather than file path)
       - #98257 (Fix typos in `IntoFuture` docs)
      
      Failed merges:
      
      r? `@ghost`
      `@rustbot` modify labels: rollup
      17c6bde1
    • Y
      Rollup merge of #98257 - kadiwa4:into_future_doc_typos, r=Dylan-DPC · 761f83f6
      Yuki Okushi 提交于
      Fix typos in `IntoFuture` docs
      761f83f6
    • Y
      Rollup merge of #98225 - bjorn3:stable_target_json_hash, r=nagisa · bfa6cd9c
      Yuki Okushi 提交于
      Make debug_triple depend on target json file content rather than file path
      
      This ensures that changes to target json files will force a recompilation. And more importantly that moving the files doesn't force a recompilation.
      
      This should fix https://github.com/Rust-for-Linux/linux/issues/792 (cc ``@ojeda)``
      bfa6cd9c
    • Y
      Rollup merge of #97912 - Kixunil:stabilize_path_try_exists, r=dtolnay · 77316a4a
      Yuki Okushi 提交于
      Stabilize `Path::try_exists()` and improve doc
      
      This stabilizes the `Path::try_exists()` method which returns
      `Result<bool, io::Error>` instead of `bool` allowing handling of errors
      unrelated to the file not existing. (e.g permission errors)
      
      Along with the stabilization it also:
      
      * Warns that the `exists()` method is error-prone and suggests to use
        the newly stabilized one.
      * Suggests it instead of `metadata()` to handle errors.
      * Mentions TOCTOU bugs to avoid false assumption that `try_exists()` is
        completely safe fixed version of `exists()`.
      * Renames the feature of still-unstable `std::fs::try_exists()` to
        `fs_try_exists` to avoid name conflict.
      
      The tracking issue #83186 remains open to track `fs_try_exists`.
      77316a4a
    • Y
      Rollup merge of #95534 - jyn514:std-mem-copy, r=joshtriplett · 9d4e08e7
      Yuki Okushi 提交于
      Add `core::mem::copy` to complement `core::mem::drop`.
      
      This is useful for combinators. I didn't add `clone` since you can already
      use `Clone::clone` in its place; copy has no such corresponding function.
      9d4e08e7
    • B
      Auto merge of #97268 - jyn514:faster-assemble, r=Mark-Simulacrum · 611e7b9c
      bors 提交于
      Make "Assemble stage1 compiler" orders of magnitude faster (take 2)
      
      This used to take upwards of 5 seconds for me locally. I found that the culprit was copying the downloaded LLVM shared object:
      ```
      [22:28:03] Install "/home/jnelson/rust-lang/rust/build/x86_64-unknown-linux-gnu/ci-llvm/lib/libLLVM-14-rust-1.62.0-nightly.so" to "/home/jnelson/rust-lang/rust/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/x86_64-unknown-linux-gnu/lib/libLLVM-14-rust-1.62.0-nightly.so"
      [22:28:09]   c Sysroot { compiler: Compiler { stage: 1, host: x86_64-unknown-linux-gnu(x86_64-unknown-linux-gnu) } }
      ```
      
      It turned out that `install()` used full copies unconditionally. Change it to try using a hard-link before falling back to copying.
      
      - Panic if we generate a symbolic link in a tarball
      - Change install to use copy internally, like in my previous PR
      - Change copy to dereference symbolic links, which avoids the previous regression in #96803.
      
      I also took the liberty of fixing `x dist llvm-tools` to work even if you don't call `x build` previously.
      611e7b9c
    • M
    • J
      Add `core::mem::copy` to complement `core::mem::drop`. · 9ac6277b
      Joshua Nelson 提交于
      This is useful for combinators. I didn't add `clone` since you can already
      use `Clone::clone` in its place; copy has no such corresponding function.
      9ac6277b
    • J
      Make "Assemble stage1 compiler" orders of magnitude faster · 057eab7a
      Joshua Nelson 提交于
      This used to take upwards of 5 seconds for me locally. I found that the
      culprit was copying the downloaded LLVM shared object:
      ```
      [22:28:03] Install "/home/jnelson/rust-lang/rust/build/x86_64-unknown-linux-gnu/ci-llvm/lib/libLLVM-14-rust-1.62.0-nightly.so" to "/home/jnelson/rust-lang/rust/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/x86_64-unknown-linux-gnu/lib/libLLVM-14-rust-1.62.0-nightly.so"
      [22:28:09]   c Sysroot { compiler: Compiler { stage: 1, host: x86_64-unknown-linux-gnu(x86_64-unknown-linux-gnu) } }
      ```
      
      It turned out that `install()` used full copies unconditionally. Change
      it to use `copy()` internally, which uses hard links instead when
      available.
      
      Note that this has a change in behavior: Installing a file will also
      change permissions on the source, not just the destination, if hard
      links are used.
      
      To avoid changing the behavior on symlinks for existing code, I
      introduce a new function `copy_internal` which only dereferences
      symlinks when told to do so.
      057eab7a
    • J
      Panic if `dist` generates a symbolic link in a generated tarball · b9eedea4
      Joshua Nelson 提交于
      This avoids regressions in rustup-toolchain-install-master
      b9eedea4
    • B
      Auto merge of #98247 - jackh726:regionkind-rustc-type-ir, r=compiler-errors · bb8c2f41
      bors 提交于
      Move RegionKind to rustc_type_ir
      
      (Also UniverseIndex)
      
      r? rust-lang/types
      bb8c2f41
    • B
      Auto merge of #98224 - eddyb:proc-macro-spurious-repr, r=bjorn3 · 2b646bd5
      bors 提交于
      proc_macro/bridge: remove `#[repr(C)]` from non-ABI-relevant types.
      
      Not sure how this happened, maybe some of these were passed through the bridge a long time ago?
      
      r? `@bjorn3`
      2b646bd5
  3. 19 6月, 2022 20 次提交