rust/src/test
Pietro Albini a95a6e287a
Rollup merge of #54833 - abonander:issue-54441, r=petrochenkov
make `Parser::parse_foreign_item()` return a foreign item or error

Fixes `Parser::parse_foreign_item()` to follow the convention of `parse_trait_item()` and `parse_impl_item()` in that it *must* parse an item or return an error, and then the caller is responsible for detecting the closing delimiter.

This prevents it from looping endlessly on an unexpected token in `ext/expand.rs` where it was also leaking memory by continually pushing to `Parser::expected_tokens` via `Parser::check_keyword()`.

closes #54441

r? @petrochenkov
cc @dtolnay
2018-10-05 22:33:17 +02:00
..
auxiliary
codegen add codegen test 2018-09-30 17:27:06 +02:00
codegen-units Really make CGU names unique across crates. 2018-09-12 12:46:48 +02:00
compile-fail Move platform dependent output ui tests to compile-fail 2018-10-03 11:46:05 +02:00
compile-fail-fulldeps Merge the proc_macro_ expansion feature gates into a single proc_macro_hygiene gate. 2018-10-02 19:23:54 -07:00
debuginfo make the nil-enum test work again 2018-09-30 17:27:06 +02:00
incremental Improve implicit self mutability suggestions. 2018-10-02 00:35:15 +02:00
incremental-fulldeps Ignore new test on Windows 2018-09-21 10:05:23 -07:00
mir-opt Auto merge of #53438 - matthewjasper:permissive-match-access, r=pnkfelix 2018-09-25 01:04:12 +00:00
parse-fail make Parser::parse_foreign_item() return a foreign item or error 2018-10-05 02:47:57 -07:00
pretty abolish ICE when pretty-printing async block 2018-10-02 23:02:51 -07:00
run-fail Restrict most uses of const_fn to min_const_fn 2018-08-31 08:40:00 +02:00
run-fail-fulldeps mv (mod) codemap source_map 2018-08-19 23:01:00 +02:00
run-make rustc: Continue to tweak "std internal symbols" 2018-08-26 16:34:14 -07:00
run-make-fulldeps don't run the test on macOS 2018-09-26 16:22:52 +02:00
run-pass rename skolemized to placeholder 2018-10-04 11:02:40 -04:00
run-pass-fulldeps Auto merge of #54336 - petrochenkov:preuni, r=alexcrichton 2018-10-05 12:52:53 +00:00
run-pass-valgrind Implement simple codegen for unsized rvalues. 2018-08-19 08:07:33 +09:00
rustdoc Rollup merge of #54577 - QuietMisdreavus:docs-for-procs, r=GuillaumeGomez 2018-09-29 16:46:30 +08:00
rustdoc-js Remove outdated rustdoc PinBox tests 2018-09-18 01:42:27 -07:00
rustdoc-ui add -Zui-testing to rustdoc 2018-09-19 18:39:39 -05:00
rustfix
ui Rollup merge of #54833 - abonander:issue-54441, r=petrochenkov 2018-10-05 22:33:17 +02:00
ui-fulldeps Auto merge of #54336 - petrochenkov:preuni, r=alexcrichton 2018-10-05 12:52:53 +00:00
COMPILER_TESTS.md Link compiler test documentation to rustc-guide 2018-08-10 08:05:48 -06:00