-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Fix some pub use privacy errors and a bit of resolve refactoring #23400
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
// Make all tests public so we can call them from outside | ||
// the module (note that the tests are re-exported and must | ||
// be made public themselves to avoid privacy errors). | ||
let mut result = (*i).clone(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're never supposed to clone AST nodes if you own them (can we make specific impls of Clone
warn/error?), here's what you can do instead:
i.map(|mut i| { i.vis = ast::Public; i })
r=me with nits fixed - are there really no issues closed by this? |
#23266 is closed by this (see the comment on the second commit) |
@bors: r=eddyb |
r? @eddyb