We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9aec5c5 commit d223ba6Copy full SHA for d223ba6
tests/ui/mir/static_fnptr.rs
@@ -1,3 +1,10 @@
1
+//! Verify that we correctly handle fn pointer provenance in MIR optimizations.
2
+//! By asking to inline `static_fnptr::bar`, we have two copies of `static_fnptr::foo`, one in the
3
+//! auxiliary crate and one in the local crate CGU.
4
+//! `baz` must only consider the versions from upstream crate, and not try to compare with the
5
+//! address of the CGU-local copy.
6
+//! Related issue: #123670
7
+
8
//@ run-pass
9
//@ compile-flags:-Cno-prepopulate-passes -Copt-level=0
10
//@ aux-build:static_fnptr.rs
0 commit comments