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

Closed
wants to merge 20 commits into from

Commits on Oct 15, 2023

  1. Make File::create work on Windows hidden files

    Previously it failed on Windows if the file had the `FILE_ATTRIBUTE_HIDDEN` attribute set. This was inconsistent with `OpenOptions::new().write(true).truncate(true)` which can truncate an existing hidden file.
    ChrisDenton committed Oct 15, 2023
    Configuration menu
    Copy the full SHA
    c6f7aa0 View commit details
    Browse the repository at this point in the history

Commits on Nov 28, 2023

  1. Add unstable -Zdefault-hidden-visibility cmdline flag for rustc.

    The new flag has been described in the Major Change Proposal at
    rust-lang/compiler-team#656
    anforowicz committed Nov 28, 2023
    Configuration menu
    Copy the full SHA
    1a0829c View commit details
    Browse the repository at this point in the history

Commits on Dec 2, 2023

  1. Configuration menu
    Copy the full SHA
    329412d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    20413b1 View commit details
    Browse the repository at this point in the history
  3. Add codegen test

    calebzulawski committed Dec 2, 2023
    Configuration menu
    Copy the full SHA
    c623489 View commit details
    Browse the repository at this point in the history

Commits on Dec 7, 2023

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

Commits on Dec 8, 2023

  1. Add instance evaluation and methods to read alloc

    The instance evaluation is needed to handle intrinsics such as
    `type_id` and `type_name`.
    
    Since we now use Allocation to represent all evaluated constants,
    provide a few methods to help process the data inside an allocation.
    celinval committed Dec 8, 2023
    Configuration menu
    Copy the full SHA
    4c9e842 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    9cb6463 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    0a0e7e6 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    9e15c49 View commit details
    Browse the repository at this point in the history
  5. remove redundant imports

    detects redundant imports that can be eliminated.
    
    for rust-lang#117772 :
    
    In order to facilitate review and modification, split the checking code and
    removing redundant imports code into two PR.
    surechen committed Dec 8, 2023
    Configuration menu
    Copy the full SHA
    4b64fbf View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    a002814 View commit details
    Browse the repository at this point in the history
  7. Avoid target_os and target_arch in some check-cfg tests

    as they unnecessarily clutter the diagnostic output and make the
    experience of adding a new target to the compiler more painful than
    it should be.
    
    target_os and target_arch are still being tested in the
    well-known-values.rs test, but in one place.
    Urgau committed Dec 8, 2023
    Configuration menu
    Copy the full SHA
    5a17ee7 View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#116438 - ChrisDenton:truncate, r=thomcc

    Windows: Allow `File::create` to work on hidden files
    
    This makes `OpenOptions::new().write(true).create(true).truncate(true).open(&path)` work if the path exists and is a hidden file. Previously it would fail with access denied.
    
    This makes it consistent with `OpenOptions::new().write(true).truncate(true).open(&path)` (note the lack of `create`) which does not have this restriction. It's also more consistent with other platforms.
    
    Fixes rust-lang#115745 (see that issue for more details).
    GuillaumeGomez authored Dec 8, 2023
    Configuration menu
    Copy the full SHA
    23af40d View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#117116 - calebzulawski:repr-simd-packed, r=…

    …workingjubilee
    
    Implement repr(packed) for repr(simd)
    
    This allows creating vectors with non-power-of-2 lengths that do not have padding.  See rust-lang/portable-simd#319
    GuillaumeGomez authored Dec 8, 2023
    Configuration menu
    Copy the full SHA
    d64a500 View commit details
    Browse the repository at this point in the history
  10. Rollup merge of rust-lang#118417 - anforowicz:default-hidden-visibili…

    …ty, r=TaKO8Ki
    
    Add unstable `-Zdefault-hidden-visibility` cmdline flag for `rustc`.
    
    The new flag has been described in the Major Change Proposal at
    rust-lang/compiler-team#656
    GuillaumeGomez authored Dec 8, 2023
    Configuration menu
    Copy the full SHA
    ffd4b56 View commit details
    Browse the repository at this point in the history
  11. Rollup merge of rust-lang#118689 - compiler-errors:const-drop, r=fee1…

    …-dead
    
    Fix const drop checking
    
    Fixes confirmation of `~const Destruct` and const drops.
    
    r? fee1-dead
    GuillaumeGomez authored Dec 8, 2023
    Configuration menu
    Copy the full SHA
    2420af4 View commit details
    Browse the repository at this point in the history
  12. Rollup merge of rust-lang#118692 - surechen:remove_unused_imports, r=…

    …petrochenkov
    
    remove redundant imports
    
    detects redundant imports that can be eliminated.
    
    for rust-lang#117772 :
    
    In order to facilitate review and modification, split the checking code and removing redundant imports code into two PR.
    
    r? ``@petrochenkov``
    GuillaumeGomez authored Dec 8, 2023
    Configuration menu
    Copy the full SHA
    19e70fd View commit details
    Browse the repository at this point in the history
  13. Rollup merge of rust-lang#118694 - celinval:smir-alloc-methods, r=ouz-a

    Add instance evaluation and methods to read an allocation in StableMIR
    
    The instance evaluation is needed to handle intrinsics such as `type_id` and `type_name`.
    
    Since we now use Allocation to represent all evaluated constants, provide a few methods to help process the data inside an allocation.
    
    I've also started to add a structured way to get information about the compilation target machine. For now, I've only added information needed to process an allocation.
    
    r? ``@ouz-a``
    GuillaumeGomez authored Dec 8, 2023
    Configuration menu
    Copy the full SHA
    72cead3 View commit details
    Browse the repository at this point in the history
  14. Rollup merge of rust-lang#118702 - Urgau:check-cfg-strengthen-well-kn…

    …own, r=nnethercote
    
    Strengthen well known check-cfg names and values test
    
    rust-lang#118494 is changing the implementation of how we expect well known check-cfg names and values, but we currently don't have a test that checks every well known only some of them.
    
    This PR therefore strengthen our well known names/values test to include all of the configs to at least avoid unintended regressions and validate new entry.
    
    *this PR also contains some drive-by consolidation of unexpected `target_os`, `target_arch` into a single file*
    
    r? `@nnethercote` (maybe? feel free to re-assign)
    GuillaumeGomez authored Dec 8, 2023
    Configuration menu
    Copy the full SHA
    409bb3e View commit details
    Browse the repository at this point in the history