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

Merged
merged 27 commits into from
Nov 8, 2019
Merged

Rollup of 8 pull requests #66208

merged 27 commits into from
Nov 8, 2019

Commits on Oct 31, 2019

  1. enhance the documentation of std::io::BufReader regarding potential d…

    …ata loss
    Marco Conte committed Oct 31, 2019
    Configuration menu
    Copy the full SHA
    900c13e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    5b5196a View commit details
    Browse the repository at this point in the history

Commits on Nov 2, 2019

  1. Configuration menu
    Copy the full SHA
    05c0791 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    1808968 View commit details
    Browse the repository at this point in the history

Commits on Nov 6, 2019

  1. Configuration menu
    Copy the full SHA
    f66a331 View commit details
    Browse the repository at this point in the history
  2. using 2.0.log(2.0) in examples does not make it clear which is the ba…

    …se and number. This example makes it clear for programmers who take a glance at the example by following the calculation. It is more intuitive, and eliminates the need for executing the example in the playground.
    srinivasreddy committed Nov 6, 2019
    Configuration menu
    Copy the full SHA
    62167c0 View commit details
    Browse the repository at this point in the history

Commits on Nov 7, 2019

  1. Configuration menu
    Copy the full SHA
    c965432 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    24e093c View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    d4527b7 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    1906c6f View commit details
    Browse the repository at this point in the history
  5. Apply docs suggestions from review

    Co-Authored-By: Mazdak Farrokhzad <[email protected]>
    SimonSapin and Centril committed Nov 7, 2019
    Configuration menu
    Copy the full SHA
    05c14bc View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    639c4f7 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    ccde510 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    8590b16 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    8e1ae56 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    0c9d424 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    166d5f8 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    2b75147 View commit details
    Browse the repository at this point in the history
  13. rustc_metadata: Rename schema to rmeta

    And change `rmeta.rs` to `rmeta/mod.rs`
    petrochenkov committed Nov 7, 2019
    Configuration menu
    Copy the full SHA
    5eb1cf1 View commit details
    Browse the repository at this point in the history

Commits on Nov 8, 2019

  1. Rollup merge of rust-lang#65554 - gliderkite:bufreader-doc-enhance, r…

    …=KodrAus
    
    Enhance the documentation of BufReader for potential data loss
    
    This is (IMO) and enhancement of the `std::io::BufReader` documentation, that aims to highlight how relatively easy is to end up with data loss when improperly using an instance of this class.
    
    This is following the issue I had figuring out why my application was loosing data, because I focused my attention on the word *multiple instances* of `BufReader` in its `struct` documentation, even if I ever only had one instance.
    
    Link to the issue: tokio-rs/tokio#1662
    JohnTitor authored Nov 8, 2019
    Configuration menu
    Copy the full SHA
    32aa327 View commit details
    Browse the repository at this point in the history
  2. Rollup merge of rust-lang#65580 - SimonSapin:maybeuninit-array, r=Ama…

    …nieu
    
    Add `MaybeUninit` methods `uninit_array`, `slice_get_ref`, `slice_get_mut`
    
    Eventually these will hopefully become the idiomatic way to work with partially-initialized stack buffers.
    
    All methods are unstable. Note that `uninit_array` takes a type-level `const usize` parameter, so it is blocked (at least in its current form) on const generics.
    
    Example:
    
    ```rust
    use std::mem::MaybeUninit;
    
    let input = b"Foo";
    let f = u8::to_ascii_uppercase;
    
    let mut buffer: [MaybeUninit<u8>; 32] = MaybeUninit::uninit_array();
    let vec;
    let output = if let Some(buffer) = buffer.get_mut(..input.len()) {
        buffer.iter_mut().zip(input).for_each(|(a, b)| { a.write(f(b)); });
        unsafe { MaybeUninit::slice_get_ref(buffer) }
    } else {
        vec = input.iter().map(f).collect::<Vec<u8>>();
        &vec
    };
    
    assert_eq!(output, b"FOO");
    ```
    JohnTitor authored Nov 8, 2019
    Configuration menu
    Copy the full SHA
    a00c777 View commit details
    Browse the repository at this point in the history
  3. Rollup merge of rust-lang#66049 - RalfJung:missing-spans, r=alexcrichton

    consistent handling of missing sysroot spans
    
    Due to rust-lang#53081, sysroot spans (pointing to code in libcore/libstd/...) fails to print on some x86 runners. This consolidates the ignore directives for that and references the relevant issue.
    
    I also did that for the generated derive-error-span tests -- but there the script and the tests were not entirely in sync any more since rust-lang#64151. Cc @estebank @varkor
    JohnTitor authored Nov 8, 2019
    Configuration menu
    Copy the full SHA
    9dc5d0e View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#66056 - petrochenkov:metapriv, r=eddyb

    rustc_metadata: Some reorganization of the module structure
    
    The new structure of `rustc_metadata` (or rather its parts affected by the refactoring) is
    ```
    ├── lib.rs
    └── rmeta
        ├── decoder
        │   └── cstore_impl.rs
        ├── decoder.rs
        ├── encoder.rs
        ├── mod.rs
        └── table.rs
    ```
    
    (`schema` is renamed to `rmeta`.)
    
    The code inside `rmeta` is pretty self-contained, so we can now privatize almost everything in this module instead of using `pub(crate)`  which was necessary when all these modules accessed their neighbors in the old flat structure.
    
    `encoder` and `decoder` work with structures defined by `rmeta`.
    `table` is a part of `rmeta`.
    `cstore_impl` actively uses decoder methods and exposes their results through very few public methods (`provide` and `_untracked` methods).
    
    r? @eddyb @spastorino
    JohnTitor authored Nov 8, 2019
    Configuration menu
    Copy the full SHA
    996d94a View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#66123 - GuillaumeGomez:no-more-hidden-eleme…

    …nts, r=Dylan-DPC
    
    No more hidden elements
    
    Fixes rust-lang#66046.
    
    Follow-up of rust-lang#66082.
    
    r? @kinnison
    JohnTitor authored Nov 8, 2019
    Configuration menu
    Copy the full SHA
    392ebad View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#66157 - srinivasreddy:improv, r=alexcrichton

    Improve math log documentation examples
    
    using 2.0.log(2.0) in examples does not make it clear which is the base and number. This example makes it clear for programmers who take a glance at the example by following the calculation. It is more intuitive, and eliminates the need for executing the example in the playground.
    JohnTitor authored Nov 8, 2019
    Configuration menu
    Copy the full SHA
    1455381 View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#66165 - Wind-River:master_xyz, r=alexcrichton

    Ignore these tests ,since the called commands doesn't exist in VxWorks
    JohnTitor authored Nov 8, 2019
    Configuration menu
    Copy the full SHA
    63a4551 View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#66190 - eddyb:primflt, r=Centril

    rustc_target: inline abi::FloatTy into abi::Primitive.
    
    This effectively undoes a small part of @oli-obk's rust-lang#50967, now that the rest of the compiler doesn't use the `FloatTy` definition from `rustc_target`, post-rust-lang#65884.
    JohnTitor authored Nov 8, 2019
    Configuration menu
    Copy the full SHA
    1969f41 View commit details
    Browse the repository at this point in the history