mirror of https://github.com/rust-lang/rust.git
8fd1df8c5f
Make ErrorGuaranteed discoverable outside types, consts, and lifetimes types like `PatKind` could contain `ErrorGuaranteed`, but not return them via `tainted_by_errors` or `error_reported` (see https://github.com/rust-lang/rust/pull/127687#discussion_r1679027883). Now this happens, but it's a bit fragile as you can see with the `TypeSuperVisitable for Ty` impl. We will catch any problems around Ty, Region or Const at runtime with an assert, and everything using derives will not have such issues, as it will just invoke the `TypeVisitable for ErrorGuaranteed` impl |
||
---|---|---|
.. | ||
src | ||
Cargo.toml | ||
README.md | ||
messages.ftl |
README.md
For more information about how rustc works, see the rustc dev guide.