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

Closed
wants to merge 16 commits into from
Closed

Commits on May 2, 2016

  1. middle: reset loop labels while visiting closure

    This should fix rust-lang#31754 and follow-up rust-lang#25343.  Before the latter, the
    closure was visited twice in the context of the enclosing fn, which
    made even a single closure with a loop label emit a warning.
    
    With this change, the closure is still visited within the context
    of the main fn (which is intended, since it is not a separate item)
    but resets the found loop labels while being visited.
    
    Fixes: rust-lang#31754
    birkenfeld committed May 2, 2016
    Configuration menu
    Copy the full SHA
    6fed013 View commit details
    Browse the repository at this point in the history

Commits on May 3, 2016

  1. add help on pattern guard

    fix too long column
    
    fix typo of help on pattern guard
    
    one nit
    
    fix compile fail
    mrmiywj committed May 3, 2016
    Configuration menu
    Copy the full SHA
    201d9ed View commit details
    Browse the repository at this point in the history

Commits on May 9, 2016

  1. Add detailed error explanation for E0504

    Removed unnecessary use of threads from E0504
    
    Cleaned up line ending on E0504
    
    Added more examples for E0504
    
    Changed to erroneous code wording
    
    Switched Rc example to thread/Arc example
    
    Added comments describing why errors no longer occur
    cramertj committed May 9, 2016
    Configuration menu
    Copy the full SHA
    38a5338 View commit details
    Browse the repository at this point in the history
  2. doc: Fix tiny typo in vec-alloc.md

    Change `fast an loose` to `fast and loose`.
    briangreenery committed May 9, 2016
    Configuration menu
    Copy the full SHA
    9d2c45d View commit details
    Browse the repository at this point in the history

Commits on May 10, 2016

  1. E0061 typo fix

    cramertj committed May 10, 2016
    Configuration menu
    Copy the full SHA
    d8882e2 View commit details
    Browse the repository at this point in the history
  2. typeck: if a private field exists, also check for a public method

    For example, `Vec::len` is both a field and a method, and usually
    encountering `vec.len` just means that the parens were forgotten.
    
    Fixes: rust-lang#26472
    birkenfeld committed May 10, 2016
    Configuration menu
    Copy the full SHA
    84034d4 View commit details
    Browse the repository at this point in the history
  3. fix DFS for region error reporting

    This was causing terrible error reports, because the algorithm was
    incorrectly identifying the constraints.
    nikomatsakis committed May 10, 2016
    Configuration menu
    Copy the full SHA
    de0906f View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    a5a2f2b View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#33260 - mrmiywj:help-on-pattern-guard, r=gu…

    …illaumegomez
    
    add help on pattern guard
    steveklabnik committed May 10, 2016
    Configuration menu
    Copy the full SHA
    f9966df View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#33342 - birkenfeld:issue-26472, r=jseyfried

    typeck: if a private field exists, also check for a public method
    
    For example, `Vec::len` is both a field and a method, and usually encountering `vec.len` just means that the parens were forgotten.
    
    Fixes: rust-lang#26472
    
    NOTE: I added the parameter `allow_private` to `method::exists` since I don't want to suggest inaccessible methods. For the second case, where only the method exists, I think it would make sense to set it to `false` as well, but I wanted to preserve compatibility for this case.
    steveklabnik committed May 10, 2016
    Configuration menu
    Copy the full SHA
    216f3f4 View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#33345 - birkenfeld:issue-31754, r=pnkfelix

    middle: reset loop labels while visiting closure
    
    This should fix rust-lang#31754 and follow-up rust-lang#25343.  Before the latter, the closure was visited twice in the context of the enclosing fn, which made even a single closure with a loop label emit a warning.
    
    With this change, the closure is still visited within the context of the main fn (which is intended, since it is not a separate item) but resets the found loop labels while being visited.
    
    Fixes: rust-lang#31754
    
    Note: I amended the test file from rust-lang#25343, but I don't know if the original or amended test are effective, since as far as I could see, compiletest's run-pass tests do not check for zero warnings emitted?
    
    /cc @Manishearth
    steveklabnik committed May 10, 2016
    Configuration menu
    Copy the full SHA
    85a464c View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#33386 - cramertj:E0504, r=steveklabnik

    Add detailed error explanation for E0504
    
    Part of rust-lang#32777
    steveklabnik committed May 10, 2016
    Configuration menu
    Copy the full SHA
    dbc1133 View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#33524 - briangreenery:briangreenery-fast-an…

    …d-loose, r=steveklabnik
    
    doc: Fix tiny typo in vec-alloc.md
    
    Change `fast an loose` to `fast and loose`.
    steveklabnik committed May 10, 2016
    Configuration menu
    Copy the full SHA
    efe519b View commit details
    Browse the repository at this point in the history
  10. Rollup merge of rust-lang#33528 - cramertj:E0061typeo, r=jseyfried

    E0061 typo fix
    
    Fixed silly typo.
    steveklabnik committed May 10, 2016
    Configuration menu
    Copy the full SHA
    33dc100 View commit details
    Browse the repository at this point in the history
  11. Rollup merge of rust-lang#33539 - nikomatsakis:static-error, r=pnkfelix

    fix DFS for region error reporting
    
    This was causing terrible error reports, because the algorithm was incorrectly identifying the constraints.
    
    r? @eddyb
    steveklabnik committed May 10, 2016
    Configuration menu
    Copy the full SHA
    10b2e4c View commit details
    Browse the repository at this point in the history
  12. Rollup merge of rust-lang#33542 - GuillaumeGomez:move_since, r=stevek…

    …labnik
    
    Improve "since" tag placement
    
    Continuation of rust-lang#33431.
    
    r? @steveklabnik
    steveklabnik committed May 10, 2016
    Configuration menu
    Copy the full SHA
    b77f2c9 View commit details
    Browse the repository at this point in the history