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 9 pull requests #101143

Merged
merged 30 commits into from
Aug 29, 2022
Merged

Rollup of 9 pull requests #101143

merged 30 commits into from
Aug 29, 2022

Commits on Jul 6, 2022

  1. socket set_mark addition.

    to be able to set a marker/id on the socket for network filtering
     (iptables/ipfw here) purpose.
    devnexen committed Jul 6, 2022
    Configuration menu
    Copy the full SHA
    14d288f View commit details
    Browse the repository at this point in the history
  2. doc additions

    devnexen committed Jul 6, 2022
    Configuration menu
    Copy the full SHA
    48ef00e View commit details
    Browse the repository at this point in the history
  3. changes from feedback

    devnexen committed Jul 6, 2022
    Configuration menu
    Copy the full SHA
    10f5a19 View commit details
    Browse the repository at this point in the history

Commits on Jul 7, 2022

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

Commits on Aug 23, 2022

  1. Configuration menu
    Copy the full SHA
    313d474 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    7e4f433 View commit details
    Browse the repository at this point in the history
  3. Use GeneratorKind::descr() instead of it's Display impl

    Those are basically the same but the first one seems to fit better
    IntQuant committed Aug 23, 2022
    Configuration menu
    Copy the full SHA
    3f6cb47 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    f50d171 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    cb4cd73 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    74f9973 View commit details
    Browse the repository at this point in the history

Commits on Aug 24, 2022

  1. Configuration menu
    Copy the full SHA
    3fae390 View commit details
    Browse the repository at this point in the history
  2. Remove commented lines

    IntQuant authored Aug 24, 2022
    Configuration menu
    Copy the full SHA
    e1765a9 View commit details
    Browse the repository at this point in the history
  3. translations: rename warn_ to warning

    The macro warn_ was named like that because it the
    keyword warn is a built-in attribute and at the time
    this macro was created the word 'warning' was also
    taken.
    
    However it is no longer the case and we can rename
    warn_ to warning.
    beowolx committed Aug 24, 2022
    Configuration menu
    Copy the full SHA
    b508b50 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    4e97626 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    4ff5872 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    d464d3a View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    8189a45 View commit details
    Browse the repository at this point in the history

Commits on Aug 26, 2022

  1. Configuration menu
    Copy the full SHA
    8bb4b5f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b48870b View commit details
    Browse the repository at this point in the history

Commits on Aug 28, 2022

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

Commits on Aug 29, 2022

  1. Rollup merge of rust-lang#94890 - marmeladema:ip-addr-try-from-bytes,…

    … r=joshtriplett
    
    Support parsing IP addresses from a byte string
    
    Fixes rust-lang#94821
    
    The goal is to be able to parse addresses from a byte string without requiring to do any utf8 validation. Since internally the parser already works on byte strings, this should be possible and I personally already needed this in the past too.
    
    ~~I used the proposed approach from the issue by implementing `TryFrom<&'a [u8]>` for all 6 address types (3 ip address types and 3 socket address types). I believe implementing stable traits for stable types is insta-stable so this will probably need an FCP?~~
    
    Switched to an unstable inherent method approach called `parse_ascii` as requested.
    
    cc ``````@jyn514``````
    matthiaskrgr authored Aug 29, 2022
    Configuration menu
    Copy the full SHA
    52016a1 View commit details
    Browse the repository at this point in the history
  2. Rollup merge of rust-lang#96334 - devnexen:socket_mark, r=dtolnay

    socket `set_mark` addition.
    
    to be able to set a marker/id on the socket for network filtering
     (iptables/ipfw here) purpose.
    matthiaskrgr authored Aug 29, 2022
    Configuration menu
    Copy the full SHA
    a96b44c View commit details
    Browse the repository at this point in the history
  3. Rollup merge of rust-lang#99027 - tmiasko:basic-blocks, r=oli-obk

    Replace `Body::basic_blocks()` with field access
    
    Since the refactoring in rust-lang#98930, it is possible to borrow the basic blocks
    independently from other parts of MIR by accessing the `basic_blocks` field
    directly.
    
    Replace unnecessary `Body::basic_blocks()` method with a direct field access,
    which has an additional benefit of borrowing the basic blocks only.
    matthiaskrgr authored Aug 29, 2022
    Configuration menu
    Copy the full SHA
    d182081 View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#100437 - compiler-errors:better-const-misma…

    …tch-err, r=oli-obk
    
    Improve const mismatch `FulfillmentError`
    
    Fixes rust-lang#100414
    matthiaskrgr authored Aug 29, 2022
    Configuration menu
    Copy the full SHA
    26c86c6 View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#100843 - IntQuant:issue-100717-infer, r=com…

    …piler-errors
    
    Migrate part of rustc_infer to session diagnostic
    matthiaskrgr authored Aug 29, 2022
    Configuration menu
    Copy the full SHA
    a3c965f View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#100897 - RalfJung:const-not-to-mutable, r=lcnr

    extra sanity check against consts pointing to mutable memory
    
    This should be both unreachable and redundant (since we already ensure that validation only reads from read-only memory, when validating consts), but I feel like we cannot be paranoid enough here, and also if this ever fails it'll be a nicer error than the "cannot read from mutable memory" error.
    matthiaskrgr authored Aug 29, 2022
    Configuration menu
    Copy the full SHA
    d814fdd View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#100959 - LuisCardosoOliveira:translation-re…

    …name-attr-warning, r=davidtwco
    
    translations: rename warn_ to warning
    
    ## Description
    
    This MR renames the the macro `warn_` to `warning`.
    
    To give a little bit of context, as [explained](https://rust-lang.zulipchat.com/#narrow/stream/336883-i18n/topic/.23100717.20diag.20translation/near/295074146) by ```````@davidtwco``````` in the Zulip channel, `warn_`  was named like that because the keyword `warn` is a built-in attribute and at the time this macro was created the word `warning` was also
    taken.
    
    However, it is no longer the case and we can rename `warn_` to `warning`.
    matthiaskrgr authored Aug 29, 2022
    Configuration menu
    Copy the full SHA
    6667754 View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#101111 - saethlin:better-fnentry-spans, r=R…

    …alfJung
    
    Use the declaration's SourceInfo for FnEntry retags, not the outermost
    
    This addresses a long-standing `// FIXME` in the pass that adds retags.
    
    The changes to Miri's UI tests will look like this:
    ```
       --> $DIR/aliasing_mut1.rs:LL:CC
        |
     LL | pub fn safe(_x: &mut i32, _y: &mut i32) {}
    <   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not granting access to tag <TAG> because incompatible item [Unique for <TAG>] is protected by call ID
    >   |                           ^^ not granting access to tag <TAG> because incompatible item [Unique for <TAG>] is protected by call ID
        |
    ```
    
    r? ````@RalfJung````
    matthiaskrgr authored Aug 29, 2022
    Configuration menu
    Copy the full SHA
    3e5be57 View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#101116 - GuillaumeGomez:rm-attrs-ty-alias, …

    …r=notriddle
    
    [rustdoc] Remove Attrs type alias
    
    When working on rust-lang#101006, I was quite confused because of this type alias as I'm used to having rustdoc types into `clean/types.rs`. Anyway, considering how few uses of it we have, I simply removed it.
    
    r? `````@notriddle`````
    matthiaskrgr authored Aug 29, 2022
    Configuration menu
    Copy the full SHA
    fa177a9 View commit details
    Browse the repository at this point in the history