rustc segmentation fault with circular module #97589
Labels
C-bug
Category: This is a bug.
E-help-wanted
Call for participation: Help is requested to fix this issue.
I-crash
Issue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
The rust compiler segfaults when using the path attribute
#[path = "this_file.rs"]
pointing to itself with an inner line documentation comment in the file.Steps to reproduce
Install this version of rust on linux:
Create the following file structure:
lib.rs
:recursive.rs
:And compiling
lib.rs
will cause the segfault:rustc lib.rs
Notes
pub mod recursive
inlib.rs
lib.rs
containing a circular module declaration to itself, rather requires another fileThe text was updated successfully, but these errors were encountered: