1

Only inspect user-written predicates for privacy concerns by oli-obk · Pull Requ...

 3 weeks ago
source link: https://github.com/rust-lang/rust/pull/123377
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Only inspect user-written predicates for privacy concerns #123377

Conversation

Contributor

fixes #123288

Previously we looked at the elaborated predicates, which, due to adding various bounds on fields, end up requiring trivially true bounds. But these bounds can contain private types, which the privacy visitor then found and errored about.

oli-obk

added the beta-nominated Nominated for backporting to the compiler in the beta channel. label

Apr 2, 2024

Collaborator

r? @davidtwco

rustbot has assigned @davidtwco.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

rustbot

added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

labels

Apr 2, 2024

Member

@compiler-errors compiler-errors

left a comment

What predicate ends up mentioning a private type? Specifically, what does Foo have to do with T::Assoc?

due to adding various bounds on fields

I think it would be helpful if you explained what bounds are being added specifically, and why that's problematic.

compiler-errors

added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author.

and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.

labels

Apr 3, 2024

Contributor

Author

Explained the test and its problematic bounds.

Thanks for the explanation. I didn't understand it had to do w/ substituted + implied bounds.

@bors r+

Contributor

📌 Commit fd2f6fc has been approved by compiler-errors

It is now in the queue for this repository.

bors

added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.

and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author.

labels

Apr 4, 2024

Contributor

Author

@bors r=compiler-errors

Contributor

📌 Commit 83bd12c has been approved by compiler-errors

It is now in the queue for this repository.

Member

@bors p=1

Fixes P-high issue

Contributor

⌛ Testing commit 83bd12c with merge 0fd5712...

Contributor

☀️ Test successful - checks-actions
Approved by: compiler-errors
Pushing 0fd5712 to master...

bors

added the merged-by-bors This PR was explicitly merged by bors. label

Apr 4, 2024

bors

merged commit 0fd5712 into

rust-lang:master

Apr 4, 2024

12 checks passed

rustbot

added this to the 1.79.0 milestone

Apr 4, 2024

Collaborator

Finished benchmarking commit (0fd5712): comparison URL.

Overall result: ✅ improvements - no action needed

@rustbot label: -perf-regression

Instruction count

This is a highly reliable metric that was used to determine the overall result at the top of this comment.

mean range count
Regressions ❌
(primary)
- - 0
Regressions ❌
(secondary)
- - 0
Improvements ✅
(primary)
-0.4% [-0.4%, -0.4%] 1
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) -0.4% [-0.4%, -0.4%] 1

Max RSS (memory usage)

Results

Cycles

Results

Binary size

This benchmark run did not return any relevant results for this metric.

Bootstrap: 669.066s -> 670.684s (0.24%)
Artifact size: 318.07 MiB -> 318.06 MiB (-0.00%)

Oneirical

added a commit to Oneirical/rust that referenced this pull request

Apr 6, 2024

Contributor

Beta backport accepted as per compiler team on Zulip. A backport PR will be authored by the release team at the end of the current development cycle.

@rustbot label +beta-accepted

rustbot

added the beta-accepted Accepted for backporting to the compiler in the beta channel. label

Apr 11, 2024

cuviper

removed the beta-nominated Nominated for backporting to the compiler in the beta channel. label

Apr 11, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

pnkfelix

pnkfelix left review comments

compiler-errors

compiler-errors requested changes
Labels
beta-accepted Accepted for backporting to the compiler in the beta channel. merged-by-bors This PR was explicitly merged by bors. S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects

None yet

Milestone

1.78.0

Development

Successfully merging this pull request may close these issues.

regression: type is now private?

10 participants

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK