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

Merged
merged 22 commits into from
Apr 30, 2018
Merged

Rollup of 7 pull requests #50345

merged 22 commits into from
Apr 30, 2018

Commits on Apr 25, 2018

  1. Make Vec::new const

    mark-i-m committed Apr 25, 2018
    Configuration menu
    Copy the full SHA
    256096d View commit details
    Browse the repository at this point in the history
  2. make RawVec::empty const

    mark-i-m committed Apr 25, 2018
    Configuration menu
    Copy the full SHA
    a2105b8 View commit details
    Browse the repository at this point in the history

Commits on Apr 26, 2018

  1. make Vec::new const :P

    mark-i-m committed Apr 26, 2018
    Configuration menu
    Copy the full SHA
    20ef0e0 View commit details
    Browse the repository at this point in the history

Commits on Apr 27, 2018

  1. not insta-stable

    mark-i-m committed Apr 27, 2018
    Configuration menu
    Copy the full SHA
    c122b3a View commit details
    Browse the repository at this point in the history

Commits on Apr 29, 2018

  1. feature on test

    mark-i-m committed Apr 29, 2018
    Configuration menu
    Copy the full SHA
    0212e02 View commit details
    Browse the repository at this point in the history
  2. Add more links in panic docs

    Pazzaz committed Apr 29, 2018
    Configuration menu
    Copy the full SHA
    368fe37 View commit details
    Browse the repository at this point in the history
  3. Fix some broken links in docs.

    ehuss committed Apr 29, 2018
    Configuration menu
    Copy the full SHA
    269d279 View commit details
    Browse the repository at this point in the history
  4. use const trick

    mark-i-m committed Apr 29, 2018
    Configuration menu
    Copy the full SHA
    e5280e4 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    0a6e91b View commit details
    Browse the repository at this point in the history
  6. heh, logic is hard

    mark-i-m committed Apr 29, 2018
    Configuration menu
    Copy the full SHA
    f9f9923 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    cc53db8 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    8e8fe90 View commit details
    Browse the repository at this point in the history

Commits on Apr 30, 2018

  1. Configuration menu
    Copy the full SHA
    2eb8343 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    bd4ebf2 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    21941c8 View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#50233 - mark-i-m:const_vec, r=kennytm

    Make `Vec::new` a `const fn`
    
    `RawVec::empty/_in` are a hack. They're there because `if size_of::<T> == 0 { !0 } else { 0 }` is not allowed in `const` yet. However, because `RawVec` is unstable, the `empty/empty_in` constructors can be removed when rust-lang#49146 is done...
    kennytm committed Apr 30, 2018
    Configuration menu
    Copy the full SHA
    b88c152 View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#50312 - Pazzaz:master, r=GuillaumeGomez

    Add more links in panic docs
    
    Fixes rust-lang#48695 by adding a link to `AssertUnwindSafe`. Also added some other links in the module's docs to make things clearer.
    kennytm committed Apr 30, 2018
    Configuration menu
    Copy the full SHA
    1308d99 View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#50316 - ehuss:fix-doc-links, r=frewsxcv

    Fix some broken links in docs.
    kennytm committed Apr 30, 2018
    Configuration menu
    Copy the full SHA
    b239293 View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#50325 - petrochenkov:pmgate, r=alexcrichton

    Add a few more tests for proc macro feature gating
    kennytm committed Apr 30, 2018
    Configuration menu
    Copy the full SHA
    30c990b View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#50327 - varkor:match-unused-struct-field, r…

    …=estebank
    
    Display correct unused field suggestion for nested struct patterns
    
    Extends rust-lang#47922 by checking more sophisticated patterns (e.g. references, slices, etc.).
    Before:
    ```
    warning: unused variable: `bar`
      --> src/main.rs:37:21
       |
    37 |         &Foo::Bar { bar } => true,
       |                     ^^^ help: consider using `_bar` instead
       |
       = note: #[warn(unused_variables)] on by default
    ```
    After:
    ```
    warning: unused variable: `bar`
      --> src/main.rs:37:21
       |
    37 |         &Foo::Bar { bar } => true,
       |                     ^^^ help: try ignoring the field: `bar: _`
       |
       = note: #[warn(unused_variables)] on by default
    ```
    
    Fixes rust-lang#50303.
    
    r? @estebank
    kennytm committed Apr 30, 2018
    Configuration menu
    Copy the full SHA
    cbbdf99 View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#50330 - japaric:used, r=nagisa

    check that #[used] is used only on statics
    
    this attribute has no effect on other items. This makes the implementation match what's described in the RFC.
    
    cc rust-lang#40289
    
    r? @nagisa
    kennytm committed Apr 30, 2018
    Configuration menu
    Copy the full SHA
    909ba8a View commit details
    Browse the repository at this point in the history
  10. Rollup merge of rust-lang#50344 - SimonSapin:cargo, r=alexcrichton

    Update Cargo to 2018-04-28 122fd5be5201913d42e219e132d6569493583bca
    kennytm committed Apr 30, 2018
    Configuration menu
    Copy the full SHA
    6166f20 View commit details
    Browse the repository at this point in the history