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 8 pull requests #102234

Merged
merged 26 commits into from
Sep 24, 2022
Merged

Rollup of 8 pull requests #102234

merged 26 commits into from
Sep 24, 2022

Commits on Sep 4, 2022

  1. Make code worling w/ pointers in `library/std/src/sys/sgx/abi/usercal…

    …ls/alloc.rs` nicer
    
    - Use `.addr()` instead of `as`-cast
    - Use `add` instead of `offset` and remove some `as isize` casts by doing that
    - Remove some casts
    WaffleLapkin committed Sep 4, 2022
    Configuration menu
    Copy the full SHA
    a2cdbf8 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    495fa48 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    31b7181 View commit details
    Browse the repository at this point in the history

Commits on Sep 21, 2022

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

Commits on Sep 22, 2022

  1. effective visibility: Add test for a reexport of two names

    in different namespaces, one public and another private.
    petrochenkov committed Sep 22, 2022
    Configuration menu
    Copy the full SHA
    5be901a View commit details
    Browse the repository at this point in the history
  2. resolve: Set effective visibilities for imports more precisely

    Instead of setting them for all primary and additional IDs of the import, only set them for the binding's true ID.
    petrochenkov committed Sep 22, 2022
    Configuration menu
    Copy the full SHA
    4ddff03 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    98a3230 View commit details
    Browse the repository at this point in the history

Commits on Sep 23, 2022

  1. Added const_closure

    onestacked committed Sep 23, 2022
    Configuration menu
    Copy the full SHA
    0b2f717 View commit details
    Browse the repository at this point in the history
  2. Constifed Try trait

    onestacked committed Sep 23, 2022
    Configuration menu
    Copy the full SHA
    8e0ea60 View commit details
    Browse the repository at this point in the history
  3. Fixed Doc-Tests

    onestacked committed Sep 23, 2022
    Configuration menu
    Copy the full SHA
    53049f7 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    6267c60 View commit details
    Browse the repository at this point in the history
  5. rustdoc: remove no-op mobile CSS #source-sidebar { z-index: 11 }

    This rule became redundant in 07e3f99.
    When `#source-sidebar` became nested below `.sidebar`, it went from being
    `position: fixed` to `position: static`, and according to MDN's [z-index]
    documentation, this means it has no effect.
    
    [z-index]: https://developer.mozilla.org/en-US/docs/Web/CSS/z-index
    notriddle committed Sep 23, 2022
    Configuration menu
    Copy the full SHA
    8b0feb8 View commit details
    Browse the repository at this point in the history
  6. rustdoc: remove no-op CSS rule #source-sidebar { z-index: 1 }

    This rule became redundant in 07e3f99.
    When `#source-sidebar` became nested below `.sidebar`, it went from being
    `position: fixed` to `position: static`, and according to MDN's [z-index]
    documentation, this means it has no effect.
    
    [z-index]: https://developer.mozilla.org/en-US/docs/Web/CSS/z-index
    notriddle committed Sep 23, 2022
    Configuration menu
    Copy the full SHA
    f570d31 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    d78bc41 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    a74eba4 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    84666af View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    ac06d9c View commit details
    Browse the repository at this point in the history

Commits on Sep 24, 2022

  1. Configuration menu
    Copy the full SHA
    5f77ce0 View commit details
    Browse the repository at this point in the history
  2. Rollup merge of rust-lang#100823 - WaffleLapkin:less_offsets, r=scottmcm

    Refactor some `std` code that works with pointer offstes
    
    This PR replaces `pointer::offset` in standard library with `pointer::add` and `pointer::sub`, [re]moving some casts and using `.addr()` while we are at it.
    
    This is a more complicated refactor than all other sibling PRs, so take a closer look when reviewing, please 😃  (though I've checked this multiple times and it looks fine).
    
    r? ````@scottmcm````
    
    _split off from rust-lang#100746, continuation of #100822_
    matthiaskrgr committed Sep 24, 2022
    Configuration menu
    Copy the full SHA
    1b1596c View commit details
    Browse the repository at this point in the history
  3. Rollup merge of rust-lang#102088 - oli-obk:cleanups, r=bjorn3

    Fix wrongly refactored Lift impl
    
    see rust-lang#101858 (comment)
    
    r? ``@bjorn3``
    matthiaskrgr committed Sep 24, 2022
    Configuration menu
    Copy the full SHA
    bf167e0 View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#102109 - petrochenkov:addids, r=oli-obk

    resolve: Set effective visibilities for imports more precisely
    
    Instead of setting them for all primary and additional IDs of the import, only set them for the binding's true ID.
    matthiaskrgr committed Sep 24, 2022
    Configuration menu
    Copy the full SHA
    eb628e8 View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#102186 - ink-feather-org:const_try_trait, r…

    …=fee1-dead
    
    Add const_closure, Constify Try trait
    
    Adds a struct for creating const `FnMut` closures (for now just copy pasted form my [const_closure](https://crates.io/crates/const_closure) crate).
    I'm not sure if this way is how it should be done.
    The `ConstFnClosure` and `ConstFnOnceClosure` structs can probably also be entirely removed.
    
    This is then used to constify the try trait.
    
    Not sure if i should add const_closure in its own pr and maybe make it public behind a perma-unstable feature gate.
    
    cc ```@fee1-dead```  ```@rust-lang/wg-const-eval```
    matthiaskrgr committed Sep 24, 2022
    Configuration menu
    Copy the full SHA
    455a20b View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#102203 - notriddle:notriddle/source-sidebar…

    …, r=GuillaumeGomez
    
    rustdoc: remove no-op CSS `#source-sidebar { z-index }`
    
    This rule became redundant in 07e3f99. When `#source-sidebar` became nested below `.sidebar`, it went from being `position: fixed` to `position: static`, and according to MDN's [z-index] documentation, this means it has no effect.
    
    [z-index]: https://developer.mozilla.org/en-US/docs/Web/CSS/z-index
    matthiaskrgr committed Sep 24, 2022
    Configuration menu
    Copy the full SHA
    1c4a85f View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#102204 - fee1-dead-contrib:manually-drop-tr…

    …ivially-drop, r=oli-obk
    
    Make `ManuallyDrop` satisfy `~const Destruct`
    matthiaskrgr committed Sep 24, 2022
    Configuration menu
    Copy the full SHA
    5fb41a6 View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#102210 - notriddle:notriddle/did-you-mean, …

    …r=cjgillot
    
    diagnostics: avoid syntactically invalid suggestion in if conditionals
    
    Fixes rust-lang#101065
    matthiaskrgr committed Sep 24, 2022
    Configuration menu
    Copy the full SHA
    81eb35f View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#102226 - RalfJung:miri-sysroot-build, r=oli…

    …-obk
    
    bootstrap/miri: switch to non-deprecated env var for setting the sysroot folder
    
    r? `@oli-obk`
    matthiaskrgr committed Sep 24, 2022
    Configuration menu
    Copy the full SHA
    6900638 View commit details
    Browse the repository at this point in the history