Skip to content

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