1. 13 7月, 2021 1 次提交
  2. 07 7月, 2021 1 次提交
  3. 04 7月, 2021 1 次提交
    • J
      Make x.py less verbose on failures · fad1b9c3
      Joshua Nelson 提交于
      - Don't print the exact command run by rustbuild unless `--verbose` is set.
        This is almost always unhelpful, since it's just cargo with a lot of
        arguments.
      - Don't print "Build completed unsuccessfully" unless --verbose is set.
        You can already tell the build failed by the errors above, and the
        time isn't particularly helpful.
      - Don't print the full path to bootstrap. This is useless to everyone,
        even including when working on x.py itself. You can still opt-in to
        this being shown with `--verbose`, since it will throw an exception.
      
      Before:
      
      ```
      error[E0432]: unresolved import `x`
         --> library/std/src/lib.rs:343:5
          |
      343 | use x;
          |     ^ no external crate `x`
      
      error: aborting due to previous error
      
      For more information about this error, try `rustc --explain E0432`.
      error: could not compile `std`
      
      To learn more, run the command again with --verbose.
      command did not execute successfully: "/home/joshua/rustc4/build/x86_64-unknown-linux-gnu/stage0/bin/cargo" "check" "--target" "x86_64-unknown-linux-gnu" "-Zbinary-dep-depinfo" "-j" "8" "--release" "--features" "panic-unwind backtrace" "--manifest-path" "/home/joshua/rustc4/library/test/Cargo.toml" "--message-format" "json-render-diagnostics"
      expected success, got: exit status: 101
      failed to run: /home/joshua/rustc4/build/bootstrap/debug/bootstrap check
      Build completed unsuccessfully in 0:00:13
      ```
      
      After:
      
      ```
      error[E0432]: unresolved import `x`
         --> library/std/src/lib.rs:343:5
          |
      343 | use x;
          |     ^ no external crate `x`
      
      error: aborting due to previous error
      
      For more information about this error, try `rustc --explain E0432`.
      error: could not compile `std`
      
      To learn more, run the command again with --verbose.
      ```
      fad1b9c3
  4. 02 7月, 2021 1 次提交
    • J
      Document rustfmt on nightly-rustc · 01cf0bde
      Joshua Nelson 提交于
      The recursion_limit attribute avoids the following error:
      
      ```
      error[E0275]: overflow evaluating the requirement `std::ptr::Unique<rustc_ast::Pat>: std::marker::Send`
        |
        = help: consider adding a `#![recursion_limit="256"]` attribute to your crate (`rustfmt_nightly`)
      ```
      01cf0bde
  5. 30 6月, 2021 2 次提交
  6. 29 6月, 2021 1 次提交
    • G
      Add new tool to check HTML: · 83a2bc31
      Guillaume Gomez 提交于
       * Make html-checker run by default on rust compiler docs as well
       * Ensure html-checker is run on CI
       * Lazify tidy binary presence check
      83a2bc31
  7. 28 6月, 2021 1 次提交
  8. 24 6月, 2021 1 次提交
  9. 23 6月, 2021 3 次提交
  10. 17 6月, 2021 1 次提交
  11. 16 6月, 2021 1 次提交
  12. 14 6月, 2021 1 次提交
  13. 10 6月, 2021 1 次提交
    • 1
      gcc-lld mvp · 2a767626
      1000teslas 提交于
      ignore test if rust-lld not found
      
      create ld -> rust-lld symlink at build time instead of run time
      
      for testing in ci
      
      copy instead of symlinking
      
      remove linux check
      
      test for linker, suggestions from bjorn3
      
      fix overly restrictive lld matcher
      
      use -Zgcc-ld flag instead of -Clinker-flavor
      
      refactor code adding lld to gcc path
      
      revert ci changes
      
      suggestions from petrochenkov
      
      rename gcc_ld to gcc-ld in dirs
      2a767626
  14. 09 6月, 2021 1 次提交
  15. 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
  16. 06 6月, 2021 3 次提交
  17. 05 6月, 2021 7 次提交
    • B
      Use sysroot instead of CFG_PREFIX for the rpath · a3205a66
      bjorn3 提交于
      CFG_PREFIX is incorrect for rustup installed rustc versions. It also
      causes unnecessary recompilation when changing the install prefix.
      a3205a66
    • J
      Fix commit check · 28d0d0c3
      Joshua Nelson 提交于
      28d0d0c3
    • J
      Revert "Revert "Move llvm submodule updates to rustbuild"" · f4210fc1
      Joshua Nelson 提交于
      This reverts commit ad308264.
      f4210fc1
    • J
      Pass --cfg=bootstrap for proc_macros or build scripts built by stage0 · dc302587
      Joshua Nelson 提交于
      Cargo ignores RUSTFLAGS when building proc macro crates. However,
      sometimes rustc_macro needs to have conditional compilation when there
      are breaking changes to the `libproc_macro` API (see for example
      tell the difference between stage 0 and stage 1.
      
      Another alternative is to unconditionally build rustc_macros with the
      master libstd instead of the beta one (i.e. use `--sysroot
      stage0-sysroot`), but that led to strange and maddening errors:
      
      ```
      error[E0460]: found possibly newer version of crate `std` which `proc_macro2` depends on
        --> /home/joshua/.local/lib/cargo/registry/src/github.com-1ecc6299db9ec823/tracing-attributes-0.1.13/src/lib.rs:90:5
         |
      90 | use proc_macro2::TokenStream;
         |     ^^^^^^^^^^^
         |
         = note: perhaps that crate needs to be recompiled?
         = note: the following crate versions were found:
                 crate `std`: /home/joshua/rustc2/build/x86_64-unknown-linux-gnu/stage0-sysroot/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-b3602c301b71cc3d.rmeta
                 crate `proc_macro2`: /home/joshua/rustc2/build/x86_64-unknown-linux-gnu/stage0-rustc/release/deps/libproc_macro2-a83c1f01610c129e.rlib
      ```
      dc302587
    • 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
    • J
      rustbuild: take changes to the standard library into account for `download-rustc` · 261d16a3
      Joshua Nelson 提交于
      Previously, changing the standard library with `download-rustc =
      "if-unchanged"` would incorrectly reuse the cached compiler and standard
      library from CI, which was confusing and led to incorrect test failures
      or successes.
      261d16a3
    • J
      Improve error message · 3ed7f3f3
      Joshua Nelson 提交于
      Co-authored-by: NJosh Triplett <josh@joshtriplett.org>
      3ed7f3f3
  18. 04 6月, 2021 2 次提交
  19. 03 6月, 2021 1 次提交
  20. 31 5月, 2021 1 次提交
  21. 29 5月, 2021 1 次提交
  22. 28 5月, 2021 1 次提交
  23. 26 5月, 2021 1 次提交
  24. 25 5月, 2021 2 次提交
  25. 24 5月, 2021 1 次提交
  26. 23 5月, 2021 1 次提交
    • A
      Add BPF target · 12e70929
      Alessandro Decina 提交于
      This change adds the bpfel-unknown-none and bpfeb-unknown-none targets
      which can be used to generate little endian and big endian BPF
      12e70929