Uh oh!
There was an error while loading. Please reload this page.
vis note for no pub reexports glob import - #115993
Conversation
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as resolved.
This comment was marked as resolved.
petrochenkov
commented
Sep 21, 2023
Minimized reproduction: mod m {pub(crate)typeA = u8;}pubuse m::*;// warning: glob import doesn't reexport anything because no candidate is public enoughfnmain(){let _:A;}This warning uses a wrong model of glob import's behavior. |
petrochenkov
commented
Sep 21, 2023
Sigh, turns out this was the right model of glob import's behavior, and for globs we produced the same error as for single imports in the same case. |
On closer look, the lint currently works as expected, the change in this PR is not correct. The only problem is that it is not really an unused imports lint. => Let me check if there's any more appropriate category for lint than |
Yeah, besides introducing a new lint name, which I'm hesitant to do, the only plausible candidates are Let's keep it |
bvanjoi
commented
Oct 8, 2023
We cannot obtain concrete information (such as |
petrochenkov
commented
Oct 8, 2023
Printing whatever is available from |
This comment was marked as resolved.
This comment was marked as resolved.
report `unused_import` for empty reexports even it is pub Fixesrust-lang#116032 An easy fix. r? `@petrochenkov` (Discovered this issue while reviewing rust-lang#115993.)
report `unused_import` for empty reexports even it is pub Fixesrust-lang#116032 An easy fix. r? `@petrochenkov` (Discovered this issue while reviewing rust-lang#115993.)
report `unused_import` for empty reexports even it is pub Fixesrust-lang#116032 An easy fix. r? `@petrochenkov` (Discovered this issue while reviewing rust-lang#115993.)
report `unused_import` for empty reexports even it is pub Fixesrust-lang#116032 An easy fix. r? `@petrochenkov` (Discovered this issue while reviewing rust-lang#115993.)
report `unused_import` for empty reexports even it is pub Fixesrust-lang#116032 An easy fix. r? `@petrochenkov` (Discovered this issue while reviewing rust-lang#115993.)
bvanjoi
commented
Oct 28, 2023
I have postponed this lint report until the privacy check in order to print the maximum visibility information. |
Uh oh!
There was an error while loading. Please reload this page.
report `unused_import` for empty reexports even it is pub Fixesrust-lang#116032 An easy fix. r? `@petrochenkov` (Discovered this issue while reviewing rust-lang#115993.)
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
96e0a95 to
6521251Compare3f52b4c to
244dd83Comparebvanjoi
commented
Nov 30, 2023
ci is green. @rustbot ready |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
This comment has been minimized.
This comment has been minimized.
bvanjoi
commented
Dec 1, 2023
@rustbot ready |
petrochenkov
commented
Dec 1, 2023
@bors r+ |
bors
commented
Dec 1, 2023
bors
commented
Dec 1, 2023
bors
commented
Dec 1, 2023
☀️ Test successful - checks-actions |
rust-timer
commented
Dec 1, 2023
Finished benchmarking commit (64d7e0d): comparison URL. Overall result: no relevant changes - no action needed@rustbot label: -perf-regression Instruction countThis benchmark run did not return any relevant results for this metric. Max RSS (memory usage)ResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
CyclesThis benchmark run did not return any relevant results for this metric. Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 672.331s -> 672.427s (0.01%) |
report `unused_import` for empty reexports even it is pub Fixesrust-lang#116032 An easy fix. r? `@petrochenkov` (Discovered this issue while reviewing rust-lang#115993.)
Fixes#115966
Only trigger the
unused_importlint when it's not being used.r? @petrochenkov