about summary refs log tree commit diff
path: root/tests/codegen/patchable-function-entry/patchable-function-entry-no-flag.rs
diff options
context:
space:
mode:
authorChayim Refael Friedman <chayimfr@gmail.com>2024-12-22 18:07:27 +0200
committerChayim Refael Friedman <chayimfr@gmail.com>2024-12-24 18:58:52 +0200
commit9d44ee13129fe77067ccc9d44d42a0be7f2a41e8 (patch)
treeb77942a98ddc907333c18941291f0ed8f28a3a86 /tests/codegen/patchable-function-entry/patchable-function-entry-no-flag.rs
parent932a6d366b531ecedf5cf3eeb488ce2dafb46bc3 (diff)
downloadrust-9d44ee13129fe77067ccc9d44d42a0be7f2a41e8.tar.gz
rust-9d44ee13129fe77067ccc9d44d42a0be7f2a41e8.zip
Unify handling of path diagnostics in hir-ty
Because it was a mess.

Previously, pretty much you had to handle all path diagnostics manually: remember to check for them and handle them. Now, we wrap the resolver in `TyLoweringContext` and ensure proper error reporting.

This means that you don't have to worry about them: most of the things are handled automatically, and things that cannot will create a compile-time error (forcing you top `drop(ty_lowering_context);`) if forgotten, instead of silently dropping the diagnostics.

The real place for error reporting is in the hir-def resolver, because there are other things resolving, both in hir-ty and in hir-def, and they all need to ensure proper diagnostics. But this is a good start, and future compatible.

This commit also ensures proper path diagnostics for value/pattern paths, which is why it's marked "feat".
Diffstat (limited to 'tests/codegen/patchable-function-entry/patchable-function-entry-no-flag.rs')
0 files changed, 0 insertions, 0 deletions