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 11 pull requests #59293

Merged
merged 26 commits into from
Mar 19, 2019
Merged

Rollup of 11 pull requests #59293

merged 26 commits into from
Mar 19, 2019

Commits on Jan 22, 2019

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

Commits on Feb 3, 2019

  1. Test behaviour

    clarfonthey committed Feb 3, 2019
    Configuration menu
    Copy the full SHA
    ea9e2c4 View commit details
    Browse the repository at this point in the history

Commits on Feb 27, 2019

  1. Configuration menu
    Copy the full SHA
    988b3d5 View commit details
    Browse the repository at this point in the history
  2. Remove copy paste error in char tests

    Co-Authored-By: xfix <konrad@borowski.pw>
    ollie27 and KamilaBorowska committed Feb 27, 2019
    Configuration menu
    Copy the full SHA
    911a633 View commit details
    Browse the repository at this point in the history

Commits on Feb 28, 2019

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

Commits on Mar 5, 2019

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

Commits on Mar 11, 2019

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

Commits on Mar 13, 2019

  1. Fix operator precedence

    estebank committed Mar 13, 2019
    Configuration menu
    Copy the full SHA
    27abd52 View commit details
    Browse the repository at this point in the history
  2. test that wildcard type _ is not duplicated by `type Foo<X> = (X, X…

    …);` and potentially instantiated at different types.
    
    (Updated to reflect changes in diagnostic output and compiletest infrastructure.)
    pnkfelix committed Mar 13, 2019
    Configuration menu
    Copy the full SHA
    4e5692d View commit details
    Browse the repository at this point in the history

Commits on Mar 17, 2019

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

Commits on Mar 18, 2019

  1. Configuration menu
    Copy the full SHA
    698bbe5 View commit details
    Browse the repository at this point in the history
  2. Add todo!() macro

    The use-case of `todo!()` macro is to be a much easier to type
    alternative to `unimplemented!()` macro.
    matklad committed Mar 18, 2019
    Configuration menu
    Copy the full SHA
    9d408d9 View commit details
    Browse the repository at this point in the history
  3. Stabilize refcell_map_split feature

    joshlf committed Mar 18, 2019
    Configuration menu
    Copy the full SHA
    de4be2c View commit details
    Browse the repository at this point in the history

Commits on Mar 19, 2019

  1. Update since annotation for ExactSizeIterator for ToUppercase/Lowercase

    This functionality was added in 1.35.0, not 1.34.0.
    KamilaBorowska committed Mar 19, 2019
    Configuration menu
    Copy the full SHA
    8f261a6 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ab41023 View commit details
    Browse the repository at this point in the history
  3. Rollup merge of rust-lang#56348 - matklad:todo-macro, r=withoutboats

    Add todo!() macro
    
    The primary use-case of `todo!()` macro is to be a much easier to type
    alternative to `unimplemented!()` macro.
    
    EDIT: hide unpopular proposal about re-purposing unimplemented
    
    <details>
    However, instead of just replacing `unimplemented!()`, it gives it a
    more nuanced meaning: a thing which is intentionally left
    unimplemented and which should not be called at runtime. Usually,
    you'd like to prevent such cases statically, but sometimes you, for
    example, have to implement a trait only some methods of which are
    applicable. There are examples in the wild of code doing this thing,
    and in this case, the current message of `unimplemented`, "not *yet*
    implemented" is slightly misleading.
    
    With the addition of TODO, you have three nuanced choices for a
    `!`-returning macro (in addition to a good-old panic we all love):
    
      * todo!()
      * unreachable!()
      * unimplemented!()
    
    Here's a rough guideline what each one means:
    
    - `todo`: use it during development, as a "hole" or placeholder. It
      might be a good idea to add a pre-commit hook which checks that
      `todo` is not accidentally committed.
    
    - `unreachable!()`: use it when your code can statically guarantee
      that some situation can not happen. If you use a library and hit
      `unreachable!()` in the library's code, it's definitely a bug in the
      library. It's OK to have `unreachable!()` in the code base,
      although, if possible, it's better to replace it with
      compiler-verified exhaustive checks.
    
    - `unimplemented!()`: use it when the type checker forces you to
      handle some situation, but there's a contract that a callee must not
      actually call the code. If you use a library and hit
      `unimplemented!()`, it's probably a bug in your code, though
      it *could* be a bug in the library (or library docs) as well. It is
      ok-ish to see an `unimplemented!()` in real code, but it usually
      signifies a clunky, eyebrow-rising API.
    </details>
    Centril committed Mar 19, 2019
    Configuration menu
    Copy the full SHA
    d4dd860 View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#57729 - pnkfelix:issue-55748-pat-types-are-…

    …constraints-on-bindings-too, r=nikomatsakis
    
    extra testing of how NLL handles wildcard type `_`
    
    test that wildcard type `_` is not duplicated by `type Foo<X> = (X, X);` and potentially instantiated at different types when used in type ascriptions in let bindings.
    
    (NLL's handling of this for the type ascription *expression form* is currently broken, or at least differs from what AST-borrowck does. I'll file a separate bug about that. Its not something critical to address since that expression is guarded by `#![feature(type_ascription)]`.)
    
    cc rust-lang#55748
    Centril committed Mar 19, 2019
    Configuration menu
    Copy the full SHA
    c1975db View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#57847 - clarcharr:dbg_no_params, r=Centril

    dbg!() without parameters
    
    Fixes rust-lang#57845.
    Centril committed Mar 19, 2019
    Configuration menu
    Copy the full SHA
    d4ef74b View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#58778 - xfix:exact_size_case_mapping_iter, …

    …r=SimonSapin
    
    Implement ExactSizeIterator for ToLowercase and ToUppercase
    Centril committed Mar 19, 2019
    Configuration menu
    Copy the full SHA
    fff8586 View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#58812 - jonhoo:floor_v_trunc, r=alexcrichton

    Clarify distinction between floor() and trunc()
    
    `floor()` rounds towards `-INF`, `trunc()` rounds towards 0.
    This PR clarifies this in the examples.
    Centril committed Mar 19, 2019
    Configuration menu
    Copy the full SHA
    5abd9c7 View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#58939 - taeguk:fix-doc-about-pin, r=rkruppe

    Fix a tiny error in documentation of std::pin.
    
    `new_unmoved` must be `mut` for passing to `std::mem::swap`.
    Centril committed Mar 19, 2019
    Configuration menu
    Copy the full SHA
    61ff887 View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#59116 - estebank:comma-sugg, r=petrochenkov

    Be more discerning on when to attempt suggesting a comma in a macro invocation
    
    Fix rust-lang#58796.
    Centril committed Mar 19, 2019
    Configuration menu
    Copy the full SHA
    8ebe2ac View commit details
    Browse the repository at this point in the history
  10. Rollup merge of rust-lang#59252 - lcnr:mailmap, r=Centril

    add self to mailmap
    Centril committed Mar 19, 2019
    Configuration menu
    Copy the full SHA
    05e8051 View commit details
    Browse the repository at this point in the history
  11. Rollup merge of rust-lang#59275 - regexident:docs-self, r=joshtriplett

    Replaced self-reflective explicit types with clearer `Self` or `Self::…` in stdlib docs
    
    Many docs examples use explicit types instead of the semantically more clear `Self`/`Self::…` aliases.
    
    By using the latter it's clear that the value's type depends on either `Self`, or an associated type of `Self`, instead of some constant type. It's also more consistent (and I'd argue correct), as the current docs aren't really consistent in this, as can be seen from the diff.
    
    This is a best effort PR, as I was basically going through the docs manually, looking for offending examples. I'm sure I missed a few. Gotta start somewhere.
    Centril committed Mar 19, 2019
    Configuration menu
    Copy the full SHA
    1ec1c5d View commit details
    Browse the repository at this point in the history
  12. Rollup merge of rust-lang#59280 - joshlf:sandbox/joshlf/stabilize-ref…

    …cell-map-split, r=cramertj,Centril
    
    Stabilize refcell_map_split feature
    
    Closes rust-lang#51476.
    Centril committed Mar 19, 2019
    Configuration menu
    Copy the full SHA
    a3581ac View commit details
    Browse the repository at this point in the history
  13. Rollup merge of rust-lang#59290 - oli-obk:trivial_move_prop, r=davidtwco

    Run branch cleanup after copy prop
    
    This is preliminary work for rust-lang#59288 (comment) which gets rid of `if` in the HIR.
    
    cc @rust-lang/wg-mir-opt 	@Centril
    Centril committed Mar 19, 2019
    Configuration menu
    Copy the full SHA
    7f7829f View commit details
    Browse the repository at this point in the history