Reached the recursion limit while instantiating <the type> in pub
functions
#107837
Labels
A-trait-system
Area: Trait system
C-bug
Category: This is a bug.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
This issue was reported in quick-xml repo, but I think, this is a bug in
rustc
. After minification I ended with that code:Used libraries:
I expected to see this happen: this code should compile
Instead, this happened:
Meta
I've tries several compilers (the first I had, then I've updated and checked again):
rustc --version --verbose
:Content of hk_modlinks-59717a86221e1ac9.long-type.txt (
&mut ...128...String
):The strange thing here is that the compilation succeed if I remove
pub
modifier from the function, this is why I think this is a bug inrustc
and not in my code. Moreover, the compiled code never create 128&mut
referencesBacktrace is not generated with
RUST_BACKTRACE=1 cargo build
.The text was updated successfully, but these errors were encountered: