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 4 pull requests #92106

Merged
merged 8 commits into from
Dec 19, 2021
Merged

Rollup of 4 pull requests #92106

merged 8 commits into from
Dec 19, 2021

Commits on Dec 13, 2021

  1. Remove in_band_lifetimes from rustc_infer

    This crate actually had a typo `'ctx` in one of its functions:
    ```diff
    -pub fn same_type_modulo_infer(a: Ty<'tcx>, b: Ty<'ctx>) -> bool {
    +pub fn same_type_modulo_infer<'tcx>(a: Ty<'tcx>, b: Ty<'tcx>) -> bool {
    ```
    LegionMammal978 committed Dec 13, 2021
    Configuration menu
    Copy the full SHA
    3755240 View commit details
    Browse the repository at this point in the history

Commits on Dec 14, 2021

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

Commits on Dec 18, 2021

  1. Explicitly set no ELF flags for .rustc section

    For a data section, the object crate will set the SHF_ALLOC by
    default, which is exactly what we don't want. Explicitly set
    sh_flags to zero to avoid this.
    nikic committed Dec 18, 2021
    Configuration menu
    Copy the full SHA
    79d5309 View commit details
    Browse the repository at this point in the history

Commits on Dec 19, 2021

  1. Fix an ICE when lowering a float with missing exponent magnitude

    Co-authored-by: Simonas Kazlauskas <[email protected]>
    terrarier2111 and nagisa committed Dec 19, 2021
    Configuration menu
    Copy the full SHA
    0003280 View commit details
    Browse the repository at this point in the history
  2. Rollup merge of rust-lang#91791 - terrarier2111:fix-float-ice, r=nagisa

    Fix an ICE when lowering a float with missing exponent magnitude
    
    This fixes: rust-lang#91434
    matthiaskrgr authored Dec 19, 2021
    Configuration menu
    Copy the full SHA
    c088e50 View commit details
    Browse the repository at this point in the history
  3. Rollup merge of rust-lang#91878 - LegionMammal978:less-inband-infer, …

    …r=Aaron1011
    
    Remove `in_band_lifetimes` from `rustc_infer`
    
    See rust-lang#91867 for more information.
    
    This crate actually had a typo `'ctx` in one of its functions:
    ```diff
    -pub fn same_type_modulo_infer(a: Ty<'tcx>, b: Ty<'ctx>) -> bool {
    +pub fn same_type_modulo_infer<'tcx>(a: Ty<'tcx>, b: Ty<'tcx>) -> bool {
    ```
    Also, I wasn't entirely sure about the lifetimes in `suggest_new_region_bound`:
    ```diff
     pub fn suggest_new_region_bound(
    -    tcx: TyCtxt<'tcx>,
    +    tcx: TyCtxt<'_>,
         err: &mut DiagnosticBuilder<'_>,
         fn_returns: Vec<&rustc_hir::Ty<'_>>,
    ```
    Should all of those lifetimes really be distinct?
    matthiaskrgr authored Dec 19, 2021
    Configuration menu
    Copy the full SHA
    d576f7d View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#91895 - pitaj:91867-monomorphize, r=Aaron1011

    Remove `in_band_lifetimes` for `rustc_monomorphize`
    
    rust-lang#91867
    matthiaskrgr authored Dec 19, 2021
    Configuration menu
    Copy the full SHA
    fba0d04 View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#92029 - nikic:section-flags-fix, r=davidtwco

    Explicitly set no ELF flags for .rustc section
    
    For a data section, the object crate will set the SHF_ALLOC by default, which is exactly what we don't want. Explicitly set sh_flags to zero to avoid this.
    
    I checked with `objdump -h` that this produces the right flags for ELF.
    
    Fixes rust-lang#92013.
    matthiaskrgr authored Dec 19, 2021
    Configuration menu
    Copy the full SHA
    9415c67 View commit details
    Browse the repository at this point in the history