Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add test for fn pointer duplication.#123714

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
bors merged 3 commits intorust-lang:masterfromcjgillot:static-fnptr
Jun 29, 2024
Merged

Conversation

@cjgillot
Copy link
Contributor

I managed to make it fail when removing provenance checks in GVN.

cc#123670

r?@oli-obk

@rustbotrustbot added S-waiting-on-reviewStatus: Awaiting review from the assignee but also interested parties. T-compilerRelevant to the compiler team, which will review and decide on the PR/issue. labelsApr 10, 2024
@@ -0,0 +1,21 @@
//! Verify that we correctly handle fn pointer provenance in MIR optimizations.
//! By asking to inline `static_fnptr::bar`, we have two copies of `static_fnptr::foo`, one in the
//! auxiliary crate and one in the local crate CGU.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

This seems to rely onfoo being automatically marked asinline? Doesinline(never) onfoo make the issue go away?

If yes it'd be better to mark it asinline explicitly to avoid rely on the auto-inline heuristic.

@oli-obkoli-obk added S-waiting-on-authorStatus: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-reviewStatus: Awaiting review from the assignee but also interested parties. labelsMay 2, 2024
@cjgillotcjgillot added S-waiting-on-reviewStatus: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-authorStatus: This is awaiting some action (such as code changes or more information) from the author. labelsJun 2, 2024
@wesleywiser
Copy link
Member

@bors r+ rollup

@bors
Copy link
Collaborator

📌 Commit4c779d7 has been approved bywesleywiser

It is now in thequeue for this repository.

@borsbors added S-waiting-on-borsStatus: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-reviewStatus: Awaiting review from the assignee but also interested parties. labelsJun 27, 2024
GuillaumeGomez added a commit to GuillaumeGomez/rust that referenced this pull requestJun 27, 2024
Add test for fn pointer duplication.I managed to make it fail when removing provenance checks in GVN.ccrust-lang#123670r? `@oli-obk`
bors added a commit to rust-lang-ci/rust that referenced this pull requestJun 27, 2024
…llaumeGomezRollup of 10 pull requestsSuccessful merges: -rust-lang#123237 (Various rustc_codegen_ssa cleanups) -rust-lang#123714 (Add test for fn pointer duplication.) -rust-lang#124091 (Update AST validation module docs) -rust-lang#126835 (Simplifications in match lowering) -rust-lang#126963 (Add basic Serde serialization capabilities to Stable MIR) -rust-lang#127010 (Update browser-ui-test version to `0.18.0`) -rust-lang#127015 (Switch back `non_local_definitions` lint to allow-by-default) -rust-lang#127016 (docs: check if the disambiguator matches its suffix) -rust-lang#127029 (Fix Markdown tables in platform-support.md) -rust-lang#127032 (Enable const casting for `f16` and `f128`)r? `@ghost``@rustbot` modify labels: rollup
matthiaskrgr added a commit to matthiaskrgr/rust that referenced this pull requestJun 27, 2024
Add test for fn pointer duplication.I managed to make it fail when removing provenance checks in GVN.ccrust-lang#123670r? ``@oli-obk``
bors added a commit to rust-lang-ci/rust that referenced this pull requestJun 27, 2024
…iaskrgrRollup of 9 pull requestsSuccessful merges: -rust-lang#123237 (Various rustc_codegen_ssa cleanups) -rust-lang#123714 (Add test for fn pointer duplication.) -rust-lang#124091 (Update AST validation module docs) -rust-lang#126835 (Simplifications in match lowering) -rust-lang#126963 (Add basic Serde serialization capabilities to Stable MIR) -rust-lang#127010 (Update browser-ui-test version to `0.18.0`) -rust-lang#127015 (Switch back `non_local_definitions` lint to allow-by-default) -rust-lang#127029 (Fix Markdown tables in platform-support.md) -rust-lang#127032 (Enable const casting for `f16` and `f128`)r? `@ghost``@rustbot` modify labels: rollup
jhpratt added a commit to jhpratt/rust that referenced this pull requestJun 28, 2024
Add test for fn pointer duplication.I managed to make it fail when removing provenance checks in GVN.ccrust-lang#123670r? ```@oli-obk```
matthiaskrgr added a commit to matthiaskrgr/rust that referenced this pull requestJun 28, 2024
Add test for fn pointer duplication.I managed to make it fail when removing provenance checks in GVN.ccrust-lang#123670r? ````@oli-obk````
bors added a commit to rust-lang-ci/rust that referenced this pull requestJun 28, 2024
…iaskrgrRollup of 8 pull requestsSuccessful merges: -rust-lang#123237 (Various rustc_codegen_ssa cleanups) -rust-lang#123714 (Add test for fn pointer duplication.) -rust-lang#124091 (Update AST validation module docs) -rust-lang#126835 (Simplifications in match lowering) -rust-lang#126963 (Add basic Serde serialization capabilities to Stable MIR) -rust-lang#127015 (Switch back `non_local_definitions` lint to allow-by-default) -rust-lang#127029 (Fix Markdown tables in platform-support.md) -rust-lang#127032 (Enable const casting for `f16` and `f128`)r? `@ghost``@rustbot` modify labels: rollup
bors added a commit to rust-lang-ci/rust that referenced this pull requestJun 28, 2024
…iaskrgrRollup of 8 pull requestsSuccessful merges: -rust-lang#123237 (Various rustc_codegen_ssa cleanups) -rust-lang#123714 (Add test for fn pointer duplication.) -rust-lang#124091 (Update AST validation module docs) -rust-lang#126835 (Simplifications in match lowering) -rust-lang#126963 (Add basic Serde serialization capabilities to Stable MIR) -rust-lang#127015 (Switch back `non_local_definitions` lint to allow-by-default) -rust-lang#127029 (Fix Markdown tables in platform-support.md) -rust-lang#127032 (Enable const casting for `f16` and `f128`)r? `@ghost``@rustbot` modify labels: rollup
GuillaumeGomez added a commit to GuillaumeGomez/rust that referenced this pull requestJun 28, 2024
Add test for fn pointer duplication.I managed to make it fail when removing provenance checks in GVN.ccrust-lang#123670r? `````@oli-obk`````
bors added a commit to rust-lang-ci/rust that referenced this pull requestJun 28, 2024
…iaskrgrRollup of 8 pull requestsSuccessful merges: -rust-lang#123237 (Various rustc_codegen_ssa cleanups) -rust-lang#123714 (Add test for fn pointer duplication.) -rust-lang#124091 (Update AST validation module docs) -rust-lang#126835 (Simplifications in match lowering) -rust-lang#126963 (Add basic Serde serialization capabilities to Stable MIR) -rust-lang#127015 (Switch back `non_local_definitions` lint to allow-by-default) -rust-lang#127029 (Fix Markdown tables in platform-support.md) -rust-lang#127032 (Enable const casting for `f16` and `f128`)r? `@ghost``@rustbot` modify labels: rollup
bors added a commit to rust-lang-ci/rust that referenced this pull requestJun 28, 2024
…llaumeGomezRollup of 10 pull requestsSuccessful merges: -rust-lang#123714 (Add test for fn pointer duplication.) -rust-lang#124091 (Update AST validation module docs) -rust-lang#126963 (Add basic Serde serialization capabilities to Stable MIR) -rust-lang#127015 (Switch back `non_local_definitions` lint to allow-by-default) -rust-lang#127016 (docs: check if the disambiguator matches its suffix) -rust-lang#127029 (Fix Markdown tables in platform-support.md) -rust-lang#127032 (Enable const casting for `f16` and `f128`) -rust-lang#127041 (Migrate `run-make/override-aliased-flags` to `rmake.rs`) -rust-lang#127045 (Rename `super_predicates_of` and similar queries to `explicit_*` to note that they're not elaborated) -rust-lang#127075 (rustc_data_structures: Explicitly check for 64-bit atomics support)r? `@ghost``@rustbot` modify labels: rollup
bors added a commit to rust-lang-ci/rust that referenced this pull requestJun 28, 2024
…iaskrgrRollup of 8 pull requestsSuccessful merges: -rust-lang#123237 (Various rustc_codegen_ssa cleanups) -rust-lang#123714 (Add test for fn pointer duplication.) -rust-lang#124091 (Update AST validation module docs) -rust-lang#126835 (Simplifications in match lowering) -rust-lang#126963 (Add basic Serde serialization capabilities to Stable MIR) -rust-lang#127015 (Switch back `non_local_definitions` lint to allow-by-default) -rust-lang#127029 (Fix Markdown tables in platform-support.md) -rust-lang#127032 (Enable const casting for `f16` and `f128`)r? `@ghost``@rustbot` modify labels: rollup
bors added a commit to rust-lang-ci/rust that referenced this pull requestJun 28, 2024
…iaskrgrRollup of 11 pull requestsSuccessful merges: -rust-lang#123714 (Add test for fn pointer duplication.) -rust-lang#124091 (Update AST validation module docs) -rust-lang#127015 (Switch back `non_local_definitions` lint to allow-by-default) -rust-lang#127016 (docs: check if the disambiguator matches its suffix) -rust-lang#127029 (Fix Markdown tables in platform-support.md) -rust-lang#127032 (Enable const casting for `f16` and `f128`) -rust-lang#127055 (Mark Hasher::finish as #[must_use]) -rust-lang#127068 (Stall computing instance for drop shim until it has no unsubstituted const params) -rust-lang#127070 (add () to the marker_impls macro for ConstParamTy) -rust-lang#127071 (Remove (deprecated & unstable) {to,from}_bits pointer methods) -rust-lang#127078 (Enable full tools and profiler for LoongArch Linux targets)r? `@ghost``@rustbot` modify labels: rollup
bors added a commit to rust-lang-ci/rust that referenced this pull requestJun 29, 2024
…iaskrgrRollup of 11 pull requestsSuccessful merges: -rust-lang#123714 (Add test for fn pointer duplication.) -rust-lang#124091 (Update AST validation module docs) -rust-lang#127015 (Switch back `non_local_definitions` lint to allow-by-default) -rust-lang#127016 (docs: check if the disambiguator matches its suffix) -rust-lang#127029 (Fix Markdown tables in platform-support.md) -rust-lang#127032 (Enable const casting for `f16` and `f128`) -rust-lang#127055 (Mark Hasher::finish as #[must_use]) -rust-lang#127068 (Stall computing instance for drop shim until it has no unsubstituted const params) -rust-lang#127070 (add () to the marker_impls macro for ConstParamTy) -rust-lang#127071 (Remove (deprecated & unstable) {to,from}_bits pointer methods) -rust-lang#127078 (Enable full tools and profiler for LoongArch Linux targets)r? `@ghost``@rustbot` modify labels: rollup
bors added a commit to rust-lang-ci/rust that referenced this pull requestJun 29, 2024
…iaskrgrRollup of 11 pull requestsSuccessful merges: -rust-lang#123714 (Add test for fn pointer duplication.) -rust-lang#124091 (Update AST validation module docs) -rust-lang#127015 (Switch back `non_local_definitions` lint to allow-by-default) -rust-lang#127016 (docs: check if the disambiguator matches its suffix) -rust-lang#127029 (Fix Markdown tables in platform-support.md) -rust-lang#127032 (Enable const casting for `f16` and `f128`) -rust-lang#127055 (Mark Hasher::finish as #[must_use]) -rust-lang#127068 (Stall computing instance for drop shim until it has no unsubstituted const params) -rust-lang#127070 (add () to the marker_impls macro for ConstParamTy) -rust-lang#127071 (Remove (deprecated & unstable) {to,from}_bits pointer methods) -rust-lang#127078 (Enable full tools and profiler for LoongArch Linux targets)r? `@ghost``@rustbot` modify labels: rollup
@borsbors merged commitc96c1bd intorust-lang:masterJun 29, 2024
@rustbotrustbot added this to the1.81.0 milestoneJun 29, 2024
rust-timer added a commit to rust-lang-ci/rust that referenced this pull requestJun 29, 2024
Rollup merge ofrust-lang#123714 - cjgillot:static-fnptr, r=wesleywiserAdd test for fn pointer duplication.I managed to make it fail when removing provenance checks in GVN.ccrust-lang#123670r? ``````@oli-obk``````
@cjgillotcjgillot deleted the static-fnptr branchJune 29, 2024 07:31
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@RalfJungRalfJungRalfJung left review comments

@wesleywiserwesleywiserwesleywiser approved these changes

Assignees

@oli-obkoli-obk

Labels

S-waiting-on-borsStatus: Waiting on bors to run and complete tests. Bors will change the label on completion.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

Projects

None yet

Milestone

1.81.0

Development

Successfully merging this pull request may close these issues.

6 participants

@cjgillot@wesleywiser@bors@RalfJung@oli-obk@rustbot

[8]ページ先頭

©2009-2025 Movatter.jp