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 #104437

Merged
merged 21 commits into from
Nov 15, 2022
Merged

Rollup of 9 pull requests #104437

merged 21 commits into from
Nov 15, 2022

Commits on Oct 29, 2022

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

Commits on Nov 8, 2022

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

Commits on Nov 10, 2022

  1. Configuration menu
    Copy the full SHA
    033cf98 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    9c8037c View commit details
    Browse the repository at this point in the history

Commits on Nov 12, 2022

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

Commits on Nov 14, 2022

  1. Configuration menu
    Copy the full SHA
    b5b6467 View commit details
    Browse the repository at this point in the history
  2. Move most of unwind's build script to lib.rs

    Only the android libunwind detection remains in the build script
    
    * Reduces dependence on build scripts for building the standard library
    * Reduces dependence on exact target names in favor of using semantic
      cfg(target_*) usage.
    * Keeps almost all code related to linking of the unwinder in one file
    bjorn3 committed Nov 14, 2022
    Configuration menu
    Copy the full SHA
    53852ee View commit details
    Browse the repository at this point in the history
  3. Show a note where a macro failed to match

    This shows a small note on what the macro matcher was currently
    processing to aid with "no rules expected the token X" errors.
    Noratrieb committed Nov 14, 2022
    Configuration menu
    Copy the full SHA
    7e7c11c View commit details
    Browse the repository at this point in the history

Commits on Nov 15, 2022

  1. Configuration menu
    Copy the full SHA
    9db8e18 View commit details
    Browse the repository at this point in the history
  2. comment feedback

    chenyukang committed Nov 15, 2022
    Configuration menu
    Copy the full SHA
    ff18c73 View commit details
    Browse the repository at this point in the history
  3. move testcase for tidy

    chenyukang committed Nov 15, 2022
    Configuration menu
    Copy the full SHA
    b2b5094 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    d8bd153 View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#103439 - Nilstrieb:help-me-with-my-macro, r…

    …=estebank
    
    Show note where the macro failed to match
    
    When feeding the wrong tokens, it used to fail with a very generic error that wasn't very helpful. This change tries to help by noting where specifically the matching went wrong.
    
    ```rust
    macro_rules! uwu {
        (a a a b) => {};
    }
    uwu! { a a a c }
    ```
    
    ```diff
    error: no rules expected the token `c`
     --> macros.rs:5:14
      |
    1 | macro_rules! uwu {
      | ---------------- when calling this macro
    ...
    4 | uwu! { a a a c }
      |              ^ no rules expected this token in macro call
      |
    +note: while trying to match `b`
    + --> macros.rs:2:12
    +  |
    +2 |     (a a a b) => {};
    +  |            ^
    ```
    matthiaskrgr authored Nov 15, 2022
    Configuration menu
    Copy the full SHA
    1a6ed30 View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#103734 - Mark-Simulacrum:fix-version-stabil…

    …ized, r=JohnTitor
    
    Adjust stabilization version to 1.65.0 for wasi fds
    
    See rust-lang#103308 (comment) for this ask.
    
    Backport of that PR to beta (1.65.0) will include a similar patch.
    matthiaskrgr authored Nov 15, 2022
    Configuration menu
    Copy the full SHA
    e309b79 View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#104148 - fmease:fix-104140, r=petrochenkov

    Visit attributes of trait impl items during AST validation
    
    Fixes rust-lang#104140.
    
    This fix might not be backward compatible (in practice) since we now validate more attributes than before.
    Should I write more tests?
    
    `@rustbot` label A-attributes
    matthiaskrgr authored Nov 15, 2022
    Configuration menu
    Copy the full SHA
    47f9d89 View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#104241 - bjorn3:smaller_unwind_build_script…

    …, r=Mark-Simulacrum
    
    Move most of unwind's build script to lib.rs
    
    Only the android libunwind detection remains in the build script
    
    * Reduces dependence on build scripts for building the standard library
    * Reduces dependence on exact target names in favor of using semantic cfg(target_*) usage.
    * Keeps almost all code related to linking of the unwinder in one file
    matthiaskrgr authored Nov 15, 2022
    Configuration menu
    Copy the full SHA
    add6f14 View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#104258 - compiler-errors:tait-closure-deduc…

    …e, r=oli-obk
    
    Deduce closure signature from a type alias `impl Trait`'s supertraits
    
    r? `@oli-obk`
    
    Basically pass the TAIT's bounds through the same method that we're using to deduce a signature from infer var closure bounds.
    
    Does this need a new FCP? I see it as a logical extension of rust-lang#101834, but happy to rfcbot a new one if it does.
    matthiaskrgr authored Nov 15, 2022
    Configuration menu
    Copy the full SHA
    34425c8 View commit details
    Browse the repository at this point in the history
  10. Rollup merge of rust-lang#104296 - compiler-errors:opaque-ty-ffi-norm…

    …alization-cycle, r=lcnr
    
    Walk types more carefully in `ProhibitOpaqueTypes` visitor
    
    The visitor didn't account for the case where you could have `<TAIT as Trait>::Assoc` normalize to itself, in the case of a `type TAIT = impl Trait` with an unconstrained associated type. That causes the visitor to loop on the same type over and over.
    
    Fixes rust-lang#104291
    matthiaskrgr authored Nov 15, 2022
    Configuration menu
    Copy the full SHA
    d8b416d View commit details
    Browse the repository at this point in the history
  11. Rollup merge of rust-lang#104309 - chenyukang:yukang/fix-104088-ident…

    …ifier-error, r=davidtwco
    
    Slightly improve error message for invalid identifier
    
    fixes rust-lang#104088
    matthiaskrgr authored Nov 15, 2022
    Configuration menu
    Copy the full SHA
    769f231 View commit details
    Browse the repository at this point in the history
  12. Rollup merge of rust-lang#104316 - cjgillot:simplify-async-suggestion…

    …, r=estebank
    
    Simplify suggestions for errors in generators.
    
    Split from rust-lang#101692
    matthiaskrgr authored Nov 15, 2022
    Configuration menu
    Copy the full SHA
    a9b9215 View commit details
    Browse the repository at this point in the history
  13. Rollup merge of rust-lang#104339 - compiler-errors:rustc_deny_explici…

    …t_impl, r=cjgillot
    
    Add `rustc_deny_explicit_impl`
    
    Also adjust `E0322` error message to be more general, since it's used for `DiscriminantKind` and `Pointee` as well.
    
    Also add `rustc_deny_explicit_impl` on the `Tuple` and `Destruct` marker traits.
    matthiaskrgr authored Nov 15, 2022
    Configuration menu
    Copy the full SHA
    55ff8bf View commit details
    Browse the repository at this point in the history