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

Merged
merged 13 commits into from
Nov 3, 2022
Merged

Rollup of 6 pull requests #103903

merged 13 commits into from
Nov 3, 2022

Commits on Oct 27, 2022

  1. Allow use of -Clto=thin with -Ccodegen-units=1 in general

    The current logic to ignore ThinLTO when `-Ccodegen-units=1` makes sense
    for local ThinLTO but even in this scenario, a user may still want
    (non-local) ThinLTO for the purpose of optimizing dependencies into the
    final crate which is being compiled with 1 CGU.
    
    The previous behavior was even more confusing because if you were
    generating a binary (`--emit=link`), then you would get ThinLTO but if
    you asked for LLVM IR or bytecode, then it would silently change to
    using regular LTO.
    
    With this change, we only override the defaults for local ThinLTO if you
    ask for a single output such as LLVM IR or bytecode and in all other
    cases honor the requested LTO setting.
    wesleywiser committed Oct 27, 2022
    Configuration menu
    Copy the full SHA
    7c6345d View commit details
    Browse the repository at this point in the history

Commits on Nov 1, 2022

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

Commits on Nov 2, 2022

  1. Configuration menu
    Copy the full SHA
    b96ad1c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ecea616 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    1123852 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    c983bb1 View commit details
    Browse the repository at this point in the history
  5. rustdoc: remove unused mobile CSS .rustdoc { padding-top: 0 }

    When this rule was added in dd437ee, as
    `body { padding-top: 0 }`, the desktop body tag had non-zero top padding.
    This padding was removed in 135281e.
    
    This rule no longer overrides a rule in rustdoc's desktop styles, and also
    doesn't override the UA stylesheet, since the [HTML standard] has only
    margin, not padding, on the page body.
    
    [HTML standard]: https://html.spec.whatwg.org/multipage/rendering.html#the-page
    notriddle committed Nov 2, 2022
    Configuration menu
    Copy the full SHA
    deb6538 View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#99801 - Neo-Zhixing:fix/generic_const_exprs…

    …_parent_opaque_predicates, r=oli-obk
    
    fix(generic_const_exprs): Fix predicate inheritance for children of opaque types
    
    Fixes rust-lang#99705
    
    We currently have a special case to perform predicate inheritance when the const item is in the generics. I think we're also going to need this for opaque return types. When evaluating the predicates applied to the associated item, it'll inherit from its parent, the opaque type, which will never have predicates applied. This PR bypass the opaque typed parent and inherit predicates directly from the function itself.
    matthiaskrgr authored Nov 2, 2022
    Configuration menu
    Copy the full SHA
    214d6b6 View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#103610 - wesleywiser:thinlto_cgu1, r=michae…

    …lwoerister
    
    Allow use of `-Clto=thin` with `-Ccodegen-units=1` in general
    
    The current logic to ignore ThinLTO when `-Ccodegen-units=1` makes sense for local ThinLTO but even in this scenario, a user may still want (non-local) ThinLTO for the purpose of optimizing dependencies into the final crate which is being compiled with 1 CGU.
    
    The previous behavior was even more confusing because if you were generating a binary (`--emit=link`), then you would get ThinLTO but if you asked for LLVM IR or bytecode, then it would silently change to using regular LTO.
    
    With this change, we only override the defaults for local ThinLTO if you ask for a single output such as LLVM IR or bytecode and in all other cases honor the requested LTO setting.
    
    r? `@michaelwoerister`
    matthiaskrgr authored Nov 2, 2022
    Configuration menu
    Copy the full SHA
    0f72a6d View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    5784a03 View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#103875 - oli-obk:ast_conv_simplification, r…

    …=spastorino
    
    Simplify astconv item def id handling
    matthiaskrgr authored Nov 2, 2022
    Configuration menu
    Copy the full SHA
    bb201b5 View commit details
    Browse the repository at this point in the history
  10. Rollup merge of rust-lang#103886 - GuillaumeGomez:local-reexport-doc,…

    … r=notriddle
    
    rustdoc: Fix merge of attributes for reexports of local items
    
    Fixes rust-lang#84619.
    
    The problem was that we didn't merge attributes between the the reexport and the item.
    
    r? `@notriddle`
    matthiaskrgr authored Nov 2, 2022
    Configuration menu
    Copy the full SHA
    88f9f49 View commit details
    Browse the repository at this point in the history
  11. Rollup merge of rust-lang#103890 - notriddle:notriddle/mobile-rustdoc…

    …-padding-top, r=GuillaumeGomez
    
    rustdoc: remove unused mobile CSS `.rustdoc { padding-top: 0 }`
    
    When this rule was added in dd437ee, as `body { padding-top: 0 }`, the desktop body tag had non-zero top padding. This padding was removed in 135281e.
    
    This rule no longer overrides a rule in rustdoc's desktop styles, and also doesn't override the UA stylesheet, since the [HTML standard] has only margin, not padding, on the page body.
    
    [HTML standard]: https://html.spec.whatwg.org/multipage/rendering.html#the-page
    matthiaskrgr authored Nov 2, 2022
    Configuration menu
    Copy the full SHA
    36d8134 View commit details
    Browse the repository at this point in the history