Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rollup of 15 pull requests #74329

Closed
wants to merge 149 commits into from
Closed

Commits on May 30, 2020

  1. Configuration menu
    Copy the full SHA
    7527409 View commit details
    Browse the repository at this point in the history

Commits on Jun 13, 2020

  1. Added a lint for .map(|x| x)

    theo-lw committed Jun 13, 2020
    Configuration menu
    Copy the full SHA
    40ee620 View commit details
    Browse the repository at this point in the history

Commits on Jun 23, 2020

  1. Configuration menu
    Copy the full SHA
    80bcbf5 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    fb4f9a0 View commit details
    Browse the repository at this point in the history
  3. Auto merge of rust-lang#5694 - wangtheo:issue-5626, r=matthiaskrgr

    rust-lang#5626: lint iterator.map(|x| x)
    
    changelog: adds a new lint for iterator.map(|x| x) (see rust-lang/rust-clippy#5626)
    
    The code also lints for result.map(|x| x) and option.map(|x| x). Also, I'm not sure if I'm checking for type adjustments correctly and I can't think of an example where .map(|x| x) would apply type adjustments.
    bors committed Jun 23, 2020
    Configuration menu
    Copy the full SHA
    583d644 View commit details
    Browse the repository at this point in the history
  4. Record span of const kw in GenericParamKind

    Context: this is needed to fix rust-lang/rustfmt#4263,
    which currently records the span of a const generic param incorrectly
    because the location of the `const` kw is not known.
    
    I am not sure how to add tests for this; any guidance in how to do so
    would be appreciated 🙂
    ayazhafiz committed Jun 23, 2020
    Configuration menu
    Copy the full SHA
    7c1b3aa View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    5987c7d View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    b498e1d View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    6bf5434 View commit details
    Browse the repository at this point in the history

Commits on Jun 24, 2020

  1. Auto merge of rust-lang#5745 - montrivo:copy_on_clone, r=phansch

    clone_on_copy - add machine applicability
    
    Fix rust-lang#4826.
    Change the applicability of the lint clone_on_copy. Split a test file and run rustfix on the clone_on_copy part.
    
    changelog: clone_on_copy - add machine applicability
    bors committed Jun 24, 2020
    Configuration menu
    Copy the full SHA
    a14eab3 View commit details
    Browse the repository at this point in the history
  2. Auto merge of rust-lang#5701 - ebroto:4874_cmp_owned_fp, r=flip1995

    cmp_owned: handle when PartialEq is not implemented symmetrically
    
    changelog: Handle asymmetrical implementations of PartialEq in [`cmp_owned`].
    
    Fixes rust-lang#4874
    bors committed Jun 24, 2020
    Configuration menu
    Copy the full SHA
    46d3304 View commit details
    Browse the repository at this point in the history

Commits on Jun 25, 2020

  1. Configuration menu
    Copy the full SHA
    3e48aae View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    fa0f1d3 View commit details
    Browse the repository at this point in the history
  3. Auto merge of rust-lang#5748 - carols10cents:tiny-docs-fix, r=flip1995

    Change a noun to a verb to make the sentence complete
    
    changelog: Fixed some grammar in the documentation for `await_holding_lock`.
    
    Just a tiny little thing I found while using clippy <3
    bors committed Jun 25, 2020
    Configuration menu
    Copy the full SHA
    88fec89 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    f5ce0e5 View commit details
    Browse the repository at this point in the history

Commits on Jun 26, 2020

  1. Rollup merge of rust-lang#73597 - ayazhafiz:i/const-span, r=ecstatic-…

    …morse
    
    Record span of `const` kw in GenericParamKind
    
    Context: this is needed for a fix of rust-lang/rustfmt#4263,
    which currently records the span of a const generic param incorrectly
    because the location of the `const` kw is not known.
    
    I am not sure how to add tests for this; any guidance in how to do so
    would be appreciated 🙂
    Manishearth committed Jun 26, 2020
    Configuration menu
    Copy the full SHA
    a671ea4 View commit details
    Browse the repository at this point in the history
  2. Auto merge of rust-lang#73756 - Manishearth:rollup-aehswb2, r=Manishe…

    …arth
    
    Rollup of 13 pull requests
    
    Successful merges:
    
     - rust-lang#72620 (Omit DW_AT_linkage_name when it is the same as DW_AT_name)
     - rust-lang#72967 (Don't move cursor in search box when using arrows to navigate results)
     - rust-lang#73102 (proc_macro: Stop flattening groups with dummy spans)
     - rust-lang#73297 (Support configurable deny-warnings for all in-tree crates.)
     - rust-lang#73507 (Cleanup MinGW LLVM linkage workaround)
     - rust-lang#73588 (Fix handling of reserved registers for ARM inline asm)
     - rust-lang#73597 (Record span of `const` kw in GenericParamKind)
     - rust-lang#73629 (Make AssocOp Copy)
     - rust-lang#73681 (Update Chalk to 0.14)
     - rust-lang#73707 (Fix links in `SliceIndex` documentation)
     - rust-lang#73719 (emitter: column width defaults to 140)
     - rust-lang#73729 (disable collectionbenches for android)
     - rust-lang#73748 (Add code block to code in documentation of `List::rebase_onto`)
    
    Failed merges:
    
    r? @ghost
    bors committed Jun 26, 2020
    Configuration menu
    Copy the full SHA
    81810fa View commit details
    Browse the repository at this point in the history

Commits on Jun 28, 2020

  1. Update tests

    ecstatic-morse committed Jun 28, 2020
    Configuration menu
    Copy the full SHA
    3c5ee33 View commit details
    Browse the repository at this point in the history

Commits on Jun 29, 2020

  1. Obviate #[allow(improper_ctypes_definitions)]

    Modifies the return type for `fn entry` so that allowing
    improper_ctypes_definitions is no longer necessary. This change is
    derived from a similar pattern in `libstd/sys/sgx/abi/usercalls/raw.rs`
    with `UsercallReturn`.
    Goirad committed Jun 29, 2020
    Configuration menu
    Copy the full SHA
    9448ed4 View commit details
    Browse the repository at this point in the history
  2. typeck: adding type information to projection

    This commit modifies the Place as follow:
    * remove 'ty' from ProjectionKind
    * add type information into to Projection
    * replace 'ty' in Place with 'base_ty'
    * introduce 'ty()' in `Place` to return the final type of the `Place`
    * introduce `ty_before_projection()` in `Place` to return the type of
      a `Place` before i'th projection is applied
    
    Closes rust-lang/project-rfc-2229#5
    Azhng committed Jun 29, 2020
    Configuration menu
    Copy the full SHA
    dfecaef View commit details
    Browse the repository at this point in the history

Commits on Jun 30, 2020

  1. Configuration menu
    Copy the full SHA
    1e861a2 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ab649c9 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    ccf7cb3 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    814349f View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    c5d8f53 View commit details
    Browse the repository at this point in the history
  6. Auto merge of rust-lang#5750 - ebroto:blanket_clippy_restriction_lint…

    …s, r=Manishearth,flip1995,phansch,oli-obk
    
    Lint enabling the whole restriction group
    
    I've added it to the `correctness` category, but I may be missing some valid use cases. In that case it could be changed to `pedantic`.
    
    changelog: Add [`blanket_clippy_restriction_lints`] to check against enabling the whole restriction group.
    bors committed Jun 30, 2020
    Configuration menu
    Copy the full SHA
    d05d6ab View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    bff6c43 View commit details
    Browse the repository at this point in the history
  8. Auto merge of rust-lang#5758 - ebroto:5704_unnested_or_pats, r=flip1995

    Require `or_patterns` to suggest nesting them
    
    changelog: Require `#![feature(or_patterns)]` to trigger [`unnested_or_patterns`]
    
    Fixes rust-lang#5704
    bors committed Jun 30, 2020
    Configuration menu
    Copy the full SHA
    36b7983 View commit details
    Browse the repository at this point in the history

Commits on Jul 1, 2020

  1. Fix multiple_crate_versions error

    Fix the versions of packages in the multiple_crate_versions ui test by
    checking in the Cargo.lock for the test package. `ansi_term 0.11`
    depends on `winapi ^0.3.4`. This means means that the expected stderr for
    this test would have to be updated whenever `winapi 0.3` is updated
    otherwise.
    Michael Wright committed Jul 1, 2020
    Configuration menu
    Copy the full SHA
    5b9c2ff View commit details
    Browse the repository at this point in the history
  2. Auto merge of rust-lang#5759 - mikerite:multiple_crate_versions_20200…

    …701, r=matthiaskrgr
    
    Fix multiple_crate_versions error
    
    Fix the versions of packages in the multiple_crate_versions ui test by
    checking in the Cargo.lock for the test package. `ansi_term 0.11`
    depends on `winapi ^0.3.4`. This means means that the expected stderr for
    this test would have to be updated whenever `winapi 0.3` is updated
    otherwise.
    
    changelog: none
    bors committed Jul 1, 2020
    Configuration menu
    Copy the full SHA
    0860375 View commit details
    Browse the repository at this point in the history
  3. Deprecate regex_macro lint

    phansch committed Jul 1, 2020
    Configuration menu
    Copy the full SHA
    d347d0c View commit details
    Browse the repository at this point in the history
  4. Auto merge of rust-lang#5760 - phansch:deprecate-regex-macro, r=Manis…

    …hearth
    
    Deprecate regex_macro lint
    
    Closes rust-lang#2586
    
    changelog: Deprecate regex_macro lint
    bors committed Jul 1, 2020
    Configuration menu
    Copy the full SHA
    52cc5fc View commit details
    Browse the repository at this point in the history

Commits on Jul 2, 2020

  1. Configuration menu
    Copy the full SHA
    590e07b View commit details
    Browse the repository at this point in the history
  2. typeck: check for infer before type impls trait

    This commit checks that the target type of the cast (an error related
    to which is being reported) does not have types to be inferred before
    checking if it implements the `From` trait.
    
    Signed-off-by: David Wood <david@davidtw.co>
    davidtwco committed Jul 2, 2020
    Configuration menu
    Copy the full SHA
    bddb266 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    30c046e View commit details
    Browse the repository at this point in the history

Commits on Jul 3, 2020

  1. Configuration menu
    Copy the full SHA
    a7c58e6 View commit details
    Browse the repository at this point in the history
  2. Auto merge of rust-lang#5763 - flip1995:rustup, r=Manishearth

    Rustup
    
    changelog: none
    bors committed Jul 3, 2020
    Configuration menu
    Copy the full SHA
    c493090 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    754bfb1 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    d5a8f03 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    2d5930a View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    c3c4027 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    55877d7 View commit details
    Browse the repository at this point in the history
  8. Adjusted expected STDERR

    phaylon committed Jul 3, 2020
    Configuration menu
    Copy the full SHA
    346ee96 View commit details
    Browse the repository at this point in the history
  9. Fix rebase fallout

    flip1995 authored and phaylon committed Jul 3, 2020
    Configuration menu
    Copy the full SHA
    6447507 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    92ecc53 View commit details
    Browse the repository at this point in the history
  11. Expanded lint documentation

    phaylon committed Jul 3, 2020
    Configuration menu
    Copy the full SHA
    d617551 View commit details
    Browse the repository at this point in the history
  12. Auto merge of rust-lang#5761 - ThibsG:TypeRepetitionThreshold, r=flip…

    …1995
    
    Improvements for `type_repetition_in_bounds` lint
    
    Some improvements for `type_repetition_in_bounds`:
    - add a configurable threshold to trigger the lint (rust-lang#4380). The lint won't trigger anymore if there are more bounds (strictly) than `conf.max_trait_bounds` on this type.
    - take generic args into account over bounded type (rust-lang#4323)
    - don't lint for predicates generated in macros (rust-lang#4326)
    
    Fixes rust-lang#4380,
    Fixes rust-lang#4323,
    Fixes rust-lang#4326,
    Closes rust-lang#3764
    
    changelog: Fix multiple FPs in `type_repetition_in_bounds` and add a configuration option
    
    Note: the rust-lang#3764 has already been fixed but not closed
    bors committed Jul 3, 2020
    Configuration menu
    Copy the full SHA
    fff8e72 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    aa4bee2 View commit details
    Browse the repository at this point in the history
  14. fmt fix

    phaylon committed Jul 3, 2020
    Configuration menu
    Copy the full SHA
    c0fd452 View commit details
    Browse the repository at this point in the history
  15. Auto merge of rust-lang#4841 - phaylon:pattern-type-mismatch, r=flip1995

    Added restriction lint: pattern-type-mismatch
    
    changelog: Added a new restriction lint `pattern-type-mismatch`. This lint is especially helpful for beginners learning about the magic behind pattern matching. (This explanation might be worth to include in the next changelog.)
    bors committed Jul 3, 2020
    Configuration menu
    Copy the full SHA
    57cdf2d View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    bf48a2d View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    82f8d4d View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    b85796f View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    88c8afd View commit details
    Browse the repository at this point in the history
  20. Refactoring

    JarredAllen committed Jul 3, 2020
    Configuration menu
    Copy the full SHA
    f73b455 View commit details
    Browse the repository at this point in the history
  21. Refactoring pt. 2

    JarredAllen committed Jul 3, 2020
    Configuration menu
    Copy the full SHA
    7c4de9d View commit details
    Browse the repository at this point in the history
  22. Configuration menu
    Copy the full SHA
    5e20475 View commit details
    Browse the repository at this point in the history
  23. Configuration menu
    Copy the full SHA
    5150277 View commit details
    Browse the repository at this point in the history
  24. Last few tweaks

    JarredAllen committed Jul 3, 2020
    Configuration menu
    Copy the full SHA
    93f0f5d View commit details
    Browse the repository at this point in the history
  25. Configuration menu
    Copy the full SHA
    ccb9998 View commit details
    Browse the repository at this point in the history
  26. Configuration menu
    Copy the full SHA
    6ce9812 View commit details
    Browse the repository at this point in the history
  27. Configuration menu
    Copy the full SHA
    6e2d55c View commit details
    Browse the repository at this point in the history
  28. Configuration menu
    Copy the full SHA
    1c32263 View commit details
    Browse the repository at this point in the history

Commits on Jul 4, 2020

  1. Fixed compile errors

    JarredAllen committed Jul 4, 2020
    Configuration menu
    Copy the full SHA
    c8f700e View commit details
    Browse the repository at this point in the history

Commits on Jul 5, 2020

  1. Configuration menu
    Copy the full SHA
    3503247 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c478b54 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    3b1d5e6 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    90580c7 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    5f5c98b View commit details
    Browse the repository at this point in the history

Commits on Jul 6, 2020

  1. Auto merge of rust-lang#5301 - JarredAllen:option_if_let_else, r=flip…

    …1995
    
    Suggest `Option::map_or`(_else) for `if let Some { y } else { x }`
    
    Fixes rust-lang#5203
    
    There are two issues with this code that I have noticed:
    
    - Use of `Option::map_or` causes it to always evaluate the code in the else block. If that block is computationally expensive or if it updates some state (such as getting the next value from an iterator), then this change would cause the code to behave differently. In either of those circumstances, it should suggest Option::map_or_else, which takes both cases as a closure and runs one. However, I don't know how to check if the expression would change some state, so I left the lint's applicability as MaybeIncorrect.
    
    - There are lints which can trigger on specific sub-cases of this lint (`if_let_some_result`, `question_mark`, and `while_let_loop`) and suggest different changes (usually better ones because they're more specific). Is this acceptable for clippy to give multiple suggestions, or should I have the code check if those other lints trigger and then not trigger this lint if they do?
    
    changelog: Add lint [`option_if_let_else`]
    bors committed Jul 6, 2020
    Configuration menu
    Copy the full SHA
    ac85692 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a6f1af7 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    f627984 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    2e8a1be View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    0c8afa3 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    1740dda View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    076ec87 View commit details
    Browse the repository at this point in the history
  8. Better copy for lint message

    Since x.log(y) is actually implemented as x.ln() / y.ln()
    thiagoarrais committed Jul 6, 2020
    Configuration menu
    Copy the full SHA
    f559682 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    db7bc6b View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    6dc066f View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    6be9491 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    3065201 View commit details
    Browse the repository at this point in the history
  13. Auto merge of rust-lang#73978 - Mark-Simulacrum:shrink-paramenv, r=nn…

    …ethercote
    
    Shrink ParamEnv to 16 bytes
    
    r? @nnethercote
    
    x.py check passes but I haven't tried running perf or tests
    bors committed Jul 6, 2020
    Configuration menu
    Copy the full SHA
    4705037 View commit details
    Browse the repository at this point in the history

Commits on Jul 7, 2020

  1. Rollup merge of rust-lang#73870 - sexxi-goose:projection-ty, r=nikoma…

    …tsakis
    
    typeck: adding type information to projection
    
    This commit modifies the Place as follow:
    * remove 'ty' from ProjectionKind
    * add type information into to Projection
    * replace 'ty' in Place with 'base_ty'
    * introduce 'ty()' in `Place` to return the final type of the `Place`
    * introduce `ty_before_projection()` in `Place` to return the type of
      a `Place` before i'th projection is applied
    
    Closes rust-lang/project-rfc-2229#5
    Manishearth committed Jul 7, 2020
    Configuration menu
    Copy the full SHA
    245b006 View commit details
    Browse the repository at this point in the history
  2. Auto merge of rust-lang#74117 - Manishearth:rollup-ds7z0kx, r=Manishe…

    …arth
    
    Rollup of 14 pull requests
    
    Successful merges:
    
     - rust-lang#70563 ([rustdoc] Page hash handling)
     - rust-lang#73856 (Edit librustc_lexer top-level docs)
     - rust-lang#73870 (typeck: adding type information to projection)
     - rust-lang#73953 (Audit hidden/short code suggestions)
     - rust-lang#73962 (libstd/net/tcp.rs: #![deny(unsafe_op_in_unsafe_fn)])
     - rust-lang#73969 (mir: mark mir construction temporaries as internal)
     - rust-lang#73974 (Move A|Rc::as_ptr from feature(weak_into_raw) to feature(rc_as_ptr))
     - rust-lang#74067 (rustdoc: Restore underline text decoration on hover for FQN in header)
     - rust-lang#74074 (Fix the return type of Windows' `OpenOptionsExt::security_qos_flags`.)
     - rust-lang#74078 (Always resolve type@primitive as a primitive, not a module)
     - rust-lang#74089 (Add rust-analyzer to the build manifest)
     - rust-lang#74090 (Remove unused RUSTC_DEBUG_ASSERTIONS)
     - rust-lang#74102 (Fix const prop ICE)
     - rust-lang#74112 (Expand abbreviation in core::ffi description)
    
    Failed merges:
    
    r? @ghost
    bors committed Jul 7, 2020
    Configuration menu
    Copy the full SHA
    c41fcad View commit details
    Browse the repository at this point in the history
  3. Add a lint for .repeat(1)

    giraffate committed Jul 7, 2020
    Configuration menu
    Copy the full SHA
    5307cb5 View commit details
    Browse the repository at this point in the history

Commits on Jul 8, 2020

  1. Auto merge of rust-lang#5776 - flip1995:rustup, r=flip1995

    Rustup
    
    changelog: none
    
    r? @ghost
    bors committed Jul 8, 2020
    Configuration menu
    Copy the full SHA
    e12a316 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    37d75da View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    db1c946 View commit details
    Browse the repository at this point in the history

Commits on Jul 9, 2020

  1. Configuration menu
    Copy the full SHA
    dac19e3 View commit details
    Browse the repository at this point in the history
  2. Auto merge of rust-lang#5771 - montrivo:bugfix/single-match-else, r=m…

    …atthiaskrgr
    
    single_match_else - single expr/stmt else block corner case
    
    One approach to fix rust-lang#3489.
    See discussion in the issue.
    
    changelog: single_match_else - single expr/stmt else block corner case fix
    bors committed Jul 9, 2020
    Configuration menu
    Copy the full SHA
    45eea9a View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    c79c688 View commit details
    Browse the repository at this point in the history
  4. Auto merge of rust-lang#5781 - giraffate:fix_a_broken_link, r=phansch

    Fix a broken link in CONTRIBUTING.md
    
    changelog: none
    bors committed Jul 9, 2020
    Configuration menu
    Copy the full SHA
    be88122 View commit details
    Browse the repository at this point in the history

Commits on Jul 10, 2020

  1. Avoid "whitelist"

    Other terms are more inclusive and precise.
    tamird committed Jul 10, 2020
    Configuration menu
    Copy the full SHA
    cf91c54 View commit details
    Browse the repository at this point in the history
  2. Move range_minus_one to pedantic

    This moves the range_minus_one lint to the pedantic category, so there
    will not be any warnings emitted by default. This should work around
    problems where the suggestion is impossible to resolve due to the range
    consumer only accepting a specific range implementation, rather than the
    `RangeBounds` trait (see rust-lang#3307).
    
    While it is possible to work around this by extracting the boundary into
    a variable, I don't think clippy should encourage people to disable or
    work around lints, but instead the lints should be fixable. So hopefully
    this will help until a proper implementation checks what the range is
    used for.
    chrisduerr committed Jul 10, 2020
    Configuration menu
    Copy the full SHA
    298a1fa View commit details
    Browse the repository at this point in the history
  3. Run update_lints

    chrisduerr committed Jul 10, 2020
    Configuration menu
    Copy the full SHA
    ba2a85d View commit details
    Browse the repository at this point in the history
  4. Fix typo

    giraffate committed Jul 10, 2020
    Configuration menu
    Copy the full SHA
    780a4c8 View commit details
    Browse the repository at this point in the history
  5. Fix test failures

    chrisduerr committed Jul 10, 2020
    Configuration menu
    Copy the full SHA
    b3c7196 View commit details
    Browse the repository at this point in the history
  6. Fix tests a bit more

    chrisduerr committed Jul 10, 2020
    Configuration menu
    Copy the full SHA
    afa4148 View commit details
    Browse the repository at this point in the history
  7. Auto merge of rust-lang#5769 - robojumper:match_like_matches_macro, r…

    …=phansch
    
    new lint: match_like_matches_macro
    
    Suggests using the `matches!` macro from `std` where appropriate.
    
    `redundant_pattern_matching` has been moved into the `matches` pass to allow suppressing the suggestion where `is_some` and friends are a better replacement.
    
    changelog: new lint: `match_like_matches_macro`
    bors committed Jul 10, 2020
    Configuration menu
    Copy the full SHA
    7d611d9 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    23d7b3f View commit details
    Browse the repository at this point in the history

Commits on Jul 11, 2020

  1. Configuration menu
    Copy the full SHA
    1eb0053 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    1b3bc16 View commit details
    Browse the repository at this point in the history
  3. Rollup merge of rust-lang#72920 - oli-obk:const_transmute, r=RalfJung

    Stabilize `transmute` in constants and statics but not const fn
    
    cc rust-lang#53605 (leaving issue open so we can add `transmute` to `const fn` later)
    
    Previous attempt: rust-lang#64011
    
    r? @RalfJung
    
    cc @rust-lang/wg-const-eval
    Manishearth committed Jul 11, 2020
    Configuration menu
    Copy the full SHA
    b57ceb4 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    905b5ad View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    2c5f8ab View commit details
    Browse the repository at this point in the history

Commits on Jul 12, 2020

  1. Configuration menu
    Copy the full SHA
    9a8b516 View commit details
    Browse the repository at this point in the history
  2. assign tracking issue

    RalfJung committed Jul 12, 2020
    Configuration menu
    Copy the full SHA
    ff5e107 View commit details
    Browse the repository at this point in the history
  3. Remove the useless indentation

    tesuji committed Jul 12, 2020
    Configuration menu
    Copy the full SHA
    1e05e09 View commit details
    Browse the repository at this point in the history
  4. Move constants to top file

    tesuji committed Jul 12, 2020
    Configuration menu
    Copy the full SHA
    0ff820c View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    90a7d24 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    27a966a View commit details
    Browse the repository at this point in the history
  7. Rewrite parse_two_comps

    tesuji committed Jul 12, 2020
    Configuration menu
    Copy the full SHA
    b1d6798 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    0281a05 View commit details
    Browse the repository at this point in the history
  9. Reduce unsafe scope

    tesuji committed Jul 12, 2020
    Configuration menu
    Copy the full SHA
    e31898b View commit details
    Browse the repository at this point in the history
  10. pprust: support multiline comments within lines

    This commit adds support to rustc_ast_pretty for multiline comments that
    start and end within a line of source code.
    
    Signed-off-by: David Wood <david@davidtw.co>
    davidtwco committed Jul 12, 2020
    Configuration menu
    Copy the full SHA
    083c2f6 View commit details
    Browse the repository at this point in the history
  11. Clean up handling of style files in rustdoc

    Disable all themes other than `light.css` to prevent rule conflicts
    Cldfire committed Jul 12, 2020
    Configuration menu
    Copy the full SHA
    0e89f50 View commit details
    Browse the repository at this point in the history
  12. Add Ayu theme to rustdoc

    Cldfire committed Jul 12, 2020
    Configuration menu
    Copy the full SHA
    8c45cf8 View commit details
    Browse the repository at this point in the history
  13. Update llvm-project to latest origin/rustc/10.0-2020-05-05 commit whi…

    …ch includes LVI segfault fix
    AdrianCX authored and Adrian Cruceru committed Jul 12, 2020
    Configuration menu
    Copy the full SHA
    ed587f8 View commit details
    Browse the repository at this point in the history

Commits on Jul 13, 2020

  1. Auto merge of rust-lang#5790 - flip1995:rustup, r=flip1995

    Rustup
    
    r? @ghost
    
    changelog: none
    bors committed Jul 13, 2020
    Configuration menu
    Copy the full SHA
    fa4a737 View commit details
    Browse the repository at this point in the history
  2. Rollup merge of rust-lang#5443 - thiagoarrais:issue-2040, r=flip1995

    Some accuracy lints for floating point operations
    
    This will add some lints for accuracy on floating point operations suggested by @clarfon in rust-lang#2040 (fixes rust-lang#2040).
    
    These are the remaining lints:
    
    - [x] x.powi(2) => x * x
    - [x] x.logN() / y.logN() => x.logbase(y)
    - [x] x.logbase(E) => x.log()
    - [x] x.logbase(10) => x.log10()
    - [x] x.logbase(2) => x.log2().
    - [x] x * PI / 180 => x.to_radians()
    - [x] x * 180 / PI => x.to_degrees()
    - [x] (x + 1).log() => x.log_1p()
    - [x] sqrt(x * x + y * y) => x.hypot(y)
    
    changelog: Included some accuracy lints for floating point operations
    flip1995 committed Jul 13, 2020
    Configuration menu
    Copy the full SHA
    75d43aa View commit details
    Browse the repository at this point in the history
  3. Rollup merge of rust-lang#5752 - chrisduerr:pedantic_ranges, r=flip1995

    Move range_minus_one to pedantic
    
    This moves the range_minus_one lint to the pedantic category, so there
    will not be any warnings emitted by default. This should work around
    problems where the suggestion is impossible to resolve due to the range
    consumer only accepting a specific range implementation, rather than the
    `RangeBounds` trait (see rust-lang#3307).
    
    While it is possible to work around this by extracting the boundary into
    a variable, I don't think clippy should encourage people to disable or
    work around lints, but instead the lints should be fixable. So hopefully
    this will help until a proper implementation checks what the range is
    used for.
    
    *Please keep the line below*
    changelog: move [`range_minus_one`] to pedantic
    flip1995 committed Jul 13, 2020
    Configuration menu
    Copy the full SHA
    019e281 View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#5756 - ebroto:5754_sort_by, r=flip1995

    unnecessary_sort_by: avoid linting if key borrows
    
    changelog: Avoid linting if key borrows in [`unnecessary_sort_by`]
    
    Fixes rust-lang#5754
    Closes rust-lang#2313
    flip1995 committed Jul 13, 2020
    Configuration menu
    Copy the full SHA
    32ef448 View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#5784 - matthiaskrgr:ice_5780, r=phansch

    Fix out of bounds access by checking length equality BEFORE accessing by index.
    
    Fixes rust-lang#5780
    
    changelog: fix out of bounds access in unnested_or_patterns lint.
    
    Edit: I did not bother reducing a testcase from `librustc_typeck` crate but I can confirm that with the change the crash no longer occurs.
    flip1995 committed Jul 13, 2020
    Configuration menu
    Copy the full SHA
    26ede31 View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#5786 - matthiaskrgr:new_lint_issue_templ, r…

    …=phansch
    
    fix phrase in new_lint issue template
    
    changelog: none
    flip1995 committed Jul 13, 2020
    Configuration menu
    Copy the full SHA
    314b068 View commit details
    Browse the repository at this point in the history
  7. Auto merge of rust-lang#5792 - flip1995:rollup-torc1we, r=flip1995

    Rollup of 5 pull requests
    
    Successful merges:
    
     - rust-lang#5443 (Some accuracy lints for floating point operations)
     - rust-lang#5752 (Move range_minus_one to pedantic)
     - rust-lang#5756 (unnecessary_sort_by: avoid linting if key borrows)
     - rust-lang#5784 (Fix out of bounds access by checking length equality BEFORE accessing by index.)
     - rust-lang#5786 (fix phrase in new_lint issue template)
    
    Failed merges:
    
    r? @ghost
    
    changelog: rollup
    bors committed Jul 13, 2020
    Configuration menu
    Copy the full SHA
    4b87008 View commit details
    Browse the repository at this point in the history
  8. Refactoring to use `constant_context

    Use `constant_context`, `.is_str()` and `builtin_index()` to simplify.
    giraffate committed Jul 13, 2020
    Configuration menu
    Copy the full SHA
    f2419b9 View commit details
    Browse the repository at this point in the history
  9. Clarify the description for rfind

    Changes the example code to illustrate the difference between
    find and rfind
    lynoure committed Jul 13, 2020
    Configuration menu
    Copy the full SHA
    d27e7d0 View commit details
    Browse the repository at this point in the history
  10. Rename collapsable_if fix suggestion to "collapse nested if block"

    The name "try" is confusing when shown as quick fix by rust-analyzer
    bjorn3 committed Jul 13, 2020
    Configuration menu
    Copy the full SHA
    ff796b6 View commit details
    Browse the repository at this point in the history
  11. Use .is_some() not Some(_)

    giraffate committed Jul 13, 2020
    Configuration menu
    Copy the full SHA
    b409103 View commit details
    Browse the repository at this point in the history

Commits on Jul 14, 2020

  1. Use ArrayVec in SparseBitSet.

    Instead of `SmallVec`, because the maximum size is known.
    nnethercote committed Jul 14, 2020
    Configuration menu
    Copy the full SHA
    c492ca4 View commit details
    Browse the repository at this point in the history
  2. Auto merge of rust-lang#5773 - giraffate:repeat_once, r=flip1995

    Add a lint for `.repeat(1)`
    
    changelog: New lint `repeat_once`
    
    fix rust-lang#3028.
    bors committed Jul 14, 2020
    Configuration menu
    Copy the full SHA
    12df638 View commit details
    Browse the repository at this point in the history
  3. Auto merge of rust-lang#5732 - bjorn3:patch-1, r=flip1995

    Rename collapsable_if fix suggestion to "collapse nested if block"
    
    The name "try" is confusing when shown as quick fix by rust-analyzer
    
    changelog: Rename `collapsable_if` fix suggestion to "collapse nested if block"
    bors committed Jul 14, 2020
    Configuration menu
    Copy the full SHA
    2ca58e7 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    0e9a20f View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    f82ac4d View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#71237 - Cldfire:rustdoc-ayu-theme, r=Guilli…

    …aumeGomez
    
    Add Ayu theme to rustdoc
    
    This is a port of a theme I maintain (https://github.com/Cldfire/ayu-rs) to the native rustdoc theme system. [Ayu](https://github.com/dempfi/ayu) (dark) is a richly-colored dark theme that many people enjoy using across a wide variety of environments.
    
    Corresponds to the Ayu theme in [mdBook](https://github.com/rust-lang/mdBook).
    
    Some screenshots:
    
    ![image](https://user-images.githubusercontent.com/13814214/79547087-6c935780-8061-11ea-8a33-38e9472e9fec.png)
    
    ![image](https://user-images.githubusercontent.com/13814214/79547150-8339ae80-8061-11ea-97be-9e13a8b275d7.png)
    
    ![image](https://user-images.githubusercontent.com/13814214/79547221-98164200-8061-11ea-9649-9b11ccbb33e3.png)
    
    ![image](https://user-images.githubusercontent.com/13814214/79547310-b419e380-8061-11ea-9965-d4f90b2280ab.png)
    
    ![image](https://user-images.githubusercontent.com/13814214/79547443-e7f50900-8061-11ea-8872-06d74010691e.png)
    
    Note that this pull request also makes some small code changes to allow for disabling theme stylesheets, preventing the rules from all the different themes from conflicting with one another. The only stylesheet that is not disabled is `light.css`; the theming system (quite hackily) switches themes by changing the href on this stylesheet and so permanently disabling all the others works perfectly fine.
    Manishearth committed Jul 14, 2020
    Configuration menu
    Copy the full SHA
    7efdbb3 View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#72481 - marmeladema:duration-consts-2, r=ol…

    …i-obk
    
    Constify most non-trait `Duration` methods as described in rust-lang#72440
    
    The remaining methods could probably be made const once rust-lang#72449 lands with support for `f<32|64>::is_finite()`.
    Manishearth committed Jul 14, 2020
    Configuration menu
    Copy the full SHA
    6dda1d4 View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#73720 - GuillaumeGomez:cleanup-e0704, r=Dyl…

    …an-DPC
    
    Clean up E0704 error explanation
    
    r? @Dylan-DPC
    Manishearth committed Jul 14, 2020
    Configuration menu
    Copy the full SHA
    ac01a53 View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#73866 - Goirad:fix-entry-improper-ctypes, r…

    …=davidtwco
    
    Obviate #[allow(improper_ctypes_definitions)]
    
    Modifies the return type for `fn entry` so that allowing
    improper_ctypes_definitions is no longer necessary. This change is
    derived from a similar pattern in `libstd/sys/sgx/abi/usercalls/raw.rs`
    with `UsercallReturn`.
    
    cc @jethrogb
    Manishearth committed Jul 14, 2020
    Configuration menu
    Copy the full SHA
    80a162e View commit details
    Browse the repository at this point in the history
  10. Rollup merge of rust-lang#73965 - davidtwco:issue-73886-non-primitive…

    …-slice-cast, r=estebank
    
    typeck: check for infer before type impls trait
    
    Fixes rust-lang#73886.
    
    This PR checks that the target type of the cast (an error related to which is being reported) does not have types to be inferred before checking if it implements the `From` trait.
    
    r? @estebank
    Manishearth committed Jul 14, 2020
    Configuration menu
    Copy the full SHA
    0d2732a View commit details
    Browse the repository at this point in the history
  11. Rollup merge of rust-lang#73986 - RalfJung:raw-slice-as-ptr, r=sfackler

    add (unchecked) indexing methods to raw (and NonNull) slices
    
    This complements the existing (unstable) `len` method. Unfortunately, for non-null slices, we cannot call this method `as_ptr` as that overlaps with the existing method of the same name.
    
    If this looks reasonable to accept, I propose to reuse the rust-lang#71146 tracking issue and rename the feature get to `slice_ptr_methods` or so.
    
    Cc @SimonSapin
    Fixes rust-lang#60639
    Manishearth committed Jul 14, 2020
    Configuration menu
    Copy the full SHA
    7b0097e View commit details
    Browse the repository at this point in the history
  12. Rollup merge of rust-lang#74220 - lzutao:windows-path-com, r=LukasKal…

    …bertodt
    
    Refactor Windows `parse_prefix`
    
    These changes make me feel more readable.
    See the commit messages for more details.
    Manishearth committed Jul 14, 2020
    Configuration menu
    Copy the full SHA
    a6cfdd8 View commit details
    Browse the repository at this point in the history
  13. Rollup merge of rust-lang#74227 - erikdesjardins:layun, r=estebank

    Remove an unwrap in layout computation
    
    A tiny improvement.
    Manishearth committed Jul 14, 2020
    Configuration menu
    Copy the full SHA
    f87ef88 View commit details
    Browse the repository at this point in the history
  14. Rollup merge of rust-lang#74239 - AdrianCX:master, r=cuviper

    Update llvm-project to latest origin/rustc/10.0-2020-05-05 commit
    
    which includes LVI segfault fix when building fortanix/rust-sgx#267
    And a few earlier commits.
    Manishearth committed Jul 14, 2020
    Configuration menu
    Copy the full SHA
    4a79b54 View commit details
    Browse the repository at this point in the history
  15. Rollup merge of rust-lang#74257 - alex:patch-1, r=joshtriplett

    don't mark linux kernel module targets as a unix environment
    
    refs rust-lang#74247
    
    r?@joshtriplett
    
    cc: @ehuss
    Manishearth committed Jul 14, 2020
    Configuration menu
    Copy the full SHA
    6332dd8 View commit details
    Browse the repository at this point in the history
  16. Rollup merge of rust-lang#74272 - davidtwco:issue-73626-multiline-mix…

    …ed-comments, r=Mark-Simulacrum
    
    pprust: support multiline comments within lines
    
    Fixes rust-lang#73626.
    
    This PR adds support to `rustc_ast_pretty` for multiline comments that start and end within a line of source code.
    
    Fun fact: [the commit which added this assert](rust-lang@d12ea39) was from 2011!
    https://github.com/rust-lang/rust/blob/d12ea3989649616437a7c1434f5c5a6438235eb7/src/comp/pretty/pprust.rs#L1146-L1150
    Manishearth committed Jul 14, 2020
    Configuration menu
    Copy the full SHA
    ef5b047 View commit details
    Browse the repository at this point in the history
  17. Rollup merge of rust-lang#74296 - Lynoure:rfind-doc-improvement, r=ha…

    …nna-kruppe
    
    Clarify the description for rfind
    
    Changes the wording in rfind description to be clearer and the example code to illustrate the difference between
    find and rfind
    Manishearth committed Jul 14, 2020
    Configuration menu
    Copy the full SHA
    afffe05 View commit details
    Browse the repository at this point in the history
  18. Rollup merge of rust-lang#74310 - nnethercote:use-ArrayVec-in-SparseB…

    …itSet, r=eddyb
    
    Use `ArrayVec` in `SparseBitSet`.
    
    Instead of `SmallVec`, because the maximum size is known.
    
    r? @eddyb
    Manishearth committed Jul 14, 2020
    Configuration menu
    Copy the full SHA
    6261805 View commit details
    Browse the repository at this point in the history
  19. Rollup merge of rust-lang#74316 - yoshuawuyts:no-wake-type-hints, r=M…

    …ark-Simulacrum
    
    Remove unnecessary type hints from Wake internals
    
    While working on rust-lang#74304 I noticed we were writing out the type signature twice in some internal `Wake` impl methods; this streamlines that. Thanks!
    Manishearth committed Jul 14, 2020
    Configuration menu
    Copy the full SHA
    1d72e72 View commit details
    Browse the repository at this point in the history
  20. Rollup merge of rust-lang#74324 - flip1995:clippyup, r=Manishearth

    Update Clippy
    
    ~~I'm not sure, if we can/should land this before beta is branched.~~ (Nvm, beta is already branched) The last Clippy update was 3 weeks ago: rust-lang#73660
    
    This includes, besides other minor things:
    
    - New lints
    - One lint deprecation
    - One lint was moved to pedantic
    - Some FP fixes
    - I think an ICE fix?
    
    cc @Mark-Simulacrum
    
    r? @Manishearth
    
    ---
    
    We probably should also think of some process when and how often we should sync Clippy to the rust repo, so that we don't end up with those huge updates. Maybe every 2 weeks? Or even every week? cc @rust-lang/clippy
    Manishearth committed Jul 14, 2020
    Configuration menu
    Copy the full SHA
    4c2d7ee View commit details
    Browse the repository at this point in the history