about summary refs log tree commit diff
path: root/src/test/incremental/thinlto
diff options
context:
space:
mode:
authorkennytm <kennytm@gmail.com>2018-01-13 02:26:24 +0800
committerGitHub <noreply@github.com>2018-01-13 02:26:24 +0800
commitb35cb1ee93d50313abd14baab5de055f372507cd (patch)
tree03a11f4fd5a49cb1b1138fd6a2c7cfcdf9541cbb /src/test/incremental/thinlto
parent30a35164ceb4d50c2d9f3c5248a0883cdca9a4ac (diff)
parent9991fdf17a21d10df35af5a6346998de672a390e (diff)
downloadrust-b35cb1ee93d50313abd14baab5de055f372507cd.tar.gz
rust-b35cb1ee93d50313abd14baab5de055f372507cd.zip
Rollup merge of #47081 - pietroalbini:fix-nested-tree-dump, r=nrc
Fix nested imports not included in the save_analysis output

This PR fixes #46823.

The bug was caused by the old access level checking code, which checked against the root UseTree even for nested trees. The problem with that is, for nested trees the root is lowered as an empty `ListStem`, which is not reachable by definition. The new code computes the access level with each tree's own ID, and with the root tree's visibility.

I tested this manually and it works, but I'm not really satisfied with that. I looked at the existing tests though, and no one checked for the save_analysis output as far as I can see. How should I proceed with that? I think having a test about this would be really nice.
Diffstat (limited to 'src/test/incremental/thinlto')
0 files changed, 0 insertions, 0 deletions