-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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 4 pull requests #32628
Rollup of 4 pull requests #32628
Commits on Mar 30, 2016
-
Configuration menu - View commit details
-
Copy full SHA for 6cc449a - Browse repository at this point
Copy the full SHA 6cc449aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3eac647 - Browse repository at this point
Copy the full SHA 3eac647View commit details -
Remove no longer necessary coercions to fn pointer types.
Originally added in 8fe9e4d. Everything appears to build fine without the coercions, so they can presumably be removed.
Configuration menu - View commit details
-
Copy full SHA for 99501e6 - Browse repository at this point
Copy the full SHA 99501e6View commit details -
Configuration menu - View commit details
-
Copy full SHA for b1b3738 - Browse repository at this point
Copy the full SHA b1b3738View commit details -
Put in
-Z continue-parse-after-error
This works by adding a boolean flag, `continue_after_error`, to `syntax::errors::Handler` that can be imperatively set to `true` or `false` via a new `fn set_continue_after_error`. The flag starts off true (since we generally try to recover from compiler errors, and `Handler` is shared across all phases). Then, during the `phase_1_parse_input`, we consult the setting of the `-Z continue-parse-after-error` debug flag to determine whether we should leave the flag set to `true` or should change it to `false`. ---- (We might consider adding a debugflag to do such aborts in other places where we are currently attempting recovery, such as resolve, but I think the parser is the really important case to handle in the face of rust-lang#31994 and the parser bugs of varying degrees that were injected by parse error recovery.)
Configuration menu - View commit details
-
Copy full SHA for 2646663 - Browse repository at this point
Copy the full SHA 2646663View commit details -
fix compile-fail and parse-fail tests by blindly opting back into
parser recovery (so that expected errors match up) I'm opting into parser recovery in all these cases out of expediency, not because the error messages you get with recovery enabled are actually all that usable in all cases listed.
Configuration menu - View commit details
-
Copy full SHA for e1d8ad3 - Browse repository at this point
Copy the full SHA e1d8ad3View commit details -
Rollup merge of rust-lang#32259 - oli-obk:move_const_eval, r=alexcric…
…hton move `const_eval` and `check_match` out of `librustc` into their own crate r? @arielb1
Configuration menu - View commit details
-
Copy full SHA for 9957081 - Browse repository at this point
Copy the full SHA 9957081View commit details -
Rollup merge of rust-lang#32494 - pnkfelix:gate-parser-recovery-via-d…
…ebugflag, r=nrc Gate parser recovery via debugflag Gate parser recovery via debugflag Put in `-Z continue_parse_after_error` This works by adding a method, `fn abort_if_no_parse_recovery`, to the diagnostic handler in `syntax::errors`, and calling it after each error is emitted in the parser. (We might consider adding a debugflag to do such aborts in other places where we are currently attempting recovery, such as resolve, but I think the parser is the really important case to handle in the face of rust-lang#31994 and the parser bugs of varying degrees that were injected by parse error recovery.) r? @nikomatsakis
Configuration menu - View commit details
-
Copy full SHA for 74546e8 - Browse repository at this point
Copy the full SHA 74546e8View commit details -
Rollup merge of rust-lang#32612 - frewsxcv:unnecessary-coercions, r=a…
…lexcrichton Remove no longer necessary coercions to fn pointer types. Originally added in 8fe9e4d. Everything appears to build fine without the coercions, so they can presumably be removed.
Configuration menu - View commit details
-
Copy full SHA for cb5af89 - Browse repository at this point
Copy the full SHA cb5af89View commit details -
Rollup merge of rust-lang#32618 - ProgVal:patch-1, r=steveklabnik
Book: Fix phrasing: “an associated type” → “an object with an associated type”. From what I understood, `graph` is the object from which we create a trait object, and the associated types are `Graph::N` and `Graph::E`.
Configuration menu - View commit details
-
Copy full SHA for 458fae7 - Browse repository at this point
Copy the full SHA 458fae7View commit details