rust/src/test
bors 8de4b13845 Auto merge of #104679 - dvdhrm:rw/dso, r=petrochenkov
codegen-llvm: never combine DSOLocal and DllImport

Prevent DllImport from being attached to DSOLocal definitions in the LLVM IR. The combination makes no sense, since definitions local to the compilation unit will never be imported from external objects.

Additionally, LLVM will refuse the IR if it encounters the combination (introduced in [1]):

```
  if (GV.hasDLLImportStorageClass())
    Assert(!GV.isDSOLocal(),
           "GlobalValue with DLLImport Storage is dso_local!", &GV);
```

Right now, codegen-llvm will only apply DllImport to constants and rely on call-stubs for functions. Hence, we simply extend the codegen of constants to skip DllImport for any local definitions.

This was discovered when switching the EFI targets to the static relocation model [2]. With this fixed, we can start another attempt at this.

[1] 509132b368
[2] https://github.com/rust-lang/rust/issues/101656
2022-11-30 04:18:15 +00:00
..
assembly fix assembly test on apple 2022-11-19 16:58:02 +01:00
auxiliary
codegen test/codegen: test inter-crate linkage with static relocation 2022-11-29 11:21:16 +01:00
codegen-units Statics used in reachable function's inline asm are reachable 2022-11-28 18:28:05 +01:00
debuginfo Fix pretty-std test 2022-11-27 23:15:55 +01:00
incremental Add empty ConstKind::Abstract 2022-11-25 09:28:43 +00:00
mir-opt Rewrite dest prop. 2022-11-26 18:04:54 -08:00
pretty Rollup merge of #99939 - saethlin:pre-sort-tests, r=thomcc,jackh726 2022-10-24 19:32:25 +09:00
run-make Rollup merge of #104360 - petrochenkov:stabverb, r=TaKO8Ki 2022-11-28 15:42:09 +05:30
run-make-fulldeps run tests on the remote device even when the default address is used 2022-11-17 09:37:41 +01:00
run-pass-valgrind Bless more tests 2022-11-05 18:05:45 +00:00
rustdoc rustdoc: remove fnname CSS class that's styled exactly like fn 2022-11-28 10:51:46 -07:00
rustdoc-gui rustdoc: remove fnname CSS class that's styled exactly like fn 2022-11-28 10:51:46 -07:00
rustdoc-js Add regression test for reexports in search results 2022-10-30 13:58:00 +01:00
rustdoc-js-std
rustdoc-json Rustdoc-Json: Add tests for linking to foreign variants. 2022-11-28 19:34:13 +00:00
rustdoc-ui Rollup merge of #104052 - TaKO8Ki:fix-103997, r=notriddle 2022-11-07 18:35:26 +05:30
ui Rollup merge of #103876 - oli-obk:tait_implications, r=lcnr 2022-11-29 22:43:15 +01:00
ui-fulldeps Improve slug name error 2022-11-21 15:24:51 +01:00
COMPILER_TESTS.md