]> git.ipfire.org Git - thirdparty/gcc.git/commit
gccrs: fix: add early return for empty module file
author0xllx0 <github+elle@weathered-steel.dev>
Fri, 3 Oct 2025 03:17:54 +0000 (03:17 +0000)
committerArthur Cohen <arthur.cohen@embecosm.com>
Thu, 30 Oct 2025 20:30:55 +0000 (21:30 +0100)
commitd2f16edd69680b5be924caea5893ec21e3271e5c
treeba236e38907e03b6430d9812126f40d9f1902134
parenta0a19aa3faf9a2f53f014c07cb31c50d725fe2e0
gccrs: fix: add early return for empty module file

Converts an assert into an early return during AST parsing.

Resolves: Rust-GCC/gccrs#4145

gcc/rust/ChangeLog:

* ast/rust-ast.cc (Module::process_file_path): empty module early return

Signed-off-by: Elle Rhumsaa <elle@weathered-steel.dev>
gcc/rust/ast/rust-ast.cc