about summary refs log tree commit diff
path: root/compiler/rustc_plugin_impl/src
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2023-02-26 12:04:58 +0100
committerGitHub <noreply@github.com>2023-02-26 12:04:58 +0100
commit19b8685b061402a0b4b459a01eb224726a9a54ed (patch)
tree1e0b4f4f792ed687cee265062be87bc71124e86b /compiler/rustc_plugin_impl/src
parentb27f37da07c8bb49a4c71970a55b5d2ec209bef7 (diff)
parent0f4a7d174e471814faecb94315675dbf00e5063a (diff)
downloadrust-19b8685b061402a0b4b459a01eb224726a9a54ed.tar.gz
rust-19b8685b061402a0b4b459a01eb224726a9a54ed.zip
Rollup merge of #108379 - compiler-errors:hir-error-guaranteed, r=cjgillot
Add `ErrorGuaranteed` to `hir::{Expr,Ty}Kind::Err` variants

First step in making the `Err` variants of `ExprKind` and `TyKind` require an `ErrorGuaranteed` during parsing. Making the corresponding AST versions require `ErrorGuaranteed` is a bit harder, whereas it was pretty easy to do this for HIR, so let's do that first.

The only weird thing about this PR is that `ErrorGuaranteed` is moved to `rustc_span`. This is *certainly* not the right place to put it, but `rustc_hir` cannot depend on `rustc_error` because the latter already depends on the former. Should I just pull out some of the error machinery from `rustc_error` into an even more minimal crate that `rustc_hir` can depend on? Advice would be appreciated.
Diffstat (limited to 'compiler/rustc_plugin_impl/src')
0 files changed, 0 insertions, 0 deletions