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 13 pull requests #74569

Merged
merged 30 commits into from
Jul 21, 2020
Merged

Rollup of 13 pull requests #74569

merged 30 commits into from
Jul 21, 2020

Commits on Jun 10, 2020

  1. Impl Default for ranges

    c410-f3r committed Jun 10, 2020
    Configuration menu
    Copy the full SHA
    187aea7 View commit details
    Browse the repository at this point in the history

Commits on Jul 10, 2020

  1. Remove some Default impls

    c410-f3r committed Jul 10, 2020
    Configuration menu
    Copy the full SHA
    c375692 View commit details
    Browse the repository at this point in the history

Commits on Jul 18, 2020

  1. Configuration menu
    Copy the full SHA
    a11024f View commit details
    Browse the repository at this point in the history
  2. add note to opt_const_param_of

    lcnr committed Jul 18, 2020
    Configuration menu
    Copy the full SHA
    e8d16fd View commit details
    Browse the repository at this point in the history

Commits on Jul 19, 2020

  1. Configuration menu
    Copy the full SHA
    174abeb View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    dec7076 View commit details
    Browse the repository at this point in the history
  3. Ayu: use different background color to make Run button easy-to-spot

    Co-authored-by: Cldfire <cldfire@3grid.net>
    tesuji and Cldfire committed Jul 19, 2020
    Configuration menu
    Copy the full SHA
    0eff3d5 View commit details
    Browse the repository at this point in the history
  4. Remove CC & CFLAGS from MemorySanitizer example

    They are now unnecessary for projects written in Rust, since
    backtrace-rs used by the standard library has only Rust dependencies.
    tmiasko committed Jul 19, 2020
    Configuration menu
    Copy the full SHA
    251878e View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    58b8620 View commit details
    Browse the repository at this point in the history
  6. disallow non-static lifetimes in const generics

    This has been put in place to patch over an ICE caused when we encounter
    a non-static lifetime in a const generic during borrow checking. This
    restriction may be relaxed in the future, but we need more discussion
    before then, and in the meantime we should still deal with this ICE.
    
    Fixes issue rust-lang#60814
    yodaldevoid committed Jul 19, 2020
    Configuration menu
    Copy the full SHA
    69d5dd6 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    c60a035 View commit details
    Browse the repository at this point in the history

Commits on Jul 20, 2020

  1. wf: check foreign fn decls for well-formedness

    This commit extends current well-formedness checking to apply to foreign
    function declarations, re-using the existing machinery for regular
    functions. In doing this, later parts of the compiler (such as the
    `improper_ctypes` lint) can rely on being operations not failing as a
    result of invalid code which would normally be caught earlier.
    
    Signed-off-by: David Wood <david@davidtw.co>
    davidtwco committed Jul 20, 2020
    Configuration menu
    Copy the full SHA
    ceac273 View commit details
    Browse the repository at this point in the history
  2. Fix duplicate maybe_uninit_extra attribute

    Jethro Beekman committed Jul 20, 2020
    Configuration menu
    Copy the full SHA
    c8cdcc8 View commit details
    Browse the repository at this point in the history
  3. Stabilize TAU constant.

    m-ou-se committed Jul 20, 2020
    Configuration menu
    Copy the full SHA
    5d4147a View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    995d63a View commit details
    Browse the repository at this point in the history
  5. update backtrace-rs

    RalfJung committed Jul 20, 2020
    Configuration menu
    Copy the full SHA
    4cbd265 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    f5e5eb6 View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#72714 - JohnTitor:debug-assert, r=nikomatsakis

    Fix debug assertion in typeck
    
    Fixes rust-lang#72410
    Manishearth committed Jul 20, 2020
    Configuration menu
    Copy the full SHA
    105cd49 View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#73197 - c410-f3r:ranges, r=dtolnay

    Impl Default for ranges
    
    Couldn't find an issue about it.
    
    `Range` and friends probably can implement `Default` if `Idx: Default`. For example, the following would be possible:
    
    ```rust
    #[derive(Default)]
    struct Foo(core::ops::RangeToInclusive<u64>);
    
    let _ = [1, 2, 3].get(core::ops::Range::default());
    
    core::ops::RangeFrom::<u8>::default().take(20).for_each(|x| { dbg!(x); });
    
    fn stuff<T: Default>() { let instance = T::default(); ... more stuff }
    stuff::<core::ops::RangeTo<f32>>();
    ```
    
    Maybe there are some concerns about safety or misunderstandings?
    Manishearth committed Jul 20, 2020
    Configuration menu
    Copy the full SHA
    241374a View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#73323 - davidtwco:issue-73252-wfcheck-forei…

    …gn-fn-decl, r=ecstatic-morse
    
    wf: check foreign fn decls for well-formedness
    
    Fixes rust-lang#73252 and fixes rust-lang#73253.
    
    This PR extends current well-formedness checking to apply to foreign function declarations, re-using the existing machinery for regular functions. In doing this, later parts of the compiler (such as the `improper_ctypes` lint) can rely on being operations not failing as a result of invalid code which would normally be caught earlier.
    Manishearth committed Jul 20, 2020
    Configuration menu
    Copy the full SHA
    0897bc2 View commit details
    Browse the repository at this point in the history
  10. Rollup merge of rust-lang#74051 - yodaldevoid:issue_60814, r=nikomats…

    …akis
    
    disallow non-static lifetimes in const generics
    
    Disallow non-static lifetimes in const generics in order to to patch over an ICE caused when we encounter a non-static lifetime in a const generic during borrow checking. This restriction may be relaxed in the future, but we need more discussion before then, and in the meantime we should still deal with this ICE.
    
    Fixes issue rust-lang#60814
    Manishearth committed Jul 20, 2020
    Configuration menu
    Copy the full SHA
    991da05 View commit details
    Browse the repository at this point in the history
  11. Rollup merge of rust-lang#74376 - lcnr:type-dependent-path-cleanup, r…

    …=eddyb
    
    test caching opt_const_param_of on disc
    
    Followup to rust-lang#74113, implements parts of rust-lang#74360
    
    Tried caching `opt_const_param_of` on disk and adding an early exit if `tcx.dep_kind(def_id) != DefKind::AnonConst`.
    
    Ended up causing a perf regression instead, so we just remove the FIXME and a short note to `opt_const_param_of`.
    
    r? @eddyb
    Manishearth committed Jul 20, 2020
    Configuration menu
    Copy the full SHA
    6a4276d View commit details
    Browse the repository at this point in the history
  12. Rollup merge of rust-lang#74501 - lzutao:css_run_border, r=GuillaumeG…

    …omez
    
    Ayu theme: Use different background color for Run button
    
    Make it clearer that there is a button Run there.
    
    Demo in rust-lang#74501 (comment) .
    Manishearth committed Jul 20, 2020
    Configuration menu
    Copy the full SHA
    e0fae89 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    6467f6f View commit details
    Browse the repository at this point in the history
  14. Rollup merge of rust-lang#74522 - tmiasko:sanitizer-docs, r=nikomatsakis

    Update sanitizer docs
    
    * Document AddressSanitizer memory leak detection defaults.
    * Remove CC & CFLAGS from MemorySanitizer example - they are now unnecessary for pure Rust projects (backtrace-rs moved away from libbacktrace).
    Manishearth committed Jul 20, 2020
    Configuration menu
    Copy the full SHA
    15f8b80 View commit details
    Browse the repository at this point in the history
  15. Rollup merge of rust-lang#74546 - jethrogb:jb/duplicate-attribute-may…

    …be_uninit_extra, r=kennytm
    
    Fix duplicate maybe_uninit_extra attribute
    
    Introduced in rust-lang#72414
    Manishearth committed Jul 20, 2020
    Configuration menu
    Copy the full SHA
    b7357c4 View commit details
    Browse the repository at this point in the history
  16. Rollup merge of rust-lang#74552 - fusion-engineering-forks:stabilize-…

    …tau, r=dtolnay
    
    Stabilize TAU constant.
    
    Closes rust-lang#66770.
    Manishearth committed Jul 20, 2020
    Configuration menu
    Copy the full SHA
    810d322 View commit details
    Browse the repository at this point in the history
  17. Rollup merge of rust-lang#74555 - GuillaumeGomez:important-traits-pop…

    …up, r=Manishearth
    
    Improve "important traits" popup display on mobile
    
    I implemented what @XAMPPRocky suggested in the [internals thread topic](https://internals.rust-lang.org/t/feedback-on-important-traits-rustdoc-feature/12752/18). I can confirm it works nicely.
    
    r? @Manishearth
    
    @Manishearth: By the way: I realized that when you click on the "i", you have to click again to make the popup disappear. Do you want me to extend the popup removal to any click outside the popup?
    Manishearth committed Jul 20, 2020
    Configuration menu
    Copy the full SHA
    963b837 View commit details
    Browse the repository at this point in the history
  18. Rollup merge of rust-lang#74557 - jakubadamw:issue-74539, r=nagisa

    Fix an ICE on an invalid `binding @ ...` in a tuple struct pattern
    
    Fixes rust-lang#74539.
    Manishearth committed Jul 20, 2020
    Configuration menu
    Copy the full SHA
    6bbf82d View commit details
    Browse the repository at this point in the history
  19. Rollup merge of rust-lang#74561 - RalfJung:backtrace, r=alexcrichton

    update backtrace-rs
    
    Hopefully fixes rust-lang#74484
    r? @alexcrichton
    Manishearth committed Jul 20, 2020
    Configuration menu
    Copy the full SHA
    df8d169 View commit details
    Browse the repository at this point in the history