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

Closed
wants to merge 17 commits into from

Commits on Oct 28, 2023

  1. Configuration menu
    Copy the full SHA
    351d532 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    04fa124 View commit details
    Browse the repository at this point in the history

Commits on Oct 29, 2023

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

Commits on Oct 30, 2023

  1. improve and fix x install

    Fix: Write access check of `prefix` and `sysconfdir`
    when DESTDIR is present.
    
    Improvement: Instead of repeatedly reading `DESTDIR` within
    each `fn prepare_dir` usage, read it once and pass it to
    the `fn prepare_dir`.
    
    Signed-off-by: onur-ozkan <work@onurozkan.dev>
    onur-ozkan committed Oct 30, 2023
    Configuration menu
    Copy the full SHA
    4b14048 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    745c600 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    bc926f7 View commit details
    Browse the repository at this point in the history
  4. Fix missing leading space in suggestion

    For a local pattern with no space between `let` and `(` e.g.:
    
      let(_a) = 3;
    
    we were previously suggesting this illegal code:
    
      let_a =3;
    
    After this change the suggestion will instead be:
    
      let _a =3;
    
    (Note the space after `let`)
    gurry committed Oct 30, 2023
    Configuration menu
    Copy the full SHA
    a2486db View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    82f34fd View commit details
    Browse the repository at this point in the history
  6. Fix bad-c-variadic error being emitted multiple times

    If a function incorrectly contains multiple `...` args, and is also not
    foreign or `unsafe extern "C"`, only emit the latter error once.
    nicholasbishop committed Oct 30, 2023
    Configuration menu
    Copy the full SHA
    8508e65 View commit details
    Browse the repository at this point in the history
  7. Explicitly reject const C-variadic functions

    Trying to use C-variadics in a const function would previously fail with
    an error like "destructor of `VaListImpl<'_>` cannot be evaluated at
    compile-time".
    
    Add an explicit check for const C-variadics to provide a clearer error:
    "functions cannot be both `const` and C-variadic".
    nicholasbishop committed Oct 30, 2023
    Configuration menu
    Copy the full SHA
    f91b5ce View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#117317 - RalfJung:track-caller, r=oli-obk

    share some track_caller logic between interpret and codegen
    
    Also move the code that implements the track_caller intrinsics out of the core interpreter engine -- it's just a helper creating a const-allocation, doesn't need to be part of the interpreter core.
    matthiaskrgr committed Oct 30, 2023
    Configuration menu
    Copy the full SHA
    643bb65 View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#117357 - tmiasko:terminate, r=wesleywiser

    Rename a few remaining references to abort terminator
    
    Follow up to e3f2edc
    matthiaskrgr committed Oct 30, 2023
    Configuration menu
    Copy the full SHA
    d992ad8 View commit details
    Browse the repository at this point in the history
  10. Rollup merge of rust-lang#117370 - nicholasbishop:bishop-better-c-var…

    …iadic-errors, r=oli-obk
    
    C-variadic error improvements
    
    A couple improvements for c-variadic errors:
    
    1. Fix the bad-c-variadic error being emitted multiple times. If a function incorrectly contains multiple `...` args, and is also not foreign or `unsafe extern "C"`, only emit the latter error once rather than once per `...`.
    
    2. Explicitly reject `const` C-variadic functions. Trying to use C-variadics in a const function would previously fail with an error like "destructor of `VaListImpl<'_>` cannot be evaluated at compile-time". Add an explicit check for const C-variadics to provide a clearer error: "functions cannot be both `const` and C-variadic". This also addresses one of the concerns in rust-lang#44930: "Ensure that even when this gets stabilized for regular functions, it is still rejected on const fn."
    matthiaskrgr committed Oct 30, 2023
    Configuration menu
    Copy the full SHA
    b1fa59a View commit details
    Browse the repository at this point in the history
  11. Rollup merge of rust-lang#117383 - onur-ozkan:fix-x-install, r=albert…

    …larsan68
    
    improve and fix `x install`
    
    Fix: Write access check of `prefix` and `sysconfdir` when DESTDIR is present.
    
    Improvement: Instead of repeatedly reading `DESTDIR` within each `fn prepare_dir` usage, read it once and pass it to the `fn prepare_dir`.
    
    Fixes rust-lang#117203
    matthiaskrgr committed Oct 30, 2023
    Configuration menu
    Copy the full SHA
    c23fa2d View commit details
    Browse the repository at this point in the history
  12. Rollup merge of rust-lang#117389 - oli-obk:gen_fn, r=compiler-errors

    Some diagnostics improvements of `gen` blocks
    
    These are leftovers from rust-lang#116447
    matthiaskrgr committed Oct 30, 2023
    Configuration menu
    Copy the full SHA
    309bf69 View commit details
    Browse the repository at this point in the history
  13. Rollup merge of rust-lang#117390 - chenyukang:yukang-fix-117284-unuse…

    …d-macro, r=estebank
    
    Fix unused variables lint issue for args in macro
    
    Fixes rust-lang#117284
    r? ``@estebank``
    matthiaskrgr committed Oct 30, 2023
    Configuration menu
    Copy the full SHA
    5a36c7e View commit details
    Browse the repository at this point in the history
  14. Rollup merge of rust-lang#117395 - gurry:117380-wrong-parent-sugg, r=…

    …Nilstrieb
    
    Fix missing leading space in suggestion
    
    For a local pattern with no space between `let` and `(` e.g.:
    ```rust
      let(_a) = 3;
    ```
    we were previously suggesting this illegal code:
    ```rust
      let_a = 3;
    ```
    After this change the suggestion will instead be:
    ```rust
      let _a = 3;
    ```
    Fixes rust-lang#117380
    matthiaskrgr committed Oct 30, 2023
    Configuration menu
    Copy the full SHA
    c6c15d8 View commit details
    Browse the repository at this point in the history