Skip to content

[E0603] Use of private item outside scope #2597

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

Merged
merged 1 commit into from
Sep 3, 2023

Conversation

MahadMuhammad
Copy link
Contributor

Use of private item outside scope - E0603

  • Use of private item outside scope
  • Updated error message.

gcc/rust/ChangeLog:

* checks/errors/privacy/rust-privacy-reporter.cc (PrivacyReporter::check_for_privacy_violation): Added errorcode & richlocation.

gcc/testsuite/ChangeLog:

* rust/compile/privacy1.rs: Updated comment for dejagnu.
* rust/compile/privacy3.rs: likewise.
* rust/compile/privacy4.rs: likewise.
* rust/compile/privacy5.rs: likewise.

gcc/rust/ChangeLog:

	* checks/errors/privacy/rust-privacy-reporter.cc
	(PrivacyReporter::check_for_privacy_violation):
	Added errorcode & richlocation.

gcc/testsuite/ChangeLog:

	* rust/compile/privacy1.rs: Added errorcode.
	* rust/compile/privacy3.rs: likewise.
	* rust/compile/privacy4.rs: likewise.
	* rust/compile/privacy5.rs: likewise.

Signed-off-by: Muhammad Mahad <[email protected]>
@philberty philberty added this pull request to the merge queue Sep 3, 2023
@philberty philberty added the diagnostic diagnostic static analysis label Sep 3, 2023
@philberty philberty added this to the GCC 14 Stage 3 milestone Sep 3, 2023
Merged via the queue into Rust-GCC:master with commit 45d892b Sep 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
diagnostic diagnostic static analysis
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants