[gcc r14-8538] gccrs: resolve: Format if properly
Arthur Cohen
cohenarthur@gcc.gnu.org
Tue Jan 30 11:57:58 GMT 2024
https://gcc.gnu.org/g:cbd0a9ce03ce3068ccdb1a515962817e242dae46
commit r14-8538-gcbd0a9ce03ce3068ccdb1a515962817e242dae46
Author: Arthur Cohen <arthur.cohen@embecosm.com>
Date: Tue Nov 21 11:13:59 2023 +0100
gccrs: resolve: Format if properly
gcc/rust/ChangeLog:
* resolve/rust-ast-resolve-path.cc (ResolvePath::resolve_path): Format.
Diff:
---
gcc/rust/resolve/rust-ast-resolve-path.cc | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/gcc/rust/resolve/rust-ast-resolve-path.cc b/gcc/rust/resolve/rust-ast-resolve-path.cc
index 9e982d0610e4..56c352e13ea8 100644
--- a/gcc/rust/resolve/rust-ast-resolve-path.cc
+++ b/gcc/rust/resolve/rust-ast-resolve-path.cc
@@ -368,9 +368,7 @@ ResolvePath::resolve_path (AST::SimplePath *expr)
// is_final_segment ? "true" : "false");
if (resolved_node_id == UNKNOWN_NODEID && !is_first_segment
&& is_final_segment && segment.is_lower_self_seg ())
- {
- resolved_node_id = previous_resolved_node_id;
- }
+ resolved_node_id = previous_resolved_node_id;
// final check
if (resolved_node_id == UNKNOWN_NODEID)
More information about the Gcc-cvs
mailing list