about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/llvm_util.rs
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2023-11-08 17:14:36 +0100
committerGitHub <noreply@github.com>2023-11-08 17:14:36 +0100
commit5d00a5d9361a3d1bea6cd94ee62290d6e5ace2a3 (patch)
tree81b3dc2c8bfb7f258d4524aa7cbc1a42dfb0a154 /compiler/rustc_codegen_llvm/src/llvm_util.rs
parentc828371179cec8740f98218cf02928eaad6fd489 (diff)
parent434b69a1d670fb0b18a4dd121db0a445d74d34d4 (diff)
downloadrust-5d00a5d9361a3d1bea6cd94ee62290d6e5ace2a3.tar.gz
rust-5d00a5d9361a3d1bea6cd94ee62290d6e5ace2a3.zip
Rollup merge of #117679 - aDotInTheVoid:yes-core, r=GuillaumeGomez
tests/rustdoc-json: Avoid needless use of `no_core` and `lang_items`

See #117487 for motivation.

I've split it into three commits, depending on how much work it was to remove `#![no_core]`. The first is entirely mechanical, the second makes no logical changes but couldn't be done with find+replace, and the third required rewriting assertions no not depend on having `#![no_core]`. All of the interesting changes for review are in the third commit, so I recommend reviewing commit-by-commit.

After this, 3 tests still use `#![no_core]`:

- `./tests/rustdoc-json/primitives/primitive_impls.rs`. Uses impls on primitives, so needs to simulate core
- `./tests/rustdoc-json/primitives/local_primitive.rs`: Uses `rustc_doc_primitive`, so needs to simulate core
- `./tests/rustdoc-json/impls/auto.rs`: Uses auto traits, so needs to simulate core

But after this change, we only rely on the core-rustc boundary in tests that deliberately test those interactions.

r? ``@GuillaumeGomez``

Fixes #117487
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/llvm_util.rs')
0 files changed, 0 insertions, 0 deletions