1. 14 6月, 2021 1 次提交
  2. 08 6月, 2021 2 次提交
    • T
      build doctests with lld if use-lld = true · 0ddc3afb
      The8472 提交于
      0ddc3afb
    • P
      ignore ui-fulldeps/session-derive-errors.rs on beta and stable · a1c88468
      Pietro Albini 提交于
      The session-derive-errors test ensures the internal SessionDiagnostic
      derive macro outputs the right error messages when misused.
      
      The macro relies on the proc_macro2 crate though, which changes its span
      behavior depending on whether the channel is nightly or not. This caused
      test failures when bumping the channel from nightly to beta/stable.
      
      Since SessionDiagnostic is internal-only we don't care about its
      diagnostics quality outside of nightly, as the compiler itself is
      developed on nightly. Thus the easiest solution is to ignore that test
      on the beta and stable channels.
      
      This also implements `// only-{channel}` and `// ignore-{channel}` in
      compiletest to properly support the change.
      a1c88468
  3. 06 6月, 2021 1 次提交
  4. 05 6月, 2021 1 次提交
    • J
      rustdoc: link to stable/beta docs consistently in documentation · 7411a9e7
      Joshua Nelson 提交于
       ## User-facing changes
      
      - Intra-doc links to primitives that currently go to rust-lang.org/nightly/std/primitive.x.html will start going to channel that rustdoc was built with. Nightly will continue going to /nightly; Beta will link to /beta; stable compilers will link to /1.52.1 (or whatever version they were built as).
      - Cross-crate links from std to core currently go to /nightly unconditionally. They will start going to /1.52.0 on stable channels (but remain the same on nightly channels).
      - Intra-crate links from std to std (or core to core) currently go to the same URL they are hosted at; they will continue to do so. Notably, this is different from everything else because it can preserve the distinction between /stable and /1.52.0 by using relative links.
      
      Note that "links" includes both intra-doc links and rustdoc's own
      automatically generated hyperlinks.
      
       ## Implementation changes
      
      - Update the testsuite to allow linking to /beta and /1.52.1 in docs
      - Use an html_root_url for the standard library that's dependent on the channel
      
        This avoids linking to nightly docs on stable.
      
      - Update rustdoc to use channel-dependent links for primitives from an
        unknown crate
      
      - Set DOC_RUST_LANG_ORG_CHANNEL from bootstrap to ensure it's in sync
      - Include doc.rust-lang.org in the channel
      7411a9e7
  5. 03 6月, 2021 1 次提交
  6. 26 5月, 2021 1 次提交
  7. 15 5月, 2021 1 次提交
    • J
      Update bootstrap for in-tree rustfmt · 956e0bae
      Joshua Nelson 提交于
      - Add rustfmt to `x.py check`
      - Update Cargo.lock
      - Remove rustfmt from the toolstate list
      - Make rustfmt an in-tree tool
      - Give an error on `x.py test rustfmt` if rustfmt fails to build or if tests fail
      - Don't call `save_toolstate` when testing rustfmt
      956e0bae
  8. 12 5月, 2021 2 次提交
  9. 07 5月, 2021 1 次提交
  10. 06 5月, 2021 1 次提交
  11. 03 5月, 2021 1 次提交
  12. 01 5月, 2021 2 次提交
  13. 30 4月, 2021 1 次提交
  14. 28 4月, 2021 1 次提交
    • J
      Implement `x.py test src/tools/clippy --bless` · 8c25e27f
      Joshua Nelson 提交于
      - Add clippy_dev to the rust workspace
      
        Before, it would give an error that it wasn't either included or
        excluded from the workspace:
      
        ```
        error: current package believes it's in a workspace when it's not:
        current:   /home/joshua/rustc/src/tools/clippy/clippy_dev/Cargo.toml
        workspace: /home/joshua/rustc/Cargo.toml
      
        this may be fixable by adding `src/tools/clippy/clippy_dev` to the `workspace.members` array of the manifest located at: /home/joshua/rustc/Cargo.toml
        Alternatively, to keep it out of the workspace, add the package to the `workspace.exclude` array, or add an empty `[workspace]` table to the package's manifest.
        ```
      
      - Change clippy's copy of compiletest not to special-case
        rust-lang/rust. Using OUT_DIR confused `clippy_dev` and it couldn't find
        the test outputs. This is one of the reasons why `cargo dev bless` used
        to silently do nothing (the others were that `CARGO_TARGET_DIR` and
        `PROFILE` weren't set appropriately).
      
      - Run clippy_dev on test failure
      
      I tested this by removing a couple lines from a stderr file, and they
      were correctly replaced.
      
      - Fix clippy_dev warnings
      8c25e27f
  15. 26 4月, 2021 1 次提交
  16. 09 4月, 2021 1 次提交
    • T
      reduce threads spawned by ui-tests · 27868700
      The8472 提交于
      the test harness already spawns enough tests for all cores, individual
      tests should keep their own threading to a minimum to avoid context switch
      overhead
      
      some tests fail with 1 CGU, so explicit compile flags have been added
      to keep their old behavior
      27868700
  17. 04 4月, 2021 2 次提交
    • R
      ed89e6b8
    • R
      Make rust-demangler installable · 23325caf
      Rich Kadel 提交于
      Adds bootstrap rules to support installing rust-demangler.
      
      When compiling with `-Z instrument-coverage`, the coverage reports are
      generated by `llvm-cov`. `llvm-cov` includes a built-in demangler for
      C++, and an option to supply an alternate demangler. For Rust, we have
      `rust-demangler`, currently used in `rustc` coverage tests.
      
      Fuchsia's toolchain for Rust is built via `./x.py install`. Fuchsia is
      adding support for Rust coverage, and we need to include the
      `rust-demangler` in the installed `bin` directory.
      
      Configured rust-demangler as an in-tree extended tool.
      
      Added tests to support `./x.py test rust-demangler`.
      
      Install with extended tools by default only if `profiler = true`.
      23325caf
  18. 31 3月, 2021 1 次提交
  19. 28 3月, 2021 1 次提交
    • T
      bootstrap: don't run linkcheck when crosscompiling · b2a97ff4
      Tom Eccles 提交于
      When we cross compile, some things (and their documentation) are built
      for the host (e.g. rustc), while others (and their documentation) are built
      for the target. This generated documentation will have broken links
      between documentation for different platforms e.g. between rustc and
      cargo.
      b2a97ff4
  20. 27 3月, 2021 1 次提交
  21. 16 3月, 2021 1 次提交
    • F
      Make bootstrap be more informative when one does `x.py test` on a beta checkout without other mods. · d6de60fb
      Felix S. Klock II 提交于
      To be clear, by default running `x.py test` on a checkout of the beta branch
      currently fails, and with this change will continue to fail, because `x.py
      tests` runs `x.py test src/tools/tidy` which tries to run `rustfmt` and that
      will fail because the `rustfmt` binary is pinned to the current nighlty and we
      do not attempt to distribute one for the beta builds.
      
      This change gives a better error message than the current message, which is just
      "./x.py fmt is not supported on this channel" without providing any hint about
      what one might do about that problem.
      
      (update: placated tidy.)
      d6de60fb
  22. 07 3月, 2021 1 次提交
  23. 05 3月, 2021 1 次提交
  24. 02 3月, 2021 1 次提交
  25. 28 2月, 2021 1 次提交
  26. 21 2月, 2021 1 次提交
  27. 15 2月, 2021 1 次提交
  28. 01 2月, 2021 1 次提交
  29. 30 1月, 2021 1 次提交
  30. 28 1月, 2021 1 次提交
  31. 20 1月, 2021 3 次提交
  32. 04 1月, 2021 1 次提交
  33. 31 12月, 2020 2 次提交