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

Update from rust-lang/rust/master 2020-04-14 #11

Merged
merged 213 commits into from
Jul 15, 2020

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 19, 2020

  1. Configuration menu
    Copy the full SHA
    7779a11 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 #5694 - wangtheo:issue-5626, r=matthiaskrgr

    #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 #5745 - montrivo:copy_on_clone, r=phansch

    clone_on_copy - add machine applicability
    
    Fix #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 #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 #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 #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 #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 #73756 - Manishearth:rollup-aehswb2, r=Manishearth

    Rollup of 13 pull requests
    
    Successful merges:
    
     - #72620 (Omit DW_AT_linkage_name when it is the same as DW_AT_name)
     - #72967 (Don't move cursor in search box when using arrows to navigate results)
     - #73102 (proc_macro: Stop flattening groups with dummy spans)
     - #73297 (Support configurable deny-warnings for all in-tree crates.)
     - #73507 (Cleanup MinGW LLVM linkage workaround)
     - #73588 (Fix handling of reserved registers for ARM inline asm)
     - #73597 (Record span of `const` kw in GenericParamKind)
     - #73629 (Make AssocOp Copy)
     - #73681 (Update Chalk to 0.14)
     - #73707 (Fix links in `SliceIndex` documentation)
     - #73719 (emitter: column width defaults to 140)
     - #73729 (disable collectionbenches for android)
     - #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
  3. Configuration menu
    Copy the full SHA
    98a3b07 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. Configuration menu
    Copy the full SHA
    2e21af2 View commit details
    Browse the repository at this point in the history
  3. 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. Clarify some parts by applying the suggestions from review

    Co-authored-by: Josh Triplett <josh@joshtriplett.org>
    poliorcetics and joshtriplett committed Jun 30, 2020
    Configuration menu
    Copy the full SHA
    614f773 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    1e861a2 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    ab649c9 View commit details
    Browse the repository at this point in the history
  4. Auto merge of #5751 - flip1995:rustup, r=Manishearth,flip1995

    Rustup
    
    cc #73743
    
    r? @Manishearth
    
    changelog: none
    bors committed Jun 30, 2020
    Configuration menu
    Copy the full SHA
    ccf7cb3 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    814349f View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    c5d8f53 View commit details
    Browse the repository at this point in the history
  7. Auto merge of #5750 - ebroto:blanket_clippy_restriction_lints, r=Mani…

    …shearth,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
  8. Configuration menu
    Copy the full SHA
    bff6c43 View commit details
    Browse the repository at this point in the history
  9. Auto merge of #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 #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 #5759 - mikerite:multiple_crate_versions_20200701, r=ma…

    …tthiaskrgr
    
    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 #5760 - phansch:deprecate-regex-macro, r=Manishearth

    Deprecate regex_macro lint
    
    Closes #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 #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 #5761 - ThibsG:TypeRepetitionThreshold, r=flip1995

    Improvements for `type_repetition_in_bounds` lint
    
    Some improvements for `type_repetition_in_bounds`:
    - add a configurable threshold to trigger the lint (#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 (#4323)
    - don't lint for predicates generated in macros (#4326)
    
    Fixes #4380,
    Fixes #4323,
    Fixes #4326,
    Closes #3764
    
    changelog: Fix multiple FPs in `type_repetition_in_bounds` and add a configuration option
    
    Note: the #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 #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
  2. Configuration menu
    Copy the full SHA
    310c97b 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 #5301 - JarredAllen:option_if_let_else, r=flip1995

    Suggest `Option::map_or`(_else) for `if let Some { y } else { x }`
    
    Fixes #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 #73978 - Mark-Simulacrum:shrink-paramenv, r=nnethercote

    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 #73870 - sexxi-goose:projection-ty, r=nikomatsakis

    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 #74117 - Manishearth:rollup-ds7z0kx, r=Manishearth

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

    fix #3028.
    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. rustdoc: Allow linking from private items to private types

    Fixes #74134
    
    After PR #72771 this would trigger an intra_doc_link_resolution_failure warning
    when rustdoc is invoked without --document-private-items. Links from private
    items to private types are however never actually generated in that case and
    thus shouldn't produce a warning. These links are in fact a very useful tool to
    document crate internals.
    
    Tests are added for all 4 combinations of public/private items and link
    targets. Test 1 is the case mentioned above and fails without this commit. Tests
    2 - 4 passed before already but are added nonetheless to prevent regressions.
    dennis-hamester committed Jul 8, 2020
    Configuration menu
    Copy the full SHA
    c8b16cd View commit details
    Browse the repository at this point in the history
  2. Auto merge of #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
  3. Configuration menu
    Copy the full SHA
    37d75da View commit details
    Browse the repository at this point in the history
  4. 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 #5771 - montrivo:bugfix/single-match-else, r=matthiaskrgr

    single_match_else - single expr/stmt else block corner case
    
    One approach to fix #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 #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 #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 #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. test: rustdoc-ui: Add issue-74134, replacing test/rustdoc/issue-74134-*

    As per the discussion in PR #74147, the 4 individual tests are replaced by a
    single one.
    
    The test is expanded to cover all 4 public/private cases, each with and without
    --document-private-items.
    dennis-hamester committed Jul 11, 2020
    Configuration menu
    Copy the full SHA
    689e360 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    9704859 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    8789525 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    1b3bc16 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    0979545 View commit details
    Browse the repository at this point in the history
  7. Improve wording

    GuillaumeGomez committed Jul 11, 2020
    Configuration menu
    Copy the full SHA
    4728438 View commit details
    Browse the repository at this point in the history
  8. Rollup merge of #72920 - oli-obk:const_transmute, r=RalfJung

    Stabilize `transmute` in constants and statics but not const fn
    
    cc #53605 (leaving issue open so we can add `transmute` to `const fn` later)
    
    Previous attempt: #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
  9. Configuration menu
    Copy the full SHA
    905b5ad View commit details
    Browse the repository at this point in the history
  10. 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. Configuration menu
    Copy the full SHA
    8082fb9 View commit details
    Browse the repository at this point in the history
  3. adjust remaining targets

    RalfJung committed Jul 12, 2020
    Configuration menu
    Copy the full SHA
    7dc3886 View commit details
    Browse the repository at this point in the history
  4. 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
  5. 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
  6. 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
  7. Configuration menu
    Copy the full SHA
    90a7d24 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    27a966a View commit details
    Browse the repository at this point in the history
  9. 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
  10. Configuration menu
    Copy the full SHA
    0281a05 View commit details
    Browse the repository at this point in the history
  11. 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
  12. typeck: report placeholder type error w/out span

    This commit fixes a regression introduced in #70369 which
    meant that an error was not being emitted for invalid placeholder types
    when there wasn't a span available.
    
    Signed-off-by: David Wood <david@davidtw.co>
    davidtwco committed Jul 12, 2020
    Configuration menu
    Copy the full SHA
    5afbc52 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    879afd5 View commit details
    Browse the repository at this point in the history
  14. 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
  15. Configuration menu
    Copy the full SHA
    5daedea View commit details
    Browse the repository at this point in the history
  16. Update RELEASES.md for 1.45.0

    XAMPPRocky authored and Mark-Simulacrum committed Jul 12, 2020
    Configuration menu
    Copy the full SHA
    ffac887 View commit details
    Browse the repository at this point in the history
  17. Don't allow DESTDIR to influence LLVM builds

    When running a command like `DESTDIR=foo x.py install` in a completely
    clean build directory, this will cause LLVM to be installed into
    `DESTDIR`, which then causes the build to fail later when it attempts
    to *use* those LLVM files.
    shepmaster committed Jul 12, 2020
    Configuration menu
    Copy the full SHA
    9741fbd View commit details
    Browse the repository at this point in the history
  18. 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
  19. 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
  20. 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. Configuration menu
    Copy the full SHA
    9a3a31a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    5ff7e1a View commit details
    Browse the repository at this point in the history
  3. Removed trailing whitespace

    theo-lw committed Jul 13, 2020
    Configuration menu
    Copy the full SHA
    eac8092 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    e3ae4c7 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    bc2b37a View commit details
    Browse the repository at this point in the history
  6. Remove trailing whitespace

    theo-lw committed Jul 13, 2020
    Configuration menu
    Copy the full SHA
    8df79fc View commit details
    Browse the repository at this point in the history
  7. Auto merge of #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
  8. Rollup merge of #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 #2040 (fixes #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
  9. Rollup merge of #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 #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
  10. Rollup merge of #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 #5754
    Closes #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
  11. Rollup merge of #5784 - matthiaskrgr:ice_5780, r=phansch

    Fix out of bounds access by checking length equality BEFORE accessing by index.
    
    Fixes #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
  12. Rollup merge of #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
  13. Auto merge of #5792 - flip1995:rollup-torc1we, r=flip1995

    Rollup of 5 pull requests
    
    Successful merges:
    
     - #5443 (Some accuracy lints for floating point operations)
     - #5752 (Move range_minus_one to pedantic)
     - #5756 (unnecessary_sort_by: avoid linting if key borrows)
     - #5784 (Fix out of bounds access by checking length equality BEFORE accessing by index.)
     - #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
  14. 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
  15. 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
  16. 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
  17. 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. Configuration menu
    Copy the full SHA
    aa29e3d View commit details
    Browse the repository at this point in the history
  3. Rollup merge of #73852 - euclio:rustdoc-attr-newlines, r=GuillaumeGomez

    rustdoc: insert newlines between attributes
    
    Fixes #73205.
    Manishearth committed Jul 14, 2020
    Configuration menu
    Copy the full SHA
    eb7fdb2 View commit details
    Browse the repository at this point in the history
  4. Rollup merge of #73867 - poliorcetics:union-keyword, r=joshtriplett

    Document the union keyword
    
    Partial fix of #34601.
    
    This documents the `union` keyword by presenting three cases: simply using a union, matching on a union and referencing the fields of a union.
    
    @rustbot modify labels: T-doc,C-enhancement
    Manishearth committed Jul 14, 2020
    Configuration menu
    Copy the full SHA
    d9614db View commit details
    Browse the repository at this point in the history
  5. Rollup merge of #74046 - ehuss:deny-warnings-caching, r=Mark-Simulacrum

    Fix caching issue when building tools.
    
    This fixes a problem with tool builds not being cached properly.
    
    #73297 changed it so that Clippy will participate in the "deny warnings" setting. Unfortunately this causes a problem because Clippy shares the build directory with other tools which do not participate in "deny warnings".  Because Cargo does not independently cache artifacts based on different RUSTFLAGS settings, it causes all the shared dependencies to get rebuilt if Clippy ever gets built.
    
    The solution here is to stop using RUSTFLAGS, and just sneak the settings in through the rustc wrapper. Cargo won't know about the different settings, so it will not bust the cache. This should be safe since lint settings on dependencies are ignored. This is how things used to work in the past before #64316.
    
    Alternate solutions:
    * Treat Clippy as a "submodule" and don't enforce warnings on it. This was the behavior before #73297. The consequence is that if a warning sneaks into clippy, that the clippy maintainers will need to fix it when they sync clippy back to the clippy repo.
    * Just deny warnings on all tools (removing the in-tree/submodule distinction). This is tempting, but with some issues (cc #52336):
      * Adding or changing warnings in rustc can be difficult to land because tools have to be updated if they trip the warning. In practice, this isn't too bad.  Cargo (and rustfmt) already runs with `deny(warnings)`, so this has been the de-facto standard already (although they do not use the extra lints like `unused_lifetimes`).
    * Teach Cargo to add flags to the workspace members, but not dependencies.
    * Teach Cargo to add flags without fingerprinting them?
    * Teach Cargo to independently cache different RUSTFLAGS artifacts (this was [reverted](rust-lang/cargo#7417) due to complications). This would also unnecessarily rebuild dependencies, but would avoid cache thrashing.
    * Teach Cargo about lint settings.
    
    Closes #74016
    Manishearth committed Jul 14, 2020
    Configuration menu
    Copy the full SHA
    e553243 View commit details
    Browse the repository at this point in the history
  6. Rollup merge of #74123 - GuillaumeGomez:cleanup-e0718, r=pickfire

    clean up E0718 explanation
    
    r? @Dylan-DPC
    Manishearth committed Jul 14, 2020
    Configuration menu
    Copy the full SHA
    549aa03 View commit details
    Browse the repository at this point in the history
  7. Rollup merge of #74147 - dennis-hamester:fix/issue-74134, r=jyn514

    rustdoc: Allow linking from private items to private types
    
    Fixes #74134
    
    After PR #72771 this would trigger an intra_doc_link_resolution_failure warning
    when rustdoc is invoked without --document-private-items. Links from private
    items to private types are however never actually generated in that case and
    thus shouldn't produce a warning. These links are in fact a very useful tool to
    document crate internals.
    
    Tests are added for all 4 combinations of public/private items and link
    targets. Test 1 is the case mentioned above and fails without this commit. Tests
    2 - 4 passed before already but are added nonetheless to prevent regressions.
    Manishearth committed Jul 14, 2020
    Configuration menu
    Copy the full SHA
    e4a9b36 View commit details
    Browse the repository at this point in the history
  8. Rollup merge of #74285 - wangtheo:issue-71669, r=lcnr

    #71669: add ui, codegen tests for volatile + nearby int intrinsics
    
    Added some tests for intrinsics. See #71669.
    Manishearth committed Jul 14, 2020
    Configuration menu
    Copy the full SHA
    fa4ada1 View commit details
    Browse the repository at this point in the history
  9. Rollup merge of #74286 - PankajChaudhary5:E0688, r=GuillaumeGomez

    Added detailed error code explanation for issue E0688 in Rust compiler.
    
    Added proper error explanation for issue E0688 in the Rust compiler.
    Error Code E0688
    
    Sub Part of Issue #61137
    
    r? @GuillaumeGomez
    Manishearth committed Jul 14, 2020
    Configuration menu
    Copy the full SHA
    9a1df31 View commit details
    Browse the repository at this point in the history
  10. Auto merge of #74313 - Manishearth:rollup-b55rn6t, r=Manishearth

    Rollup of 8 pull requests
    
    Successful merges:
    
     - #73354 (Update RELEASES.md for 1.45.0)
     - #73852 (rustdoc: insert newlines between attributes)
     - #73867 (Document the union keyword)
     - #74046 (Fix caching issue when building tools.)
     - #74123 (clean up E0718 explanation)
     - #74147 (rustdoc: Allow linking from private items to private types)
     - #74285 (#71669: add ui, codegen tests for volatile + nearby int intrinsics)
     - #74286 (Added detailed error code explanation for issue E0688 in Rust compiler.)
    
    Failed merges:
    
    r? @ghost
    bors committed Jul 14, 2020
    Configuration menu
    Copy the full SHA
    4a689da View commit details
    Browse the repository at this point in the history
  11. Auto merge of #73490 - CAD97:range-unchecked-stepping, r=Amanieu

    Use step_unchecked more liberally in range iter impls
    
    Without these `_unchecked`, these operations on iterators of `char` fail to optimize out the unreachable panicking condition on overflow.
    
    cc @cuviper rayon-rs/rayon#771 where this was discovered.
    bors committed Jul 14, 2020
    Configuration menu
    Copy the full SHA
    c724b67 View commit details
    Browse the repository at this point in the history
  12. Auto merge of #5773 - giraffate:repeat_once, r=flip1995

    Add a lint for `.repeat(1)`
    
    changelog: New lint `repeat_once`
    
    fix #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
  13. Auto merge of #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
  14. Configuration menu
    Copy the full SHA
    0e9a20f View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    f82ac4d View commit details
    Browse the repository at this point in the history
  16. Rollup merge of #71237 - Cldfire:rustdoc-ayu-theme, r=GuilliaumeGomez

    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
    03f565c View commit details
    Browse the repository at this point in the history
  17. Rollup merge of #73720 - GuillaumeGomez:cleanup-e0704, r=Dylan-DPC

    Clean up E0704 error explanation
    
    r? @Dylan-DPC
    Manishearth committed Jul 14, 2020
    Configuration menu
    Copy the full SHA
    5e61827 View commit details
    Browse the repository at this point in the history
  18. Rollup merge of #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
    905c4e0 View commit details
    Browse the repository at this point in the history
  19. Rollup merge of #73965 - davidtwco:issue-73886-non-primitive-slice-ca…

    …st, r=estebank
    
    typeck: check for infer before type impls trait
    
    Fixes #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
    6a4faa2 View commit details
    Browse the repository at this point in the history
  20. Rollup merge of #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 #71146 tracking issue and rename the feature get to `slice_ptr_methods` or so.
    
    Cc @SimonSapin
    Fixes #60639
    Manishearth committed Jul 14, 2020
    Configuration menu
    Copy the full SHA
    79894df View commit details
    Browse the repository at this point in the history
  21. Rollup merge of #74173 - estebank:struct-pat-as-enum, r=petrochenkov

    Detect tuple struct incorrectly used as struct pat
    
    Subpart of #74005.
    
    r? @petrochenkov
    Manishearth committed Jul 14, 2020
    Configuration menu
    Copy the full SHA
    b9a0f58 View commit details
    Browse the repository at this point in the history
  22. Rollup merge of #74220 - lzutao:windows-path-com, r=LukasKalbertodt

    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
    063bbc4 View commit details
    Browse the repository at this point in the history
  23. Rollup merge of #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
    98ceb90 View commit details
    Browse the repository at this point in the history
  24. Rollup merge of #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
    aa9dc70 View commit details
    Browse the repository at this point in the history
  25. Rollup merge of #74257 - alex:patch-1, r=joshtriplett

    don't mark linux kernel module targets as a unix environment
    
    refs #74247
    
    r?@joshtriplett
    
    cc: @ehuss
    Manishearth committed Jul 14, 2020
    Configuration menu
    Copy the full SHA
    6513578 View commit details
    Browse the repository at this point in the history
  26. Rollup merge of #74270 - davidtwco:issue-74086-more-placeholder-type-…

    …error, r=estebank
    
    typeck: report placeholder type error w/out span
    
    Fixes #74086.
    
    This PR fixes a regression introduced in #70369 which meant that an error was not being emitted for invalid placeholder types when there wasn't a span available.
    
    r? @estebank
    Manishearth committed Jul 14, 2020
    Configuration menu
    Copy the full SHA
    1114f22 View commit details
    Browse the repository at this point in the history
  27. Rollup merge of #74296 - Lynoure:rfind-doc-improvement, r=hanna-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
    e8703e8 View commit details
    Browse the repository at this point in the history
  28. Rollup merge of #74310 - nnethercote:use-ArrayVec-in-SparseBitSet, 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
    99c0b97 View commit details
    Browse the repository at this point in the history
  29. Rollup merge of #74316 - yoshuawuyts:no-wake-type-hints, r=Mark-Simul…

    …acrum
    
    Remove unnecessary type hints from Wake internals
    
    While working on #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
    2fb307a View commit details
    Browse the repository at this point in the history
  30. Rollup merge of #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: #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
    5414eae View commit details
    Browse the repository at this point in the history
  31. Update cargo

    ehuss committed Jul 14, 2020
    Configuration menu
    Copy the full SHA
    4c9e67a View commit details
    Browse the repository at this point in the history
  32. Configuration menu
    Copy the full SHA
    ba661d8 View commit details
    Browse the repository at this point in the history
  33. typeck: use item_name in cross-crate packed diag

    This commit replaces the use of `expect_local` and `hir().get` to fetch
    the identifier for a ADT with `item_name` - which works across crates.
    
    Signed-off-by: David Wood <david@davidtw.co>
    davidtwco committed Jul 14, 2020
    Configuration menu
    Copy the full SHA
    d9485be View commit details
    Browse the repository at this point in the history
  34. Auto merge of #74330 - Manishearth:rollup-mrc09pb, r=Manishearth

    Rollup of 15 pull requests
    
    Successful merges:
    
     - #71237 (Add Ayu theme to rustdoc)
     - #73720 (Clean up E0704 error explanation)
     - #73866 (Obviate #[allow(improper_ctypes_definitions)])
     - #73965 (typeck: check for infer before type impls trait)
     - #73986 (add (unchecked) indexing methods to raw (and NonNull) slices)
     - #74173 (Detect tuple struct incorrectly used as struct pat)
     - #74220 (Refactor Windows `parse_prefix`)
     - #74227 (Remove an unwrap in layout computation)
     - #74239 (Update llvm-project to latest origin/rustc/10.0-2020-05-05 commit )
     - #74257 (don't mark linux kernel module targets as a unix environment)
     - #74270 (typeck: report placeholder type error w/out span)
     - #74296 (Clarify the description for rfind)
     - #74310 (Use `ArrayVec` in `SparseBitSet`.)
     - #74316 (Remove unnecessary type hints from Wake internals)
     - #74324 (Update Clippy)
    
    Failed merges:
    
    r? @ghost
    bors committed Jul 14, 2020
    Configuration menu
    Copy the full SHA
    2002eba View commit details
    Browse the repository at this point in the history
  35. Suggest struct pat on incorrect unit or tuple pat

    When encountering a unit or tuple pattern for a struct-like item, suggest
    using the correct pattern.
    
    Use `insert_field_names_local` when evaluating variants and store field
    names even when the list is empty in order to produce accurate
    structured suggestions.
    estebank committed Jul 14, 2020
    Configuration menu
    Copy the full SHA
    0429820 View commit details
    Browse the repository at this point in the history
  36. Configuration menu
    Copy the full SHA
    c88409d View commit details
    Browse the repository at this point in the history
  37. Configuration menu
    Copy the full SHA
    a15bda4 View commit details
    Browse the repository at this point in the history
  38. Configuration menu
    Copy the full SHA
    28e6f1f View commit details
    Browse the repository at this point in the history
  39. Configuration menu
    Copy the full SHA
    b7db6bb View commit details
    Browse the repository at this point in the history
  40. Configuration menu
    Copy the full SHA
    d989796 View commit details
    Browse the repository at this point in the history
  41. lint: use transparent_newtype_field to avoid ICE

    This commit re-uses the `transparent_newtype_field` function instead of
    manually calling `is_zst` on normalized fields to determine which field
    in a transparent type is the non-zero-sized field, thus avoiding an ICE.
    
    Signed-off-by: David Wood <david@davidtw.co>
    davidtwco committed Jul 14, 2020
    Configuration menu
    Copy the full SHA
    cccc310 View commit details
    Browse the repository at this point in the history
  42. Configuration menu
    Copy the full SHA
    c38b127 View commit details
    Browse the repository at this point in the history
  43. Reword message

    estebank committed Jul 14, 2020
    Configuration menu
    Copy the full SHA
    ff75395 View commit details
    Browse the repository at this point in the history
  44. Rollup merge of #73759 - GuillaumeGomez:stdin-examples, r=Dylan-DPC

    Add missing Stdin and StdinLock examples
    
    r? @Dylan-DPC
    Manishearth committed Jul 14, 2020
    Configuration menu
    Copy the full SHA
    353df59 View commit details
    Browse the repository at this point in the history
  45. Rollup merge of #74211 - estebank:struct-pat-as-unit, r=petrochenkov

    Structured suggestion when not using struct pattern
    
    r? @petrochenkov
    Manishearth committed Jul 14, 2020
    Configuration menu
    Copy the full SHA
    be5c7ab View commit details
    Browse the repository at this point in the history
  46. Rollup merge of #74228 - estebank:unsized-param, r=davidtwco

    Provide structured suggestion on unsized fields and fn params
    
    * Suggest borrowing or boxing unsized fields
    * Suggest borrowing fn parameters
    * Remove some verbosity of unsized errors
    * Remove `on_unimplemented` note from `trait Sized`
    
    Fix #23286, fix #28653.
    
    r? @davidtwco
    Manishearth committed Jul 14, 2020
    Configuration menu
    Copy the full SHA
    a364c0a View commit details
    Browse the repository at this point in the history
  47. Rollup merge of #74252 - shepmaster:bootstrap-rust-destdir, r=Mark-Si…

    …mulacrum
    
    Don't allow `DESTDIR` to influence LLVM builds
    
    When running a command like `DESTDIR=foo x.py install` in a completely
    clean build directory, this will cause LLVM to be installed into
    `DESTDIR`, which then causes the build to fail later when it attempts
    to *use* those LLVM files.
    Manishearth committed Jul 14, 2020
    Configuration menu
    Copy the full SHA
    1e74f28 View commit details
    Browse the repository at this point in the history
  48. Rollup merge of #74263 - RalfJung:thread-local, r=Mark-Simulacrum

    Slight reorganization of sys/(fast_)thread_local
    
    I was long confused by the `thread_local` and `fast_thread_local` modules in the `sys(_common)` part of libstd. The names make it *sound* like `fast_thread_local` is just a faster version of `thread_local`, but really these are totally different APIs: one provides thread-local "keys", which are non-addressable pointer-sized pieces of local storage with an associated destructor; the other (the "fast" one) provides just a destructor.
    
    So I propose we rename `fast_thread_local` to `thread_local_dtor`, and `thread_local` to `thread_local_key`. That's what this PR does.
    Manishearth committed Jul 14, 2020
    Configuration menu
    Copy the full SHA
    fadd91c View commit details
    Browse the repository at this point in the history
  49. Rollup merge of #74271 - lzutao:cmdbytes, r=LukasKalbertodt

    process_unix: prefer i32::*_be_bytes over manually shifting bytes
    
    This PR makes it more clear about the intend of the code.
    Manishearth committed Jul 14, 2020
    Configuration menu
    Copy the full SHA
    7b1247c View commit details
    Browse the repository at this point in the history
  50. Rollup merge of #74272 - davidtwco:issue-73626-multiline-mixed-commen…

    …ts, r=Mark-Simulacrum
    
    pprust: support multiline comments within lines
    
    Fixes #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](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
    92e90f9 View commit details
    Browse the repository at this point in the history
  51. Rollup merge of #74332 - ehuss:update-cargo, r=ehuss

    Update cargo
    
    4 commits in 4f74d9b2a771c58b7ef4906b2668afd075bc8081..43cf77395cad5b79887b20b7cf19d418bbd703a9
    2020-07-08 17:13:00 +0000 to 2020-07-13 17:35:42 +0000
    - fix: add space to comments (rust-lang/cargo#8476)
    - Allow configuring unstable flags via config file (rust-lang/cargo#8393)
    - Add support for rustc's `-Z terminal-width`. (rust-lang/cargo#8427)
    - Avoid colliding with older Cargo fingerprint changes (rust-lang/cargo#8473)
    Manishearth committed Jul 14, 2020
    Configuration menu
    Copy the full SHA
    1cd8c5e View commit details
    Browse the repository at this point in the history
  52. Rollup merge of #74334 - jyn514:config-toml-docs, r=spastorino

    bootstrap: Improve wording on docs for `verbose-tests`
    
    From rust-lang/rustc-dev-guide#795 (comment)
    
    r? @spastorino
    Manishearth committed Jul 14, 2020
    Configuration menu
    Copy the full SHA
    aedb7c3 View commit details
    Browse the repository at this point in the history
  53. Rollup merge of #74336 - davidtwco:issue-73112-cross-crate-packed-typ…

    …e-diagnostic, r=estebank
    
    typeck: use `item_name` in cross-crate packed diag
    
    Fixes #73112.
    
    This PR replaces the use of `expect_local` and `hir().get` to fetch the identifier for a ADT with `item_name` - which works across crates.
    Manishearth committed Jul 14, 2020
    Configuration menu
    Copy the full SHA
    c4fcf5a View commit details
    Browse the repository at this point in the history
  54. Rollup merge of #74340 - davidtwco:issue-73747-improper-ctypes-defns-…

    …is-zst-with-params, r=pnkfelix
    
    lint: use `transparent_newtype_field` to avoid ICE
    
    Fixes #73747.
    
    This PR re-uses the `transparent_newtype_field` function instead of manually calling `is_zst` on normalized fields to determine which field in a transparent type is the non-zero-sized field, thus avoiding an ICE.
    Manishearth committed Jul 14, 2020
    Configuration menu
    Copy the full SHA
    dbe7ed3 View commit details
    Browse the repository at this point in the history
  55. Auto merge of #74342 - Manishearth:rollup-l63pesj, r=Manishearth

    Rollup of 11 pull requests
    
    Successful merges:
    
     - #73759 (Add missing Stdin and StdinLock examples)
     - #74211 (Structured suggestion when not using struct pattern)
     - #74228 (Provide structured suggestion on unsized fields and fn params)
     - #74252 (Don't allow `DESTDIR` to influence LLVM builds)
     - #74263 (Slight reorganization of sys/(fast_)thread_local)
     - #74271 (process_unix: prefer i32::*_be_bytes over manually shifting bytes)
     - #74272 (pprust: support multiline comments within lines)
     - #74332 (Update cargo)
     - #74334 (bootstrap: Improve wording on docs for `verbose-tests`)
     - #74336 (typeck: use `item_name` in cross-crate packed diag)
     - #74340 (lint: use `transparent_newtype_field` to avoid ICE)
    
    Failed merges:
    
    r? @ghost
    bors committed Jul 14, 2020
    Configuration menu
    Copy the full SHA
    23744c8 View commit details
    Browse the repository at this point in the history
  56. Configuration menu
    Copy the full SHA
    026089b View commit details
    Browse the repository at this point in the history
  57. Configuration menu
    Copy the full SHA
    e284f5d View commit details
    Browse the repository at this point in the history
  58. Add and use more static symbols.

    Note that the output of `unpretty-debug.stdout` has changed. In that
    test the hash values are normalized from a symbol numbers to small
    numbers like "0#0" and "0#1". The increase in the number of static
    symbols must have caused the original numbers to contain more digits,
    resulting in different pretty-printing prior to normalization.
    nnethercote committed Jul 14, 2020
    Configuration menu
    Copy the full SHA
    f04e866 View commit details
    Browse the repository at this point in the history
  59. Remove lots of Symbol::as_str() calls.

    In various ways, such as changing functions to take a `Symbol` instead
    of a `&str`.
    nnethercote committed Jul 14, 2020
    Configuration menu
    Copy the full SHA
    5930081 View commit details
    Browse the repository at this point in the history

Commits on Jul 15, 2020

  1. Auto merge of #74175 - nnethercote:more-static-symbols, r=oli-obk

    More static symbols
    
    These commits add some more static symbols and convert lots of places to use them.
    
    r? @oli-obk
    bors committed Jul 15, 2020
    Configuration menu
    Copy the full SHA
    567ad74 View commit details
    Browse the repository at this point in the history