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 7 pull requests #94148

Merged
merged 21 commits into from
Feb 19, 2022
Merged

Rollup of 7 pull requests #94148

merged 21 commits into from
Feb 19, 2022

Commits on Feb 10, 2022

  1. updating the feature-gate listing and do not require the feature-gate…

    … to use the feature
    Charisee committed Feb 10, 2022
    Configuration menu
    Copy the full SHA
    4404a4e View commit details
    Browse the repository at this point in the history
  2. replace feature expression (cfg_panic) in lib and remove expression f…

    …rom tests
    
    Rebase commit
    Charisee committed Feb 10, 2022
    Configuration menu
    Copy the full SHA
    5e6be7d View commit details
    Browse the repository at this point in the history
  3. Rebase

    Charisee committed Feb 10, 2022
    Configuration menu
    Copy the full SHA
    962094b View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    46ec73a View commit details
    Browse the repository at this point in the history
  5. remove mention of cfg_panic from library tests

    Charisee committed Feb 10, 2022
    Configuration menu
    Copy the full SHA
    d018a8b View commit details
    Browse the repository at this point in the history
  6. add cfg_panic bootstrap

    Charisee committed Feb 10, 2022
    Configuration menu
    Copy the full SHA
    a889079 View commit details
    Browse the repository at this point in the history
  7. added space

    Charisee committed Feb 10, 2022
    Configuration menu
    Copy the full SHA
    dbeab9c View commit details
    Browse the repository at this point in the history

Commits on Feb 13, 2022

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

Commits on Feb 16, 2022

  1. Configuration menu
    Copy the full SHA
    11ec2a4 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    1b7c3bc View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    f41722a View commit details
    Browse the repository at this point in the history

Commits on Feb 17, 2022

  1. Add debug asserts to validate NUL terminator in c strings

    Signed-off-by: Alex Saveau <saveau.alexandre@gmail.com>
    SUPERCILEX committed Feb 17, 2022
    Configuration menu
    Copy the full SHA
    897c8d0 View commit details
    Browse the repository at this point in the history
  2. Fix ScalarInt to char conversion

    to avoid panic for invalid Unicode scalar values
    tmiasko committed Feb 17, 2022
    Configuration menu
    Copy the full SHA
    8cd9dfa View commit details
    Browse the repository at this point in the history

Commits on Feb 18, 2022

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

Commits on Feb 19, 2022

  1. Rollup merge of rust-lang#92902 - ssomers:docter_drain, r=yaahc

    Improve the documentation of drain members
    
    hopefully fixes rust-lang#92765
    matthiaskrgr authored Feb 19, 2022
    Configuration menu
    Copy the full SHA
    4fa71ed View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f19adc7 View commit details
    Browse the repository at this point in the history
  3. Rollup merge of rust-lang#93954 - aDotInTheVoid:json-buffer, r=Mark-S…

    …imulacrum
    
    rustdoc-json: buffer output
    
    It turns out we were doing syscalls for each part of the json syntax
    
    Before:
    ```
    ...
    [pid 1801267] write(5, "\"", 1)         = 1
    [pid 1801267] write(5, ",", 1)          = 1
    [pid 1801267] write(5, "\"", 1)         = 1
    ...
    ```
    
    After:
    
    ```
    [pid 1974821] write(5, "{\"root\":\"0:0\",\"crate_version\":nu"..., 1575) = 1575
    ```
    
    In one benchmark (one struct, almost all time in `std`), this gives ~2x perf
    
    r? `@CraftSpider`
    
    `@rustbot` modify labels: +A-rustdoc-json +T-rustdoc -A-testsuite
    matthiaskrgr authored Feb 19, 2022
    Configuration menu
    Copy the full SHA
    554aea9 View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#93979 - SUPERCILEX:debug_check, r=dtolnay

    Add debug assertions to validate NUL terminator in c strings
    
    The `unchecked` variants from the stdlib usually perform the check anyway if debug assertions are on (for example, `unwrap_unchecked`). This PR does the same thing for `CStr` and `CString`, validating the correctness for the NUL byte in debug mode.
    matthiaskrgr authored Feb 19, 2022
    Configuration menu
    Copy the full SHA
    26dd6ac View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#93990 - lcnr:pre-89862-cleanup, r=estebank

    pre rust-lang#89862 cleanup
    
    changes used in rust-lang#89862 which can be landed without the rest of this PR being finished.
    
    r? `@estebank`
    matthiaskrgr authored Feb 19, 2022
    Configuration menu
    Copy the full SHA
    78e4456 View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#94006 - pierwill:upvar-field, r=nikomatsakis

    Use a `Field` in `ConstraintCategory::ClosureUpvar`
    
    As part of rust-lang#90317, we do not want `HirId` to implement `Ord`, `PartialOrd`. This line of code has made that difficult
    
    https://github.com/rust-lang/rust/blob/1b27144afc77031ba9c05d86c06c64485589775a/compiler/rustc_borrowck/src/region_infer/mod.rs#L2184
    
    since it sorts a [`ConstraintCategory::ClosureUpvar(HirId)`](https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/mir/enum.ConstraintCategory.html#variant.ClosureUpvar).
    
    This PR makes that variant take a [`Field`](https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/mir/struct.Field.html) instead.
    
    r? `@nikomatsakis`
    matthiaskrgr authored Feb 19, 2022
    Configuration menu
    Copy the full SHA
    c28940e View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#94086 - tmiasko:char-try-from-scalar-int, r…

    …=davidtwco
    
    Fix ScalarInt to char conversion
    
    to avoid panic for invalid Unicode scalar values
    matthiaskrgr authored Feb 19, 2022
    Configuration menu
    Copy the full SHA
    5a083db View commit details
    Browse the repository at this point in the history