The one line of code here refers to the invocation of String.intern(). To invoke this line of code, several dozen additional lines of code have been written.
This article provides a comprehensive guide on managing out-of-memory issues when compiling large projects with Rust's Cargo.