diff options
| author | Aaron Hill <aa1ronham@gmail.com> | 2022-07-15 12:22:36 -0500 |
|---|---|---|
| committer | Aaron Hill <aa1ronham@gmail.com> | 2022-07-15 17:47:14 -0500 |
| commit | c7b31d0ac983fdf7693a0029fdb0e16247c6599d (patch) | |
| tree | 8ee17584e23a0a5cd6eecf58994a30b61c29817b /src/test/ui/lint/lint-output-format.rs | |
| parent | 116819f54f062a2f425deac4ec29245038c26613 (diff) | |
| download | rust-c7b31d0ac983fdf7693a0029fdb0e16247c6599d.tar.gz rust-c7b31d0ac983fdf7693a0029fdb0e16247c6599d.zip | |
Correctly handle path stability for 'use tree' items
PR #5956 started checking the stability of path segments.
However, this was not applied to 'use tree' items
(e.g. 'use some::path::{ItemOne, ItemTwo}') due to the way
that we desugar these items in HIR lowering.
This PR modifies 'use tree' lowering to preserve resolution
information, which is needed by stability checking.
Diffstat (limited to 'src/test/ui/lint/lint-output-format.rs')
| -rw-r--r-- | src/test/ui/lint/lint-output-format.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/test/ui/lint/lint-output-format.rs b/src/test/ui/lint/lint-output-format.rs index 169a98c9483..67e8ec8f13b 100644 --- a/src/test/ui/lint/lint-output-format.rs +++ b/src/test/ui/lint/lint-output-format.rs @@ -5,6 +5,7 @@ extern crate lint_output_format; //~ ERROR use of unstable library feature use lint_output_format::{foo, bar}; //~ ERROR use of unstable library feature +//~| ERROR use of unstable library feature fn main() { let _x = foo(); |
