privacy: Rename "accessibility levels" to "effective visibilities"#102233
privacy: Rename "accessibility levels" to "effective visibilities"#102233bors merged 1 commit intorust-lang:masterfrom
Conversation
|
r? @jackh726 (rust-highfive has picked a reviewer for you, use r? to override) |
|
Some changes occurred in src/tools/clippy cc @rust-lang/clippy |
|
cc @Bryanskiy |
This comment was marked as resolved.
This comment was marked as resolved.
|
How about |
To avoid confusing effective visibilities with "primitive"/"basic" As for |
|
I see. Maybe |
|
Ping @jackh726, it's been almost a month. |
|
@bors r+ |
privacy: Rename "accessibility levels" to "effective visibilities" And a couple of other naming and comment tweaks. Related to rust-lang#48054 For `enum Level` I initially used naming `enum EffectiveVisibilityLevel`, but it was too long and inconvenient because it's used pretty often. So I shortened it to just `Level`, if it needs to be used from some context where this name would be ambiguous, then it can be imported with renaming like `use rustc_middle::privacy::Level as EffVisLevel` or something.
This comment was marked as resolved.
This comment was marked as resolved.
|
@bors r=jackh726 |
|
📌 Commit fba05d139d8641e4b955dc2659820229e21f2f09 has been approved by It is now in the queue for this repository. |
This comment was marked as resolved.
This comment was marked as resolved.
And a couple of other naming tweaks Related to rust-lang#48054
|
@bors r=jackh726 |
|
@bors rollup=iffy |
|
Not sure why this PR was marked as iffy, it can be rolled up. |
|
yeh it was marked as iffy because of the chance of merge conflicts :P |
|
☀️ Test successful - checks-actions |
|
Finished benchmarking commit (33b55ac): comparison URL. Overall result: ✅ improvements - no action needed@rustbot label: -perf-regression Instruction countThis is a highly reliable metric that was used to determine the overall result at the top of this comment.
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.
CyclesResultsThis 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.
|
|
This PR only contains renamings, so it's certainly noise. |
privacy: Rename "accessibility levels" to "effective visibilities" And a couple of other naming and comment tweaks. Related to rust-lang#48054 For `enum Level` I initially used naming `enum EffectiveVisibilityLevel`, but it was too long and inconvenient because it's used pretty often. So I shortened it to just `Level`, if it needs to be used from some context where this name would be ambiguous, then it can be imported with renaming like `use rustc_middle::privacy::Level as EffVisLevel` or something.
privacy: Rename "accessibility levels" to "effective visibilities" And a couple of other naming and comment tweaks. Related to rust-lang#48054 For `enum Level` I initially used naming `enum EffectiveVisibilityLevel`, but it was too long and inconvenient because it's used pretty often. So I shortened it to just `Level`, if it needs to be used from some context where this name would be ambiguous, then it can be imported with renaming like `use rustc_middle::privacy::Level as EffVisLevel` or something.

And a couple of other naming and comment tweaks.
Related to #48054
For
enum LevelI initially used namingenum EffectiveVisibilityLevel, but it was too long and inconvenient because it's used pretty often.So I shortened it to just
Level, if it needs to be used from some context where this name would be ambiguous, then it can be imported with renaming likeuse rustc_middle::privacy::Level as EffVisLevelor something.