cognitive-engineering-lab / aquascope

Interactive visualizations of Rust at compile-time and run-time
https://cognitive-engineering-lab.github.io/aquascope/
MIT License
1.94k stars 44 forks source link

Add support for references to unnamed data #119

Open willcrichton opened 11 months ago

willcrichton commented 11 months ago

Example:

fn foo(s: &str) {
  println!("{s}");
}

fn main() {
  foo(&String::from("Hello world"));
}

Currently this fails because the anonymous string is never discovered as a named local.