public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r14-8538] gccrs: resolve: Format if properly
@ 2024-01-30 11:57 Arthur Cohen
  0 siblings, 0 replies; only message in thread
From: Arthur Cohen @ 2024-01-30 11:57 UTC (permalink / raw)
  To: gcc-cvs

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)

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-01-30 11:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-30 11:57 [gcc r14-8538] gccrs: resolve: Format if properly Arthur Cohen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).