1. 28 4月, 2020 1 次提交
  2. 27 4月, 2020 22 次提交
  3. 26 4月, 2020 17 次提交
    • B
      Auto merge of #71579 - Dylan-DPC:rollup-h9om2g3, r=Dylan-DPC · 7f3b3df9
      bors 提交于
      Rollup of 5 pull requests
      
      Successful merges:
      
       - #71490 (Cleanup and document `-C relocation-model`)
       - #71562 (fix more clippy warnings)
       - #71571 (Fix since attribute for nonzero_bitor impl's)
       - #71574 (proc_macro: Fix since attributes for new Span methods)
       - #71575 (Fix stable(since) attribute for BTreeMap::remove_entry)
      
      Failed merges:
      
      r? @ghost
      7f3b3df9
    • V
      Stabilize `Span::mixed_site` · f5223a34
      Vadim Petrochenkov 提交于
      f5223a34
    • S
      b8af409a
    • E
      Add success and fail tests for into_boxed_slice · 0228ca0c
      Elichai Turkel 提交于
      0228ca0c
    • E
      6f31f05a
    • M
      submodules: update clippy from 891e1a85 to b7c802b5 · 3d514f44
      Matthias Krüger 提交于
      Changes:
      ````
      rustup to https://github.com/rust-lang/rust/pull/70043
      map_clone: avoid suggesting `copied()` for &mut
      fix redundant_pattern_matching lint
      Add tests for #1654
      Don't trigger while_let_on_iterator when the iterator is recreated every iteration
      Update issue_2356.stderr reference file
      Update while_let_on_iterator tests
      Fix while_let_on_iterator suggestion and make it MachineApplicable
      Add lifetime test case for `new_ret_no_self`
      rustup https://github.com/rust-lang/rust/pull/71215/
      Downgrade match_bool to pedantic
      Run fetch before testing if master contains beta
      The beta branch update should not require a force push
      Add a note to the beta sections of release.md
      Remove apt-get upgrade again
      Always use the deploy script and templates of the master branch
      README: fix lit count line
      clippy_dev: make it fatal when the regex for updating lint count does not match
      `predecessors_for` will be removed soon
      Rustup "Remove `BodyAndCache`"
      Only run (late) internal lints, when they are warn/deny/forbid
      Only run cargo lints, when they are warn/deny/forbid
      span_lint_and_note now takes an Option<Span> for the note_span instead of just a span
      Make lint also capture blocks and closures, adjust language to mention other mutex types
      don't test the code in the lint docs
      Switch to matching against full paths instead of just the last element of the path
      Lint for holding locks across await points
      Also mention `--fix` for nightly users
      fix crash on issue-69020-assoc-const-arith-overflow.rs
      Address review comments
      remark fixes
      Update CHANGELOG.md for Rust 1.43 and 1.44
      update stderr file
      util/fetch_prs_between.sh: Add Markdown formatted Link
      factor ifs into function, add differing mutex test
      Update the changelog update documentation
      Apply suggestions from PR review
      update span_lint_and_help call to six args
      test for mutex eq, add another test case
      use if chain
      cargo dev fmt
      fix map import to rustc_middle
      dev update_lints
      fix internal clippy warnings
      change visitor name to OppVisitor
      use Visitor api to find Mutex::lock calls
      add note about update-all-refs script, revert redundant pat to master
      move closures to seperate fns, remove known problems
      use span_lint_and_help, cargo dev fmt
      creating suggestion
      progress work on suggestion for auto fix
      Implement unsafe_derive_deserialize lint
      Update empty_enum.stderr
      Formatting and naming
      Formatting and naming
      Cleanup: `node_id` -> `hir_id`
      Fix issue #2907.
      Don't trigger toplevel_ref_arg for `for` loops
      Cleanup: future_not_send: use `return_ty` method
      Remove badge FIXME from Cargo.toml
      Change note_span argument for span_lint_and_note.
      Add an Option<Span> argument to span_lint_and_help.
      Fixes internal lint warning in code base.
      Implement collapsible_span_lint_calls lint.
      ````
      
      Fixes #71453
      3d514f44
    • S
      Suppress file length check temporarily · 5d8fe1c4
      Steven Fackler 提交于
      Will clean up in a separate PR
      5d8fe1c4
    • D
      Rollup merge of #71575 - jplatte:patch-4, r=Mark-Simulacrum · aa9dc695
      Dylan DPC 提交于
      Fix stable(since) attribute for BTreeMap::remove_entry
      
      Stabilized in #70712.
      
      Maybe checking that the since attributes are added correctly should be automated through tidy? This is the third PR I'm opening that fixes a stable(since) attribute for something meant to be stabilized in 1.43 / 1.44 initially but then only stabilized in 1.45. (the other two are #71571, #71574)
      aa9dc695
    • D
      Rollup merge of #71574 - jplatte:patch-2, r=petrochenkov · aa89e91d
      Dylan DPC 提交于
      proc_macro: Fix since attributes for new Span methods
      
      Added in #69041, took a while to merge so the since attributes went out of date.
      aa89e91d
    • D
      Rollup merge of #71571 - jplatte:patch-1, r=jonas-schievink · 4a9b9765
      Dylan DPC 提交于
      Fix since attribute for nonzero_bitor impl's
      
      Added in #69813, took a while to merge so the since attributes went out of date.
      4a9b9765
    • D
      Rollup merge of #71562 - matthiaskrgr:cl7ppy, r=Dylan-DPC · 3b3f7bd0
      Dylan DPC 提交于
      fix more clippy warnings
      
      clippy::{redundant_pattern_matching, clone_on_copy, iter_cloned_collect, option_as_ref_deref, match_ref_pats}
      
      r? @Dylan-DPC
      3b3f7bd0
    • D
      Rollup merge of #71490 - petrochenkov:passcheck2, r=davidtwco · 96c1bb57
      Dylan DPC 提交于
      Cleanup and document `-C relocation-model`
      
      As the title says, this is mostly a refactoring and documentation.
      
      One potentially observable change here is that `-C relocation-model=default` now takes the default from the Rust target, rather than from the underlying LLVM target. In other words, `-C relocation-model=default` is now equivalent to not specifying the relocation model on command line at all.
      Apparently no one used that option because it has other bugs as well, e.g. PIC `default` wasn't treated as PIC in some places.
      96c1bb57
    • S
      Fix stragglers · 4bad27a4
      Steven Fackler 提交于
      4bad27a4
    • S
      Update name · 07443f17
      Steven Fackler 提交于
      07443f17
    • S
      Add Read/Write::can_read/write_vectored · 15262ec6
      Steven Fackler 提交于
      When working with an arbitrary reader or writer, code that uses vectored
      operations may end up being slower than code that copies into a single
      buffer when the underlying reader or writer doesn't actually support
      vectored operations. These new methods allow you to ask the reader or
      witer up front if vectored operations are efficiently supported.
      
      Currently, you have to use some heuristics to guess by e.g. checking if
      the read or write only accessed the first buffer. Hyper is one concrete
      example of a library that has to do this dynamically:
      https://github.com/hyperium/hyper/blob/0eaf304644a396895a4ce1f0146e596640bb666a/src/proto/h1/io.rs#L582-L594
      15262ec6
    • B
      check that `AsRef` and `AsMut` are inlined · cf61a562
      Bastian Kauschke 提交于
      cf61a562
    • J
      35eae4ba