about summary refs log tree commit diff
path: root/compiler/rustc_target/src/spec/base/bpf.rs
diff options
context:
space:
mode:
authorJubilee Young <workingjubilee@gmail.com>2024-11-02 21:44:31 -0700
committerJubilee Young <workingjubilee@gmail.com>2025-02-06 01:39:46 -0800
commit89da3614e53a1fbebf61ec58c32ca26e371211ae (patch)
tree84e8857ce7ed4ba6093c0948805b12be718bcf35 /compiler/rustc_target/src/spec/base/bpf.rs
parent59588250ad973ce69bd15879314c9769e65f36b3 (diff)
downloadrust-89da3614e53a1fbebf61ec58c32ca26e371211ae.tar.gz
rust-89da3614e53a1fbebf61ec58c32ca26e371211ae.zip
compiler: make rustc_target have less weird reexports
rustc_target has had a lot of weird reexports for various reasons, but
now we're at a point where we can actually start reducing their number.
We remove weird shadowing-dependent behavior and import directly from
rustc_abi instead of doing weird renaming imports.

This is only incremental progress and does not entirely fix the crate.
Diffstat (limited to 'compiler/rustc_target/src/spec/base/bpf.rs')
-rw-r--r--compiler/rustc_target/src/spec/base/bpf.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/rustc_target/src/spec/base/bpf.rs b/compiler/rustc_target/src/spec/base/bpf.rs
index 17d5e75ef6d..7c0e2e165b6 100644
--- a/compiler/rustc_target/src/spec/base/bpf.rs
+++ b/compiler/rustc_target/src/spec/base/bpf.rs
@@ -1,4 +1,5 @@
-use crate::abi::Endian;
+use rustc_abi::Endian;
+
 use crate::spec::{LinkerFlavor, MergeFunctions, PanicStrategy, TargetOptions};
 
 pub(crate) fn opts(endian: Endian) -> TargetOptions {