1. 18 9月, 2020 1 次提交
    • P
      bootstrap: move the version number to a plaintext file · b9af3e30
      Pietro Albini 提交于
      The Rust version number is currently embedded in bootstrap's source
      code, which makes it hard to update it automatically or access it
      outside of ./x.py (as you'd have to parse the source code).
      
      This commit moves the version number to a standalone plaintext file,
      which makes accessing or updating it trivial.
      b9af3e30
  2. 17 9月, 2020 20 次提交
    • B
      Auto merge of #76028 - aticu:improve_e0118, r=estebank,jyn514,GuillaumeGomez · 95386b65
      bors 提交于
      Improve E0118
      
      - Changes the "base type" terminology to "nominal type" (according to the [reference](https://doc.rust-lang.org/stable/reference/items/implementations.html#inherent-implementations)).
      - Suggests removing a reference, if one is present on the type.
      - Clarify what is meant by a "nominal type".
      
      closes #69392
      
      This is my first not-entirely-trivial PR, so please let me know if I missed anything or if something could be improved. Though I probably won't be able to fix anything in the upcoming week.
      95386b65
    • B
      Auto merge of #76804 - tmandry:rollup-nwntt3q, r=tmandry · 285fc7d7
      bors 提交于
      Rollup of 16 pull requests
      
      Successful merges:
      
       - #75026 (Add array_windows fn)
       - #76642 (Do not lint ignored private doc tests)
       - #76719 (Change error message for ty param in const)
       - #76721 (Use intra-doc links in `core::mem`)
       - #76728 (Add a comment why `extern crate` is necessary for rustdoc)
       - #76735 (Remove unnecessary `clone()`s in bootstrap)
       - #76741 (Avoid printing dry run timings)
       - #76747 (Add missing code examples in libcore)
       - #76756 (fix a couple of stylistic clippy warnings)
       - #76758 ([fuchsia] Propagate the userspace UTC clock)
       - #76759 (Fix stabilization marker for future_readiness_fns)
       - #76760 (don't lazily evaluate some trivial values for Option::None replacements (clippy::unnecessary_lazy_evaluations))
       - #76764 (Update books)
       - #76775 (Strip a single leading tab when rendering dataflow diffs)
       - #76778 (Simplify iter fuse struct doc)
       - #76794 (Make graphviz font configurable)
      
      Failed merges:
      
      r? `@ghost`
      285fc7d7
    • T
      Rollup merge of #76794 - richkadel:graphviz-font, r=ecstatic-morse · 3bf66ae2
      Tyler Mandry 提交于
      Make graphviz font configurable
      
      Alternative to PR #76776.
      
      To change the graphviz output to use an alternative `fontname` value,
      add a command line option like: `rustc --graphviz-font=monospace`.
      
      r? @ecstatic-morse
      3bf66ae2
    • T
      Rollup merge of #76778 - pickfire:patch-7, r=jonas-schievink · d3c63213
      Tyler Mandry 提交于
      Simplify iter fuse struct doc
      d3c63213
    • T
      Rollup merge of #76775 - ecstatic-morse:dataflow-extra-tab-diff, r=Mark-Simulacrum · cd766c9d
      Tyler Mandry 提交于
      Strip a single leading tab when rendering dataflow diffs
      
      The `fmt_diff_with` formatter uses a tab to separate additions from subtractions. Strip it when rendering those diffs on separate lines.
      
      r? @Mark-Simulacrum (since you're speedy)
      cd766c9d
    • T
      Rollup merge of #76764 - ehuss:update-books, r=ehuss · 5d8bc907
      Tyler Mandry 提交于
      Update books
      
      ## nomicon
      
      1 commits in 25854752549d44d76fbd7650e17cb4f167a0b8fb..6e57e64501f61873ab80cb78a07180a22751a5d6
      2020-08-19 16:41:48 -0400 to 2020-09-14 11:40:23 -0400
      - Fix API change to alloc::Global::grow. (rust-lang-nursery/nomicon#236)
      
      ## reference
      
      3 commits in 25391dba46262f882fa846beefaff54a966a8fa5..56a13c082ee90736c08d6abdcd90462517b703d3
      2020-09-02 07:22:55 -0700 to 2020-09-14 23:20:16 -0700
      - Update the description of staticlib (rust-lang-nursery/reference#884)
      - Rust 1.46 now allows more features in const fn (rust-lang-nursery/reference#883)
      - Document the enum changes in RFC 2195 (rust-lang-nursery/reference#879)
      
      ## book
      
      1 commits in e5ed97128302d5fa45dbac0e64426bc7649a558c..cb28dee95e5e50b793e6ba9291c5d1568d3ad72e
      2020-08-31 12:53:40 -0500 to 2020-09-09 10:06:00 -0500
      - Fixed the error message of invalid array element access in ch03.2 (rust-lang/book#2446)
      5d8bc907
    • T
      Rollup merge of #76760 - matthiaskrgr:clippy_lazy_eval, r=varkor · 6e0131cd
      Tyler Mandry 提交于
      don't lazily evaluate some trivial values for Option::None replacements (clippy::unnecessary_lazy_evaluations)
      6e0131cd
    • T
      Rollup merge of #76759 - yoshuawuyts:fix-future-pending-ready-stabilization-label, r=Dylan-DPC · 273267c9
      Tyler Mandry 提交于
      Fix stabilization marker for future_readiness_fns
      
      Updated the rustc version in which this will be stabilized from `1.47.0 -> 1.48.0`. Fixes https://github.com/rust-lang/rust/pull/74328#issuecomment-692133125. Ref #70921.
      
      r? @Dylan-DPC
      273267c9
    • T
      Rollup merge of #76758 - adamlesinski:clone_clock, r=tmandry · ab207743
      Tyler Mandry 提交于
      [fuchsia] Propagate the userspace UTC clock
      
      On Fuchsia, spawning a subprocess does not automatically
      clone all of the parent process' capabilities. UTC time on
      Fuchsia is managed by a top-level userspace clock capability
      that is cloned and passed to subprocesses.
      
      This change ensures that any Rust subprocess gets access to the
      UTC clock, if the parent had access to it. This is critical for
      tests, which on Fuchsia, use panic=abort and spawn subprocesses
      per test.
      ab207743
    • T
      Rollup merge of #76756 - matthiaskrgr:cl123ppy, r=Dylan-DPC · a6c4d30c
      Tyler Mandry 提交于
      fix a couple of stylistic clippy warnings
      
      namely:
      
      clippy::redundant_pattern_matching
      clippy::redundant_pattern
      clippy::search_is_some
      clippy::filter_next
      clippy::into_iter_on_ref
      clippy::clone_on_copy
      clippy::needless_return
      a6c4d30c
    • T
      Rollup merge of #76747 - GuillaumeGomez:more-missing-libcore-code-examples, r=Mark-Simulacrum · ab78ca92
      Tyler Mandry 提交于
      Add missing code examples in libcore
      ab78ca92
    • T
      Rollup merge of #76741 - Mark-Simulacrum:no-dry-run-timing, r=alexcrichton · 23393741
      Tyler Mandry 提交于
      Avoid printing dry run timings
      
      This avoids a wall of text on CI with 0.000 as the likely time.
      
      r? @alexcrichton
      23393741
    • T
      Rollup merge of #76735 - jyn514:no-clone, r=Mark-Simulacrum · 2e0dbf16
      Tyler Mandry 提交于
      Remove unnecessary `clone()`s in bootstrap
      
      The performance difference is negligible, but it makes me feel better.
      
      r? @Mark-Simulacrum
      2e0dbf16
    • T
      Rollup merge of #76728 - jyn514:rustdoc-extern-crate, r=ehuss · 6e57eecb
      Tyler Mandry 提交于
      Add a comment why `extern crate` is necessary for rustdoc
      
      r? @ehuss
      
      From https://github.com/rust-lang/rust/pull/74293#discussion_r488335500.
      6e57eecb
    • T
      Rollup merge of #76721 - camelid:intra-doc-links-for-core-mem, r=jyn514 · 153fb91d
      Tyler Mandry 提交于
      Use intra-doc links in `core::mem`
      
      Part of #75080.
      
      Last one for now!
      
      ---
      
      @rustbot modify labels: A-intra-doc-links T-doc
      153fb91d
    • T
      Rollup merge of #76719 - hameerabbasi:min-const-generics-ty, r=lcnr · a63f8c1c
      Tyler Mandry 提交于
      Change error message for ty param in const
      
      This PR introduces the following changes:
      
      * Change error message for type param in a const expression when using
      `min_const_generics`
      * Change `ParamInNonTrivialAnonConst` to contain an extra `bool` used for
      distinguishing whether the passed-in symbol is a type or a value.
      
      Fixes #76701
      a63f8c1c
    • T
      Rollup merge of #76642 - GuillaumeGomez:ignored-private-doc-test, r=jyn514 · ece688ba
      Tyler Mandry 提交于
      Do not lint ignored private doc tests
      
      Fixes #76457.
      
      r? @ehuss
      ece688ba
    • T
      Rollup merge of #75026 - JulianKnodt:array_windows, r=Amanieu · 23a67778
      Tyler Mandry 提交于
      Add array_windows fn
      
      This mimicks the functionality added by array_chunks, and implements a const-generic form of
      `windows`. It makes egregious use of `unsafe`, but by necessity because the array must be
      re-interpreted as a slice of arrays, and unlike array_chunks this cannot be done by casting the
      original array once, since each time the index is advanced it needs to move one element, not
      `N`.
      
      I'm planning on adding more tests, but this should be good enough as a premise for the functionality.
      Notably: should there be more functions overwritten for the iterator implementation/in general?
      
      ~~I've marked the issue as #74985 as there is no corresponding exact issue for `array_windows`, but it's based of off `array_chunks`.~~
      
      Edit: See Issue #75027 created by @lcnr for tracking issue
      
      ~~Do not merge until I add more tests, please.~~
      
      r? @lcnr
      23a67778
    • R
      Added RUSTC_GRAPHVIZ_FONT environment variable · 3875abe3
      Rich Kadel 提交于
      Overrides the debugging_opts.graphviz_font setting.
      3875abe3
    • B
      Auto merge of #76420 - Gelbpunkt:aarch64-linux-musl, r=pietroalbini · ff806b87
      bors 提交于
      Add aarch64-unknown-linux-musl host builds
      
      This adds aarch64-unknown-linux-musl to the hosts list and adds the build to the dist-arm-linux builder as `@Mark-Simulacrum` suggested to me in Zulip. `@jyn514` requested to be mentioned 😄
      
      I had to update the config for crosstool-ng as it had a prompt about the glibc version.
      
      I ran `src/ci/docker/run.sh dist-arm-linux` to test it.
      
      ```
      Build completed successfully in 1:31:50
      Compile requests              8180
      Compile requests executed     8135
      Cache hits                     287
      Cache misses                  7848
      Cache timeouts                   0
      Cache read errors                0
      Forced recaches                  0
      Cache write errors               0
      Compilation failures             0
      Cache errors                     0
      Non-cacheable compilations       0
      Non-cacheable calls             36
      Non-compilation calls            9
      Unsupported compiler calls       0
      Average cache write          0.000 s
      Average cache read miss      6.389 s
      Average cache read hit       0.000 s
      Cache location             Local disk: "/sccache"
      Cache size                     202 MiB
      Max cache size                  10 GiB
      == clock drift check ==
        local time: Sun Sep  6 19:30:17 UTC 2020
        network time: Sun, 06 Sep 2020 19:30:17 GMT
      == end clock drift check ==
      ```
      
      Only errors were in miri due to struct fields being private (already been reported [here](https://github.com/rust-lang/rust/issues/76337))
      
      Edit: Maybe it is helpful if I add that it is a working compiler
      ```sh
      /rust-nightly-aarch64-unknown-linux-musl # ash install.sh
      install: creating uninstall script at /usr/local/lib/rustlib/uninstall.sh
      install: installing component 'rustc'
      install: installing component 'cargo'
      install: installing component 'rls-preview'
      install: installing component 'rust-analyzer-preview'
      install: installing component 'clippy-preview'
      install: installing component 'rustfmt-preview'
      install: installing component 'llvm-tools-preview'
      install: installing component 'rust-analysis-aarch64-unknown-linux-musl'
      install: installing component 'rust-std-aarch64-unknown-linux-musl'
      install: WARNING: failed to run ldconfig. this may happen when not installing as root. run with --verbose to see the error
      
          Rust is ready to roll.
      
      / # cat test.rs
      fn main() { println!("hello world"); }
      / # rustc test.rs
      / # ./test
      hello world
       # file test
      test: ELF 64-bit LSB executable, ARM aarch64, version 1 (SYSV), statically linked, not stripped
      ```
      ff806b87
  3. 16 9月, 2020 19 次提交