1. 25 11月, 2020 6 次提交
    • B
      Auto merge of #77491 - lukaslueg:peek_mut, r=m-ou-se · b387f62d
      bors 提交于
      Proposal to add Peekable::peek_mut
      
      A "peekable" iterator has a `peek()`-method which provides an immutable reference to the next item. We currently do not have a method to modify that item, which we could easily add via a `peek_mut()`. See the test for a use-case (alike to my original use case), where a "pristine" iterator is passed on after modifying its state via `peek_mut()`.
      
      If there is interest in this, I can expand on the tests and docs.
      b387f62d
    • B
      Auto merge of #76688 - yokodake:patch-2, r=kodrAus · 3f7ccb4c
      bors 提交于
      Document unsafety in core::slice::memchr
      
      Contributes to #66219
      
      Note sure if that's good enough, especially for the `align_to` call.
      The docs only mention transmuting and I don't think that everything related to reference lifetimes and state validity mentioned in the [nomicon](https://doc.rust-lang.org/nomicon/transmutes.html) are relevant here.
      3f7ccb4c
    • B
      Auto merge of #78548 - camelid:driver-tty, r=oli-obk · 1c389ffe
      bors 提交于
      driver: Only output ANSI logging if connected to a terminal
      
      Fixes #78435.
      
      See #78435 for more.
      
      Cc `@RalfJung` `@oli-obk`
      1c389ffe
    • B
      Auto merge of #79384 - ehuss:update-cargo, r=ehuss · 74459930
      bors 提交于
      Update cargo
      
      10 commits in 2af662e22177a839763ac8fb70d245a680b15214..bfca1cd22bf514d5f2b6c1089b0ded0ba7dfaa6e
      2020-11-12 19:04:56 +0000 to 2020-11-24 16:33:21 +0000
      - Shrink the progress bar, to give more space after it. (rust-lang/cargo#8892)
      - Add some comments to the toml code (rust-lang/cargo#8887)
      - Start searching git config at new path (rust-lang/cargo#8886)
      - Fix documentation for CARGO_PRIMARY_PACKAGE. (rust-lang/cargo#8891)
      - Bump to 0.51.0, update changelog (rust-lang/cargo#8894)
      - Publish target's "doc" setting when emitting metadata (rust-lang/cargo#8869)
      - Relaxes expectation of `cargo test` tests to accept test execution time (rust-lang/cargo#8884)
      - Finish implementation of `-Zextra-link-arg`. (rust-lang/cargo#8441)
      - Reproducible crate builds (rust-lang/cargo#8864)
      - Allow resolver="1" to explicitly use the old resolver behavior. (rust-lang/cargo#8857)
      74459930
    • E
      Update cargo · c46e8964
      Eric Huss 提交于
      c46e8964
    • B
      Auto merge of #79335 - jyn514:doctree-crate, r=GuillaumeGomez · 25a69100
      bors 提交于
      Get rid of doctree::{ExternalCrate, ForeignItem, Trait, Function}
      
      Closes #79314, closes #79331, closes #79332. Follow-up to #79264 and #79312, continues breaking up #78082.
      
      r? `@GuillaumeGomez`
      25a69100
  2. 24 11月, 2020 33 次提交
  3. 23 11月, 2020 1 次提交