summaryrefslogtreecommitdiff
path: root/tests/rustdoc-js-std/parser-errors.js
diff options
context:
space:
mode:
authorDavid Lattimore <dvdlttmr@gmail.com>2023-03-21 21:48:03 +1100
committerDavid Lattimore <dvdlttmr@gmail.com>2023-04-11 11:07:48 +1000
commita6292676eb412d8239b308cfd1660aa75623bf5b (patch)
treeed8daa1d079b24605de44a1cd3b2c4ea7b18236d /tests/rustdoc-js-std/parser-errors.js
parent7cd6f55323c15c9e8eed6361777d04e33ba7c429 (diff)
downloadrust-a6292676eb412d8239b308cfd1660aa75623bf5b.tar.gz
Preserve argument indexes when inlining MIR
We store argument indexes on VarDebugInfo. Unlike the previous method of relying on the variable index to know whether a variable is an argument, this survives MIR inlining. We also no longer check if var.source_info.scope is the outermost scope. When a function gets inlined, the arguments to the inner function will no longer be in the outermost scope. What we care about though is whether they were in the outermost scope prior to inlining, which we know by whether we assigned an argument index.
Diffstat (limited to 'tests/rustdoc-js-std/parser-errors.js')
0 files changed, 0 insertions, 0 deletions