rust/src/test/ui/cross-crate
Tomasz Miąsko eaddc8febd Reachable statics have reachable initializers
Static initializer can read other statics. Initializers are evaluated at
compile time, and so their content could become inlined into another
crate. Ensure that initializers of reachable statics are also reachable.

Previously, when an item incorrectly considered to be unreachable was
reached from another crate an attempt would be made to codegen it. The
attempt could fail with an ICE (in the case MIR wasn't available to do
so) in some circumstances the attempt could also succeed resulting in
a local codegen of non-local items, including static ones.
2021-04-25 00:00:00 +00:00
..
auxiliary Reachable statics have reachable initializers 2021-04-25 00:00:00 +00:00
issue-64872 ui test formulation of regression test for issue 64872. 2019-11-01 15:06:21 +01:00
cci_borrow.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
cci_capture_clause.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
cci_impl_exe.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
cci_iter_exe.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
cci_nested_exe.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
cci_no_inline_exe.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
cross-crate-const-pat.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
cross-crate-newtype-struct-pat.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
moves-based-on-type-cross-crate.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
reexported-static-methods-cross-crate.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
static-array-across-crate.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
static-init.rs Reachable statics have reachable initializers 2021-04-25 00:00:00 +00:00
xcrate-address-insignificant.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
xcrate-associated-type-defaults.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
xcrate-static-addresses.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
xcrate-trait-lifetime-param.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
xcrate-unit-struct.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
xcrate_generic_fn_nested_return.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00