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

tests: Test that extern "C" fn ptrs lint on slices #130669

Merged
merged 1 commit into from
Sep 22, 2024

Conversation

workingjubilee
Copy link
Member

This seems to have slipped past the improper_ctypes_definitions lint at some point. I found similar tests but not one with this exact combination, so test the semi-unique combination.

Closes #95683

@rustbot
Copy link
Collaborator

rustbot commented Sep 21, 2024

r? @compiler-errors

rustbot has assigned @compiler-errors.
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 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 Sep 21, 2024
@compiler-errors
Copy link
Member

@bors r+ rollup

@bors
Copy link
Contributor

bors commented Sep 21, 2024

📌 Commit cada8b5 has been approved by compiler-errors

It is now in the queue for this repository.

@bors 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-review Status: Awaiting review from the assignee but also interested parties. labels Sep 21, 2024
@rust-log-analyzer

This comment has been minimized.

@compiler-errors
Copy link
Member

@bors r-

gotta update line numbers

@bors bors 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-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Sep 21, 2024
@workingjubilee
Copy link
Member Author

durr.

@workingjubilee
Copy link
Member Author

fixed up.

@bors r=compiler-errors

@bors
Copy link
Contributor

bors commented Sep 21, 2024

📌 Commit e62b5e6 has been approved by compiler-errors

It is now in the queue for this repository.

@bors 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 Sep 21, 2024
workingjubilee added a commit to workingjubilee/rustc that referenced this pull request Sep 22, 2024
…-finely, r=compiler-errors

tests: Test that `extern "C" fn` ptrs lint on slices

This seems to have slipped past the `improper_ctypes_definitions` lint at some point. I found similar tests but not one with this exact combination, so test the semi-unique combination.
workingjubilee added a commit to workingjubilee/rustc that referenced this pull request Sep 22, 2024
…-finely, r=compiler-errors

tests: Test that `extern "C" fn` ptrs lint on slices

This seems to have slipped past the `improper_ctypes_definitions` lint at some point. I found similar tests but not one with this exact combination, so test the semi-unique combination.
@jieyouxu jieyouxu added L-improper_ctypes Lint: improper_ctypes L-improper_ctypes_definitions Lint: improper_ctypes_definitions and removed L-improper_ctypes Lint: improper_ctypes labels Sep 22, 2024
bors added a commit to rust-lang-ci/rust that referenced this pull request Sep 22, 2024
…kingjubilee

Rollup of 5 pull requests

Successful merges:

 - rust-lang#130648 (move enzyme flags from general cargo to rustc-specific cargo)
 - rust-lang#130650 (Fixup Apple target's description strings)
 - rust-lang#130664 (Generate line numbers for non-rust code examples as well)
 - rust-lang#130665 (Prevent Deduplication of `LongRunningWarn`)
 - rust-lang#130669 (tests: Test that `extern "C" fn` ptrs lint on slices)

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit f314db6 into rust-lang:master Sep 22, 2024
6 checks passed
rust-timer added a commit to rust-lang-ci/rust that referenced this pull request Sep 22, 2024
Rollup merge of rust-lang#130669 - workingjubilee:slicing-fnptr-tests-finely, r=compiler-errors

tests: Test that `extern "C" fn` ptrs lint on slices

This seems to have slipped past the `improper_ctypes_definitions` lint at some point. I found similar tests but not one with this exact combination, so test the semi-unique combination.
@rustbot rustbot added this to the 1.83.0 milestone Sep 22, 2024
@workingjubilee workingjubilee deleted the slicing-fnptr-tests-finely branch September 22, 2024 19:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
L-improper_ctypes_definitions Lint: improper_ctypes_definitions 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
Development

Successfully merging this pull request may close these issues.

improper_ctypes lint should cover "C" abi function pointer types.
6 participants