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 6 pull requests #118687

Merged
merged 17 commits into from
Dec 7, 2023
Merged

Rollup of 6 pull requests #118687

merged 17 commits into from
Dec 7, 2023

Commits on Nov 22, 2023

  1. suppress warnings on msvc

    Arlie Davis committed Nov 22, 2023
    Configuration menu
    Copy the full SHA
    6773fd1 View commit details
    Browse the repository at this point in the history
  2. fix long lines

    Arlie Davis committed Nov 22, 2023
    Configuration menu
    Copy the full SHA
    84bc8f0 View commit details
    Browse the repository at this point in the history

Commits on Nov 30, 2023

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

Commits on Dec 5, 2023

  1. Update bootstrap libc to 0.2.150

    Version 0.2.150 include support for the new check-cfg syntax
    Urgau committed Dec 5, 2023
    Configuration menu
    Copy the full SHA
    801bc56 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    9b4fe38 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    9a94239 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    3f0369e View commit details
    Browse the repository at this point in the history

Commits on Dec 6, 2023

  1. rustc_arena: add alloc_str

    Two places called `from_utf8_unchecked` for strings from `alloc_slice`,
    and one's SAFETY comment said this was for lack of `alloc_str` -- so
    let's just add that instead!
    cuviper committed Dec 6, 2023
    Configuration menu
    Copy the full SHA
    92bf40f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    0f14e8e View commit details
    Browse the repository at this point in the history
  3. Fix is_foreign_item for StableMIR instance

    Change the implementation of `Instance::is_foreign_item` to directly
    query the compiler for the instance `def_id` instead of incorrectly
    relying on the conversion to `CrateItem`.
    
    Background:
    
    - In pull rust-lang#118524, I fixed the
      conversion from Instance to CrateItem to avoid the conversion if the
      instance didn't have a body available. This broke the `is_foreign_item`.
    celinval committed Dec 6, 2023
    Configuration menu
    Copy the full SHA
    1bcd162 View commit details
    Browse the repository at this point in the history
  4. Also add an API to check if an instance has body

    This is much cheaper than building a body just for the purpose of
    checking if the body exists.
    celinval committed Dec 6, 2023
    Configuration menu
    Copy the full SHA
    4a75d18 View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#117981 - Urgau:check-cfg-remove-deprecated-…

    …syntax, r=b-naber
    
    Remove deprecated `--check-cfg` syntax
    
    This PR removes the deprecated `--check-cfg` `names(...)` and `values(...)` syntax.
    
    Follow up to rust-lang#111072
    Part of rust-lang/compiler-team#636
    
    r? compiler
    matthiaskrgr authored Dec 6, 2023
    Configuration menu
    Copy the full SHA
    f546b44 View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#118177 - sivadeilra:suppress-llvm-warnings,…

    … r=cuviper
    
    Suppress warnings in LLVM wrapper when targeting MSVC
    
    The LLVM header files generate many warnings when compiled using MSVC. This makes it difficult to work on the LLVM wrapper code, because the warnings and errors that are relevant to local edits are obscured by the hundreds of lines of warnings from the LLVM Headers.
    matthiaskrgr authored Dec 6, 2023
    Configuration menu
    Copy the full SHA
    78d2061 View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#118317 - bvanjoi:fix-118295, r=petrochenkov

    tip for define macro name after `macro_rules!`
    
    Fixes rust-lang#118295
    
    ~Note that there are some bad case such as `macro_rules![]` or `macro_rules!()`. However, I think these are acceptable as they are likely to be seldom used (feel free to close this if you think its shortcomings outweigh its benefits)~
    
    Edit: this problem was resolved by utilizing the `source_map.span_to_next_source`.
    
    r? `@petrochenkov`
    matthiaskrgr authored Dec 6, 2023
    Configuration menu
    Copy the full SHA
    aefbbc6 View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#118504 - compiler-errors:must-use, r=Waffle…

    …Lapkin
    
    Enforce `must_use` on associated types and RPITITs that have a must-use trait in bounds
    
    Warn when an RPITIT or (un-normalized) associated type with a `#[must_use]` trait in its bounds is unused.
    
    This is pending T-lang approval, since it changes the semantics of the `#[must_use]` attribute slightly, but I think it strictly catches more strange errors.
    
    I could also limit this to just RPITITs, but that seems less useful.
    
    Fixes rust-lang#118444
    matthiaskrgr authored Dec 6, 2023
    Configuration menu
    Copy the full SHA
    1b391d4 View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#118660 - cuviper:alloc_str, r=petrochenkov

    rustc_arena: add `alloc_str`
    
    Two places called `from_utf8_unchecked` for strings from `alloc_slice`,
    and one's SAFETY comment said this was for lack of `alloc_str` -- so
    let's just add that instead!
    matthiaskrgr authored Dec 6, 2023
    Configuration menu
    Copy the full SHA
    cf78a79 View commit details
    Browse the repository at this point in the history
  10. Rollup merge of rust-lang#118681 - celinval:fix-foreign-item, r=ouz-a

    Fix is_foreign_item for StableMIR instance
    
    Change the implementation of `Instance::is_foreign_item` to directly query the compiler for the instance `def_id` instead of incorrectly relying on the conversion to `CrateItem`. I also added a method to check if the instance has body, since the function already existed and it just wasn't exposed via public APIs. This makes it much cheaper for the user to check if the instance has body.
    
    ## Background:
    
    - In pull rust-lang#118524, I fixed the conversion from Instance to CrateItem to avoid the conversion if the instance didn't have a body available. This broke the `is_foreign_item`.
    
    r? `@ouz-a`
    matthiaskrgr authored Dec 6, 2023
    Configuration menu
    Copy the full SHA
    3c1357c View commit details
    Browse the repository at this point in the history