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 12 pull requests #73779

Merged
merged 30 commits into from
Jun 27, 2020
Merged

Rollup of 12 pull requests #73779

merged 30 commits into from
Jun 27, 2020

Commits on Jun 18, 2020

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

Commits on Jun 20, 2020

  1. Add liballoc impl SpecFromElem for i8

    Speedup vec![1_i8; N] for non-zero element.
    
    Before
    test do_bench_from_elem_i8        ... bench:         130 ns/iter (+/- 7) = 61 MB/s
    test do_bench_from_elem_u8        ... bench:         121 ns/iter (+/- 4) = 66 MB/s
    After
    test do_bench_from_elem_i8        ... bench:         123 ns/iter (+/- 7) = 65 MB/s
    test do_bench_from_elem_u8        ... bench:         121 ns/iter (+/- 5) = 66 MB/s
    
    No speed difference if element is already zero.
    
        #[bench]
        fn do_bench_from_elem_i8(b: &mut Bencher) {
            b.bytes = 8 as u64;
            b.iter(|| {
                let dst = ve::vec![10_i8; 100];
                assert_eq!(dst.len(), 100);
                assert!(dst.iter().all(|x| *x == 10));
            })
        }
    
    As suggested by @cuviper
    https://rust-lang.zulipchat.com/#narrow/stream/219381-t-libs/topic/SpecForElem.20for.20other.20integers
    pickfire committed Jun 20, 2020
    Configuration menu
    Copy the full SHA
    f66bcc5 View commit details
    Browse the repository at this point in the history

Commits on Jun 21, 2020

  1. add missing doc links

    RalfJung committed Jun 21, 2020
    Configuration menu
    Copy the full SHA
    7cac209 View commit details
    Browse the repository at this point in the history
  2. tweak wording

    RalfJung committed Jun 21, 2020
    Configuration menu
    Copy the full SHA
    55d207a View commit details
    Browse the repository at this point in the history
  3. improve grammar

    Co-authored-by: Bastian Kauschke <bastian_kauschke@hotmail.de>
    RalfJung and lcnr committed Jun 21, 2020
    Configuration menu
    Copy the full SHA
    cb8c94c View commit details
    Browse the repository at this point in the history

Commits on Jun 24, 2020

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

Commits on Jun 25, 2020

  1. Configuration menu
    Copy the full SHA
    5232e20 View commit details
    Browse the repository at this point in the history
  2. Fix comments

    AdrianCX committed Jun 25, 2020
    Configuration menu
    Copy the full SHA
    343a921 View commit details
    Browse the repository at this point in the history
  3. Remove deprecated comments

    AdrianCX committed Jun 25, 2020
    Configuration menu
    Copy the full SHA
    db6fa2f View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    8b368db View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    1a355a2 View commit details
    Browse the repository at this point in the history
  6. Remove irrelevant comment

    nbdd0121 committed Jun 25, 2020
    Configuration menu
    Copy the full SHA
    f9af59d View commit details
    Browse the repository at this point in the history

Commits on Jun 26, 2020

  1. Configuration menu
    Copy the full SHA
    42062a5 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    6f8bec9 View commit details
    Browse the repository at this point in the history
  3. Generate docs for links to private items when passed --document-private

    - Pass around document_private a lot more
    - Add tests
      + Add tests for intra-doc links to private items
      + Add ignored tests for warnings in reference links
    jyn514 committed Jun 26, 2020
    Configuration menu
    Copy the full SHA
    20552c8 View commit details
    Browse the repository at this point in the history
  4. Fix debug messages

    jyn514 committed Jun 26, 2020
    Configuration menu
    Copy the full SHA
    6742382 View commit details
    Browse the repository at this point in the history
  5. Remove blank line

    kraai committed Jun 26, 2020
    Configuration menu
    Copy the full SHA
    cb152ea View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#72771 - jyn514:rustdoc, r=Manishearth

    Warn if linking to a private item
    
    Closes rust-lang#72769
    
    r? @GuillaumeGomez
    Manishearth committed Jun 26, 2020
    Configuration menu
    Copy the full SHA
    8adc781 View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#72937 - AdrianCX:master, r=nikomatsakis

    Fortanix SGX target libunwind build process changes
    
    Ticket: fortanix/rust-sgx#174
    LLVM related changes (merged): rust-lang/llvm-project#57
    
    Description: libunwind changes needed to run code in sgx environment via rust-sgx.
    
    Target that uses this in rust: x86_64-fortanix-unknown-sgx.
    
    Without this change, rust std for this toolchain is forced to use a precompiled library loaded via environment variable.
    
    With this change we act the same as musl target.
    Manishearth committed Jun 26, 2020
    Configuration menu
    Copy the full SHA
    38cbf15 View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#73485 - estebank:dedup-preds, r=nikomatsakis

    Perform obligation deduplication to avoid buggy `ExistentialMismatch`
    
    Address rust-lang#59326.
    Manishearth committed Jun 26, 2020
    Configuration menu
    Copy the full SHA
    f13d09a View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#73529 - pickfire:liballoc-specfromelem-i8, …

    …r=cuviper
    
    Add liballoc impl SpecFromElem for i8
    
    Speedup vec![1_i8; N] for non-zero element.
    
    Before
    test do_bench_from_elem_i8        ... bench:         130 ns/iter (+/- 7) = 61 MB/s
    test do_bench_from_elem_u8        ... bench:         121 ns/iter (+/- 4) = 66 MB/s
    After
    test do_bench_from_elem_i8        ... bench:         123 ns/iter (+/- 7) = 65 MB/s
    test do_bench_from_elem_u8        ... bench:         121 ns/iter (+/- 5) = 66 MB/s
    
    No speed difference if element is already zero.
    
    ```rust
    #[bench]
    fn do_bench_from_elem_i8(b: &mut Bencher) {
        b.bytes = 8 as u64;
        b.iter(|| {
            let dst = ve::vec![10_i8; 100];
            assert_eq!(dst.len(), 100);
            assert!(dst.iter().all(|x| *x == 10));
        })
    }
    ```
    
    As suggested by @cuviper
    https://rust-lang.zulipchat.com/#narrow/stream/219381-t-libs/topic/SpecForElem.20for.20other.20integers
    
    r? @cuviper
    CC @joshtriplett
    
    Edit: Wow, I just realized both reviewers are Josh.
    Manishearth committed Jun 26, 2020
    Configuration menu
    Copy the full SHA
    23b0776 View commit details
    Browse the repository at this point in the history
  10. Rollup merge of rust-lang#73579 - RalfJung:doc-missing-links, r=shepm…

    …aster
    
    add missing doc links
    
    The doc comments contain ``[`size_of_val`]`` but the link target was missing.
    Manishearth committed Jun 26, 2020
    Configuration menu
    Copy the full SHA
    92af945 View commit details
    Browse the repository at this point in the history
  11. Rollup merge of rust-lang#73627 - ssomers:btree_iter_min_max, r=Mark-…

    …Simulacrum
    
    Shortcuts for min/max on double-ended BTreeMap/BTreeSet iterators
    
    Closes rust-lang#59947: a performance tweak that might benefit some. Optimizes `min` and `max ` on all btree double-ended iterators that do not drop, i.e. the iterators created by:
    
    - `BTreeMap::iter`
    - `BTreeMap::iter_mut`
    - `BTreeMap::keys` and `BTreeSet::iter`
    - `BTreeMap::range` and `BTreeSet::range`
    - `BTreeMap::range_mut`
    
    Also in these (currently) single-ended iterators, but obviously for `min` only:
    - `BTreeSet::difference`
    - `BTreeSet::intersection`
    - `BTreeSet::symmetric_difference`
    - `BTreeSet::union`
    
    Did not do this in iterators created by `into_iter` to preserve drop order, as outlined in rust-lang#62316.
    
    Did not do this in iterators created by `drain_filter`, possibly to preserve drop order, possibly to preserve predicate invocation, mostly to not have to think about it too hard (I guess maybe it wouldn't be a change for `min`, which is the only shortcut possible in this single-ended iterator).
    Manishearth committed Jun 26, 2020
    Configuration menu
    Copy the full SHA
    dfbba65 View commit details
    Browse the repository at this point in the history
  12. Rollup merge of rust-lang#73691 - ajpaverd:bootstrap-windows-73689, r…

    …=Mark-Simulacrum
    
    Bootstrap: detect Windows based on sys.platform
    
    Closes rust-lang#73689.
    Manishearth committed Jun 26, 2020
    Configuration menu
    Copy the full SHA
    c18e919 View commit details
    Browse the repository at this point in the history
  13. Rollup merge of rust-lang#73694 - poliorcetics:self-upper-keyword, r=…

    …Mark-Simulacrum
    
    Document the Self keyword
    
    Partial fix of rust-lang#34601.
    
    Document the `Self` keyword.
    
    This contains simple examples of the places where `Self` can be used.
    Manishearth committed Jun 26, 2020
    Configuration menu
    Copy the full SHA
    8d9c00d View commit details
    Browse the repository at this point in the history
  14. Rollup merge of rust-lang#73718 - poliorcetics:super-keyword, r=shepm…

    …aster
    
    Document the super keyword
    
    Partial fix of rust-lang#34601.
    
    Quite short, just a small example and a link to the reference.
    
    @rustbot modify labels: T-doc,C-enhancement
    Manishearth committed Jun 26, 2020
    Configuration menu
    Copy the full SHA
    bc10bb0 View commit details
    Browse the repository at this point in the history
  15. Rollup merge of rust-lang#73728 - oli-obk:const_prop_cleanup, r=wesle…

    …ywiser
    
    Document some invariants correctly/more
    
    r? @wesleywiser
    Manishearth committed Jun 26, 2020
    Configuration menu
    Copy the full SHA
    83f6d0a View commit details
    Browse the repository at this point in the history
  16. Rollup merge of rust-lang#73738 - nbdd0121:comment, r=nikomatsakis

    Remove irrelevant comment
    
    Iterator is no longer a lang item since 216e72f.
    Manishearth committed Jun 26, 2020
    Configuration menu
    Copy the full SHA
    7926c64 View commit details
    Browse the repository at this point in the history
  17. Rollup merge of rust-lang#73765 - kraai:remove-blank-line, r=jonas-sc…

    …hievink
    
    Remove blank line
    Manishearth committed Jun 26, 2020
    Configuration menu
    Copy the full SHA
    50026ae View commit details
    Browse the repository at this point in the history