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 9 pull requests #109503

Merged
merged 28 commits into from
Mar 23, 2023
Merged

Rollup of 9 pull requests #109503

merged 28 commits into from
Mar 23, 2023

Commits on Mar 9, 2023

  1. Configuration menu
    Copy the full SHA
    c601585 View commit details
    Browse the repository at this point in the history
  2. rustdoc: handle generics better when matching notable traits

    This commit makes the `clean::Type::is_same` non-commutative, so
    that a generic `impl` matches a concrete return, but a generic return
    does not match a concrete `impl`. It makes slice and vector Write
    for `u8` not match on every generic return value.
    notriddle committed Mar 9, 2023
    Configuration menu
    Copy the full SHA
    ee6b228 View commit details
    Browse the repository at this point in the history

Commits on Mar 13, 2023

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

Commits on Mar 14, 2023

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

Commits on Mar 17, 2023

  1. Add clarifying comments

    notriddle authored Mar 17, 2023
    Configuration menu
    Copy the full SHA
    7f76084 View commit details
    Browse the repository at this point in the history

Commits on Mar 19, 2023

  1. Configuration menu
    Copy the full SHA
    c9ddb73 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b4e17a5 View commit details
    Browse the repository at this point in the history
  3. Update stdarch

    Bring the the `#![allow(internal_features)]`
    Noratrieb committed Mar 19, 2023
    Configuration menu
    Copy the full SHA
    4da7970 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    43008ce View commit details
    Browse the repository at this point in the history

Commits on Mar 20, 2023

  1. Remove Ty::is_region_ptr

    mu001999 committed Mar 20, 2023
    Configuration menu
    Copy the full SHA
    20dc532 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    05b5046 View commit details
    Browse the repository at this point in the history

Commits on Mar 21, 2023

  1. Configuration menu
    Copy the full SHA
    460ecd2 View commit details
    Browse the repository at this point in the history
  2. new solver cleanup + coherence

    lcnr committed Mar 21, 2023
    Configuration menu
    Copy the full SHA
    47f24a8 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    938434a View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    a7ec045 View commit details
    Browse the repository at this point in the history
  5. woops

    lcnr committed Mar 21, 2023
    Configuration menu
    Copy the full SHA
    f86b035 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    293f21c View commit details
    Browse the repository at this point in the history

Commits on Mar 22, 2023

  1. Configuration menu
    Copy the full SHA
    67a2c5b View commit details
    Browse the repository at this point in the history
  2. make link clickable

    Lukas Markeffsky committed Mar 22, 2023
    Configuration menu
    Copy the full SHA
    1581b97 View commit details
    Browse the repository at this point in the history
  3. Rollup merge of rust-lang#108954 - notriddle:notriddle/notable-trait-…

    …generic, r=camelid
    
    rustdoc: handle generics better when matching notable traits
    
    This commit makes the `clean::Type::is_same` non-commutative (renaming it `is_doc_subtype_of`), so that a generic `impl` matches a concrete return, but a generic return does not match a concrete `impl`. It makes slice and vector Write for `u8` not match on every generic return value.
    
    Fixes rust-lang#100322
    
    Fixes rust-lang#55082
    
    Preview:
    
    * https://notriddle.com/rustdoc-demo-html-3/notable-trait-generic/std/vec/struct.Vec.html#method.new
    * https://notriddle.com/rustdoc-demo-html-3/notable-trait-generic/std/vec/struct.Vec.html#method.from-12
    * https://notriddle.com/rustdoc-demo-html-3/notable-trait-generic/std/iter/trait.Iterator.html#method.intersperse_with
    * https://notriddle.com/rustdoc-demo-html-3/notable-trait-generic/std/string/struct.String.html#method.as_bytes
    matthiaskrgr authored Mar 22, 2023
    Configuration menu
    Copy the full SHA
    0392e29 View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#109203 - Ezrashaw:refactor-ident-parsing, r…

    …=Nilstrieb
    
    refactor/feat: refactor identifier parsing a bit
    
    \+ error recovery for `expected_ident_found`
    
    Prior art: rust-lang#108854
    matthiaskrgr authored Mar 22, 2023
    Configuration menu
    Copy the full SHA
    34fa6da View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#109213 - oli-obk:cstore, r=cjgillot

    Eagerly intern and check CrateNum/StableCrateId collisions
    
    r? ``@cjgillot``
    
    It seems better to check things ahead of time than checking them afterwards.
    The [previous version](rust-lang#108390) was a bit nonsensical, so this addresses the feedback
    matthiaskrgr authored Mar 22, 2023
    Configuration menu
    Copy the full SHA
    950aa3e View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#109358 - petrochenkov:nosess, r=cjgillot

    rustc: Remove unused `Session` argument from some attribute functions
    
    (One auxiliary test file containing one of these functions was unused, so I removed it instead of updating.)
    matthiaskrgr authored Mar 22, 2023
    Configuration menu
    Copy the full SHA
    577d85f View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#109359 - Nilstrieb:bump-stdarch, r=Amanieu

    Update stdarch
    
    Bring the the `#![allow(internal_features)]` for rust-lang#108955
    
    r? `@Amanieu`
    matthiaskrgr authored Mar 22, 2023
    Configuration menu
    Copy the full SHA
    29d04ff View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#109378 - MU001999:master, r=scottmcm

    Remove Ty::is_region_ptr
    
    Fixes rust-lang#109372
    matthiaskrgr authored Mar 22, 2023
    Configuration menu
    Copy the full SHA
    2ee07a1 View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#109423 - fmease:iat-selection-erase-regions…

    …-in-self-ty, r=compiler-errors
    
    Use region-erased self type during IAT selection
    
    Split off from rust-lang#109410 as discussed.
    Fixes rust-lang#109299.
    
    Re UI test: I use a reproducer of rust-lang#109299 that contains a name resolution error instead of reproducer [`regionck-2.rs`](https://github.com/rust-lang/rust/blob/fc7ed4af165c27ab5914b93251194f826920cc65/tests/ui/associated-inherent-types/regionck-2.rs) (as found in the `AliasKind::Inherent` PR) since it would (incorrectly) pass typeck in this PR due to the lack of regionck and I'd rather not make *that* a regression test (with or without `known-bug`).
    
    ``@rustbot`` label F-inherent_associated_types
    
    r? ``@compiler-errors``
    matthiaskrgr authored Mar 22, 2023
    Configuration menu
    Copy the full SHA
    b22db3f View commit details
    Browse the repository at this point in the history
  10. Rollup merge of rust-lang#109447 - lcnr:coherence, r=compiler-errors

    new solver cleanup + implement coherence
    
    the cleanup:
    - change `Certainty::unify_and` to consider ambig + overflow to be ambig
    - rename `trait_candidate_should_be_dropped_in_favor_of` to `candidate_should_be_dropped_in_favor_of`
    - remove outdated fixme
    
    For coherence I mostly just add an ambiguous candidate if the current trait ref is unknowable. I am doing the same for reservation impl where I also just add an ambiguous candidate.
    matthiaskrgr authored Mar 22, 2023
    Configuration menu
    Copy the full SHA
    28b9354 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    783f3a1 View commit details
    Browse the repository at this point in the history