Skip to content
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

Fix privacy access for items in different namespaces #2669

Closed
wants to merge 2 commits into from

Conversation

dme2
Copy link
Contributor

@dme2 dme2 commented Oct 9, 2023

Fix privacy for constant items inside modules (#2636). Also, updated several tests.

dme2 added 2 commits October 8, 2023 21:05
gcc/rust/ChangeLog:

	* checks/errors/privacy/rust-privacy-reporter.cc
	(PrivacyReporter::check_for_privacy_violation):
	Update privacy check function to check for item's privacy inside of modules.

gcc/testsuite/ChangeLog:

	* rust/compile/issue-850.rs: Fix private enum.
	* rust/compile/iterators1.rs: Fix private enum.
	* rust/execute/torture/extern_mod4/modules/mod.rs: Fix private function.
	* rust/execute/torture/iter1.rs: Fix private enum.
	* rust/compile/issue-2636.rs: New test.

Signed-off-by: dave <dave@dmetwo.org>
@philberty
Copy link
Member

This looks abandoned. Please feel free to rebase this and reopen the PR

@philberty philberty closed this Jan 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants