1. 24 3月, 2021 10 次提交
  2. 23 3月, 2021 22 次提交
  3. 22 3月, 2021 8 次提交
    • B
      Auto merge of #83376 - Dylan-DPC:rollup-s2fsjwj, r=Dylan-DPC · 2287a882
      bors 提交于
      Rollup of 7 pull requests
      
      Successful merges:
      
       - #82374 (Add license metadata for std dependencies)
       - #82683 (Document panicking cases for integer division and remainder)
       - #83272 (Clarify non-exact length in the Iterator::take documentation)
       - #83338 (Fix test for #82270)
       - #83351 (post-drop-elab check-const: explain why we still check qualifs)
       - #83367 (Improve error message for unassigned query provider)
       - #83372 (SplitInclusive is public API)
      
      Failed merges:
      
      r? `@ghost`
      `@rustbot` modify labels: rollup
      2287a882
    • D
      Rollup merge of #83372 - eggyal:split-inclusive, r=Mark-Simulacrum · ce067875
      Dylan DPC 提交于
      SplitInclusive is public API
      ce067875
    • D
      Rollup merge of #83367 - richkadel:query-err-msg, r=jyn514 · 014a4ee9
      Dylan DPC 提交于
      Improve error message for unassigned query provider
      
      Fixes: #83122
      
      r? `@jyn514`
      
      This implements the change we agreed on. Thanks!
      014a4ee9
    • D
      Rollup merge of #83351 - RalfJung:precise-const-drop, r=oli-obk · 1fdf7d18
      Dylan DPC 提交于
      post-drop-elab check-const: explain why we still check qualifs
      
      r? `@oli-obk`
      1fdf7d18
    • D
      Rollup merge of #83338 - asquared31415:asm-syntax-test-fix, r=Dylan-DPC · b759044d
      Dylan DPC 提交于
      Fix test for #82270
      
      Fixes a test in #82270 to require the arm llvm component
      b759044d
    • D
      Rollup merge of #83272 - kornelski:takedocs, r=dtolnay · f441c2a9
      Dylan DPC 提交于
      Clarify non-exact length in the Iterator::take documentation
      
      There's an example which demonstrates incomplete length case, but it'd be best to explain it right from the start.
      f441c2a9
    • D
      Rollup merge of #82683 - jturner314:int-div-rem-doc-panic, r=nikomatsakis · 83faac9d
      Dylan DPC 提交于
      Document panicking cases for integer division and remainder
      
      This PR documents the cases when integer division and remainder operations panic. These operations panic in two cases: division by zero and overflow.
      
      It's surprising that these operations always panic on overflow, unlike most other arithmetic operations, which panic on overflow only when `debug_assertions` is enabled. The panic on overflow for the remainder is also surprising because a return value of `0` would be reasonable in this case. ("Overflow" occurs only for `MIN % -1`.) Since the panics on overflow are somewhat surprising, they should be documented.
      
      I guess it's worth asking: is panic on overflow (even when `debug_assertions` is disabled) the intended behavior? If not, what's the best way forward?
      83faac9d
    • D
      Rollup merge of #82374 - clehner:licenses, r=joshtriplett · 7bf8f82f
      Dylan DPC 提交于
      Add license metadata for std dependencies
      
      These five crates are in the dependency tree of `std` but lack license metadata:
      - `alloc`
      - `core`
      - `panic_abort`
      - `panic_unwind`
      - `unwind`
      
      Querying the dependency tree of `std` is a useful thing to be able to do, since these crates will typically be linked into Rust binaries. Tools show the license fields missing, as seen in https://github.com/rust-lang/rust/issues/67014#issuecomment-782704534. This PR adds the license field for the five crates, based on the license of the `std` package and this repo as a whole. I also added the `repository` and `descriptions` fields, since those seem useful. For `description`, I copied text from top-level comments for the respective modules - except for `unwind` which has none.
      
      I also note that https://github.com/rust-lang/rust/pull/73530 attempted to add license metadata for all crates in this repo, but was rejected because there was question about some of them. I hope that this smaller change, focusing only on the runtime dependencies, will be easier to review.
      
      cc `@Mark-Simulacrum` `@Lokathor`
      7bf8f82f