Skip to content
This repository has been archived by the owner on Dec 29, 2022. It is now read-only.

Remove crate_visibility_modifier #1248

Closed
alexheretic opened this issue Jan 21, 2019 · 6 comments
Closed

Remove crate_visibility_modifier #1248

alexheretic opened this issue Jan 21, 2019 · 6 comments

Comments

@alexheretic
Copy link
Member

As I understand it; the ship has sailed on crate visibility. We should remove these preferring pub(crate) usage instead.

Implementation

Get rid of this

#![feature(crate_visibility_modifier)] // needed for edition 2018

Fix all the errors

crate fn with_manifest(manifest_path: &Path) -> CargoPlan {

@alexheretic
Copy link
Member Author

@Xanewok if you agree with this, it would be a good starting issue.

@Xanewok
Copy link
Member

Xanewok commented Jan 22, 2019

Yeah, sounds good!

@h-michael
Copy link
Contributor

@alexcrichton
I try this.
There's something I'd like to ask you.
Why should we remove this?

@alexheretic
Copy link
Member Author

@h-michael when this was put in it was pre edition 2018 and it looked like crate fn foo style visibility would be released with the edition. This did not turn out to be the case.

Generally we should prefer to use idiomatic or future-idiomatic rust, this syntax is no longer either.

bors added a commit that referenced this issue Jan 26, 2019
 Remove crate_visibility_modifier feature

related with #1248
@coffeenotfound
Copy link

What?? Why?

@griffi-gh
Copy link

What?? Why?

pub(crate) is better and does the same thing without introducing an extra keyword

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants