rust/compiler/rustc_ast/src
Matthias Krüger b9f7197ab3
Rollup merge of #91519 - petrochenkov:cratexp2, r=Aaron1011
ast: Avoid aborts on fatal errors thrown from mutable AST visitor

Set the node to some dummy value and rethrow the error instead.

When using the old aborting `visit_clobber` in `InvocationCollector::visit_crate` the next tests abort due to fatal errors:
```
ui\modules\path-invalid-form.rs
ui\modules\path-macro.rs
ui\modules\path-no-file-name.rs
ui\parser\issues\issue-5806.rs
ui\parser\mod_file_with_path_attr.rs
```

Follow up to https://github.com/rust-lang/rust/pull/91313.
2021-12-30 13:12:33 +01:00
..
ast mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
attr rustc_span: Ident::invalid -> Ident::empty 2021-10-17 23:20:30 +03:00
expand Make allocator_kind a query. 2021-06-20 11:52:51 +02:00
util Remove unnecessary sigils around Symbol::as_str() calls. 2021-12-15 17:32:14 +11:00
ast.rs remove feature gate and cleanup code 2021-12-10 19:20:31 +00:00
ast_like.rs expand: Turn ast::Crate into a first class expansion target 2021-11-28 15:48:55 +08:00
entry.rs Fix ICE when main is declared in an extern block 2021-06-09 23:14:02 -04:00
lib.rs Stabilize iter::zip. 2021-12-14 18:50:31 -04:00
mut_visit.rs Rollup merge of #91519 - petrochenkov:cratexp2, r=Aaron1011 2021-12-30 13:12:33 +01:00
node_id.rs Use LocalExpnId where possible. 2021-07-17 19:41:02 +02:00
ptr.rs Remove box syntax from rustc_ast 2021-08-18 09:25:26 +02:00
token.rs Use TokenKind::similar_tokens() 2021-10-04 22:13:00 +02:00
tokenstream.rs fix: inner attribute followed by outer attribute causing ICE 2021-10-25 17:31:27 +02:00
visit.rs expand: Turn ast::Crate into a first class expansion target 2021-11-28 15:48:55 +08:00