1. 09 8月, 2018 1 次提交
  2. 06 8月, 2018 9 次提交
    • R
      64538858
    • R
      argue why at_exit_imp is fine · ab3e4a27
      Ralf Jung 提交于
      ab3e4a27
    • R
      22457dee
    • R
      I think we have to strengthen Mutex::init UB · 819645bf
      Ralf Jung 提交于
      819645bf
    • R
      clarify partially initialized Mutex issues · d3d31105
      Ralf Jung 提交于
      d3d31105
    • B
      Auto merge of #52332 - zackmdavis:dead_code_lint_should_say_2_electric_boogaloo, r=pnkfelix · 7c98d2e6
      bors 提交于
      dead-code lint: say "constructed" for structs
      
      Respectively.
      
      This is a sequel to November 2017's #46103 / 1a9dc2e9. It had been
      reported (more than once—at least #19140, #44083, and #44565) that the
      "never used" language was confusing for enum variants that were "used"
      as match patterns, so the wording was changed to say never "constructed"
      specifically for enum variants. More recently, the same issue was raised
      for structs (#52325). It seems consistent to say "constructed" here,
      too, for the same reasons.
      
      ~~While we're here, we can also use more specific word "called" for unused
      functions and methods. (We declined to do this in #46103, but the
      rationale given in the commit message doesn't actually make sense.)~~
      
      This resolves #52325.
      7c98d2e6
    • B
      Auto merge of #53002 - QuietMisdreavus:brother-may-i-have-some-loops, r=pnkfelix · aa1e6db7
      bors 提交于
      make `everybody_loops` preserve item declarations
      
      First half of https://github.com/rust-lang/rust/issues/52545.
      
      `everybody_loops` is used by rustdoc to ensure we don't contain erroneous references to platform APIs if one of its uses is pulled in by `#[doc(cfg)]`. However, you can also implement traits for public types inside of functions. This is used by Diesel (probably others, but they were the example that was reported) to get around a recent macro hygiene fix, which has caused their crate to fail to document. While this won't make the traits show up in documentation (that step comes later), it will at least allow files to be generated.
      aa1e6db7
    • B
      Auto merge of #52997 - llogiq:tiny-list-opt, r=varkor · e9fa9f5a
      bors 提交于
      data_structures: make TinyList more readable and optimize remove(_)
      
      also add benchmarks
      
      Before:
      
      ```
      test tiny_list::test::bench_insert_empty             ... bench:           1 ns/iter (+/- 0)
      test tiny_list::test::bench_insert_one               ... bench:          16 ns/iter (+/- 0)
      test tiny_list::test::bench_remove_empty             ... bench:           2 ns/iter (+/- 0)
      test tiny_list::test::bench_remove_one               ... bench:           6 ns/iter (+/- 0)
      test tiny_list::test::bench_remove_unknown           ... bench:           4 ns/iter (+/- 0)
      ```
      
      After:
      
      ```
      test tiny_list::test::bench_insert_empty             ... bench:           1 ns/iter (+/- 0)
      test tiny_list::test::bench_insert_one               ... bench:          16 ns/iter (+/- 0)
      test tiny_list::test::bench_remove_empty             ... bench:           0 ns/iter (+/- 0)
      test tiny_list::test::bench_remove_one               ... bench:           3 ns/iter (+/- 0)
      test tiny_list::test::bench_remove_unknown           ... bench:           2 ns/iter (+/- 0)
      ```
      e9fa9f5a
    • B
      Auto merge of #52800 - QuietMisdreavus:do-not-pass-go, r=GuillaumeGomez · 73c78734
      bors 提交于
      rustdoc: refactor how passes are structured, and turn intra-doc-link collection into a pass
      
      This builds on https://github.com/rust-lang/rust/pull/52751 and should not be merged until that finally finishes the bors queue
      
      Part 2 of my passes refactor. This introduces the concept of an "early pass", which is run right before exiting the compiler context. This is important for passes that may want to ask the compiler about things. For example, i took out the intra-doc-link collection and turned it into a early pass. I also made the `strip-hidden`, `strip-private` and `strip-priv-imports` passes occur as early passes, so that intra-doc-link collection wouldn't run on docs that weren't getting printed.
      
      Fixes https://github.com/rust-lang/rust/issues/51684, technically https://github.com/rust-lang/rust/issues/51468 too but that version of `h2` hits a legit intra-link error after that `>_>`
      
      r? @rust-lang/rustdoc
      73c78734
  3. 05 8月, 2018 19 次提交
  4. 04 8月, 2018 11 次提交