aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/hir/rust-hir-dump.cc
diff options
context:
space:
mode:
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>2023-08-28 10:54:12 +0200
committerP-E-P <32375388+P-E-P@users.noreply.github.com>2023-09-05 14:05:36 +0000
commitf1527eff1e1387a19fe7db115f7157962780d72c (patch)
tree58e582b17e8fca5609cd897342ab15cdc9c74c52 /gcc/rust/hir/rust-hir-dump.cc
parent63af481671a78f3da748646c5939f3a82f58bb01 (diff)
downloadgcc-f1527eff1e1387a19fe7db115f7157962780d72c.zip
gcc-f1527eff1e1387a19fe7db115f7157962780d72c.tar.gz
gcc-f1527eff1e1387a19fe7db115f7157962780d72c.tar.bz2
resolver: Refactor assertion
Change the condition with rust_unreachable to an assertion. This will keep the code clean and concise. Some styling issues appeared during review, this commit make the code more readable. gcc/rust/ChangeLog: * resolve/rust-toplevel-name-resolver-2.0.cc (TopLevel::visit): Change to assertion. * util/rust-hir-map.cc (Mappings::lookup_derive_proc_macros): Add empty line. (Mappings::lookup_bang_proc_macros): Likewise. (Mappings::lookup_attribute_proc_macros): Likewise. Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Diffstat (limited to 'gcc/rust/hir/rust-hir-dump.cc')
0 files changed, 0 insertions, 0 deletions