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 7 pull requests #77297

Closed
wants to merge 34 commits into from
Closed

Commits on Sep 14, 2020

  1. diag: improve closure/generic parameter mismatch

    This commit improves the diagnostic when a type parameter is expected
    and a closure is found, noting that each closure has a distinct type and
    therefore could not always match the caller-chosen type of the
    parameter.
    
    Signed-off-by: David Wood <david@davidtw.co>
    davidtwco committed Sep 14, 2020
    Configuration menu
    Copy the full SHA
    01f65af View commit details
    Browse the repository at this point in the history

Commits on Sep 21, 2020

  1. Configuration menu
    Copy the full SHA
    8aae1ee View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f69c5aa View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    af44a2a View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    fc152cd View commit details
    Browse the repository at this point in the history
  5. fmt

    poliorcetics committed Sep 21, 2020
    Configuration menu
    Copy the full SHA
    85b2d9b View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    949c966 View commit details
    Browse the repository at this point in the history
  7. Move deref-lval test

    poliorcetics committed Sep 21, 2020
    Configuration menu
    Copy the full SHA
    ed52c7b View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    ac39deb View commit details
    Browse the repository at this point in the history
  9. Move array cycle test

    poliorcetics committed Sep 21, 2020
    Configuration menu
    Copy the full SHA
    8904921 View commit details
    Browse the repository at this point in the history
  10. Move vec-slice-drop test

    poliorcetics committed Sep 21, 2020
    Configuration menu
    Copy the full SHA
    275eed7 View commit details
    Browse the repository at this point in the history
  11. Move vec-cycle test

    poliorcetics committed Sep 21, 2020
    Configuration menu
    Copy the full SHA
    6bc0357 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    f6a4189 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    5be843f View commit details
    Browse the repository at this point in the history

Commits on Sep 25, 2020

  1. Add alias for iterator fold

    fold is known in python and javascript as reduce,
    not sure about inject but it was written in doc there.
    pickfire authored Sep 25, 2020
    Configuration menu
    Copy the full SHA
    1994cee View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ea0065a View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    a61b963 View commit details
    Browse the repository at this point in the history

Commits on Sep 27, 2020

  1. Configuration menu
    Copy the full SHA
    71bc62b View commit details
    Browse the repository at this point in the history
  2. expand: Stop un-interpolating NtIdents before passing them to built…

    …-in macros
    
    This was a big hack, and built-in macros should be able to deal with `NtIdents` in the input by themselves like any other parser code.
    petrochenkov committed Sep 27, 2020
    Configuration menu
    Copy the full SHA
    2532a7e View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    3b27799 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    1ff1431 View commit details
    Browse the repository at this point in the history
  5. Remove rustc_allow_const_fn_ptr

    This was a hack to work around the lack of an escape hatch for the "min
    `const fn`" checks in const-stable functions. Now that we have co-opted
    `allow_internal_unstable` for this purpose, we no longer need the
    bespoke attribute.
    ecstatic-morse committed Sep 27, 2020
    Configuration menu
    Copy the full SHA
    3cbd17f View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    e2622b9 View commit details
    Browse the repository at this point in the history
  7. Bless tests

    ecstatic-morse committed Sep 27, 2020
    Configuration menu
    Copy the full SHA
    54d3329 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    368502c View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    807260b View commit details
    Browse the repository at this point in the history

Commits on Sep 28, 2020

  1. Configuration menu
    Copy the full SHA
    dc8414b View commit details
    Browse the repository at this point in the history
  2. Rollup merge of rust-lang#76454 - poliorcetics:ui-to-unit-test-1, r=m…

    …atklad
    
    UI to unit test for those using Cell/RefCell/UnsafeCell
    
    Helps with rust-lang#76268.
    
    I'm working on all files using `Cell` and moving them to unit tests when possible.
    
    r? @matklad
    RalfJung authored Sep 28, 2020
    Configuration menu
    Copy the full SHA
    f9dfbb4 View commit details
    Browse the repository at this point in the history
  3. Rollup merge of rust-lang#76474 - bjorn3:driver_selected_codegen, r=o…

    …li-obk
    
    Add option to pass a custom codegen backend from a driver
    
    This allows the driver to pass information to the codegen backend. For example the headcrab debugger may in the future want to use cg_clif to JIT code to be injected in the debuggee. This would PR make it possible to tell cg_clif which symbol can be found at which address and to tell it to inject the JITed code into the right process.
    
    This PR may also help with rust-lang/miri#1540 by allowing miri to provide a codegen backend that only emits metadata and doesn't perform any codegen.
    
    cc @nbaksalyar (headcrab)
    cc @RalfJung (miri)
    RalfJung authored Sep 28, 2020
    Configuration menu
    Copy the full SHA
    94d13bb View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#76711 - davidtwco:issue-51154-param-closure…

    …, r=estebank
    
    diag: improve closure/generic parameter mismatch
    
    Fixes rust-lang#51154.
    
    This PR improves the diagnostic when a type parameter is expected and a closure is found, noting that each closure has a distinct type and therefore could not always match the caller-chosen type of the parameter.
    
    r? @estebank
    RalfJung authored Sep 28, 2020
    Configuration menu
    Copy the full SHA
    fef6a2d View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#77170 - ecstatic-morse:const-fn-ptr, r=oli-obk

    Remove `#[rustc_allow_const_fn_ptr]` and add `#![feature(const_fn_fn_ptr_basics)]`
    
    `rustc_allow_const_fn_ptr` was a hack to work around the lack of an escape hatch for the "min `const fn`" checks in const-stable functions. Now that we have co-opted `allow_internal_unstable` for this purpose, we no longer need a bespoke attribute.
    
    Now this functionality is gated under `const_fn_fn_ptr_basics` (how concise!), and `#[allow_internal_unstable(const_fn_fn_ptr_basics)]` replaces `#[rustc_allow_const_fn_ptr]`. `const_fn_fn_ptr_basics` allows function pointer types to appear in the arguments and locals of a `const fn` as well as function pointer casts to be performed inside a `const fn`. Both of these were allowed in constants and statics already. Notably, this does **not** allow users to invoke function pointers in a const context. Presumably, we will use a nicer name for that (`const_fn_ptr`?).
    
    r? @oli-obk
    RalfJung authored Sep 28, 2020
    Configuration menu
    Copy the full SHA
    a43ee0c View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#77194 - pickfire:patch-7, r=withoutboats

    Add doc alias for iterator fold
    
    fold is known in python and javascript as reduce,
    not sure about inject but it was written in doc there.
    
    This was my first confusion when coming into rust, I somehow cannot find where is reduce, sometimes I still forget that it is known as `fold`.
    RalfJung authored Sep 28, 2020
    Configuration menu
    Copy the full SHA
    29ff334 View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#77275 - petrochenkov:interpid, r=varkor

    expand: Stop normalizing `NtIdent`s before passing them to built-in macros
    
    Built-in macros should be able to deal with `NtIdents` in the input by themselves like any other parser code.
    
    You can't imagine how bad mutable AST visitors are, *especially* if they are modifying tokens.
    This is one step towards removing token visiting from the visitor infrastructure (rust-lang#77271 also works in this direction.)
    RalfJung authored Sep 28, 2020
    Configuration menu
    Copy the full SHA
    a9a364f View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#77288 - RalfJung:miri-macos, r=Amanieu

    fix building libstd for Miri on macOS
    
    Fixes a Miri regression introduced by rust-lang#75295
    Cc @tmiasko @Amanieu
    RalfJung authored Sep 28, 2020
    Configuration menu
    Copy the full SHA
    a99fb78 View commit details
    Browse the repository at this point in the history