Skip to content

Commit 1ea1171

Browse files
committed
Auto merge of #156751 - JonathanBrouwer:rollup-jecv0TQ, r=JonathanBrouwer
Rollup of 6 pull requests Successful merges: - #154265 (ci: Add dist-aarch64-freebsd) - #156739 (miri subtree update) - #148666 (Add support for xray in aarch64 unknown none targets) - #156547 (Move tests closures) - #156578 (Add FileCheck for build_correct_coerce) - #156734 ([rustdoc] Move `span_map` file to the right folder)
2 parents 60592ad + f3d44a0 commit 1ea1171

96 files changed

Lines changed: 1831 additions & 514 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

compiler/rustc_target/src/spec/targets/aarch64_unknown_none.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ pub(crate) fn target() -> Target {
3030
stack_probes: StackProbeType::Inline,
3131
panic_strategy: PanicStrategy::Abort,
3232
default_uwtable: true,
33+
supports_xray: true,
3334
..Default::default()
3435
};
3536
Target {

compiler/rustc_target/src/spec/targets/aarch64_unknown_none_softfloat.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ pub(crate) fn target() -> Target {
2727
stack_probes: StackProbeType::Inline,
2828
panic_strategy: PanicStrategy::Abort,
2929
default_uwtable: true,
30+
supports_xray: true,
3031
..Default::default()
3132
};
3233
Target {
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
FROM ubuntu:26.04
2+
3+
RUN apt-get update && apt-get install -y --no-install-recommends \
4+
clang \
5+
make \
6+
ninja-build \
7+
file \
8+
curl \
9+
ca-certificates \
10+
python3 \
11+
git \
12+
cmake \
13+
sudo \
14+
bzip2 \
15+
xz-utils \
16+
texinfo \
17+
wget \
18+
libssl-dev \
19+
pkg-config \
20+
&& rm -rf /var/lib/apt/lists/*
21+
22+
COPY scripts/freebsd-toolchain.sh /tmp/
23+
RUN /tmp/freebsd-toolchain.sh aarch64
24+
25+
COPY scripts/sccache.sh /scripts/
26+
RUN sh /scripts/sccache.sh
27+
28+
COPY scripts/cmake.sh /scripts/
29+
RUN /scripts/cmake.sh
30+
31+
ENV \
32+
AR_aarch64_unknown_freebsd=aarch64-unknown-freebsd14-ar \
33+
CC_aarch64_unknown_freebsd=aarch64-unknown-freebsd14-clang \
34+
CXX_aarch64_unknown_freebsd=aarch64-unknown-freebsd14-clang++
35+
36+
ENV HOSTS=aarch64-unknown-freebsd
37+
38+
ENV RUST_CONFIGURE_ARGS="--enable-full-tools \
39+
--enable-extended \
40+
--enable-profiler \
41+
--enable-sanitizers \
42+
--disable-docs"
43+
44+
ENV SCRIPT="python3 ../x.py dist --host $HOSTS --target $HOSTS"

src/ci/docker/scripts/freebsd-toolchain.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ mkdir -p "$sysroot"
4646
case $arch in
4747
(x86_64) freebsd_arch=amd64 ;;
4848
(i686) freebsd_arch=i386 ;;
49+
(aarch64) freebsd_arch=arm64 ;;
4950
esac
5051

5152
files_to_extract=(

src/ci/github-actions/jobs.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,9 @@ auto:
261261
- name: dist-x86_64-freebsd
262262
<<: *job-linux-4c
263263

264+
- name: dist-aarch64-freebsd
265+
<<: *job-aarch64-linux
266+
264267
- name: dist-x86_64-illumos
265268
<<: *job-linux-4c
266269

src/doc/unstable-book/src/compiler-flags/instrument-xray.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,4 @@ which on their own don't do anything useful.
3737
In order to actually trace the functions,
3838
you will need to link a separate runtime library of your choice,
3939
such as Clang's [XRay Runtime Library](https://www.llvm.org/docs/XRay.html#xray-runtime-library).
40+
On targets where such a runtime is not available but instrumentation is supported, you must supply and link your own runtime library.

src/librustdoc/html/highlight.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ use crate::display::Joined as _;
2323
use crate::html::escape::EscapeBodyText;
2424
use crate::html::format::HrefInfo;
2525
use crate::html::macro_expansion::ExpandedCode;
26-
use crate::html::render::span_map::{DUMMY_SP, Span};
27-
use crate::html::render::{Context, LinkFromSrc};
26+
use crate::html::render::Context;
27+
use crate::html::span_map::{DUMMY_SP, LinkFromSrc, Span};
2828

2929
/// This type is needed in case we want to render links on items to allow to go to their definition.
3030
pub(crate) struct HrefContext<'a, 'tcx> {

src/librustdoc/html/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ pub(crate) mod macro_expansion;
88
pub mod markdown;
99
pub(crate) mod render;
1010
pub(crate) mod sources;
11+
pub(crate) mod span_map;
1112
pub(crate) mod static_files;
1213
pub(crate) mod toc;
1314
mod url_parts_builder;

src/librustdoc/html/render/context.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ use tracing::info;
2020

2121
use super::print_item::{full_path, print_item, print_item_path, print_ty_path};
2222
use super::sidebar::{ModuleLike, Sidebar, print_sidebar, sidebar_module_like};
23-
use super::{AllTypes, LinkFromSrc, StylePath, collect_spans_and_sources, scrape_examples_help};
23+
use super::{AllTypes, StylePath, scrape_examples_help};
2424
use crate::clean::types::ExternalLocation;
2525
use crate::clean::utils::has_doc_flag;
2626
use crate::clean::{self, ExternalCrate};
@@ -33,8 +33,8 @@ use crate::formats::item_type::ItemType;
3333
use crate::html::escape::Escape;
3434
use crate::html::macro_expansion::ExpandedCode;
3535
use crate::html::markdown::{self, ErrorCodes, IdMap, plain_text_summary};
36-
use crate::html::render::span_map::Span;
3736
use crate::html::render::write_shared::write_shared;
37+
use crate::html::span_map::{LinkFromSrc, Span, collect_spans_and_sources};
3838
use crate::html::url_parts_builder::UrlPartsBuilder;
3939
use crate::html::{layout, sources, static_files};
4040
use crate::scrape_examples::AllCallLocations;

src/librustdoc/html/render/mod.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ mod ordered_json;
3636
mod print_item;
3737
pub(crate) mod sidebar;
3838
mod sorted_template;
39-
pub(crate) mod span_map;
4039
mod type_layout;
4140
mod write_shared;
4241

@@ -64,7 +63,6 @@ use rustc_span::symbol::{Symbol, sym};
6463
use tracing::{debug, info};
6564

6665
pub(crate) use self::context::*;
67-
pub(crate) use self::span_map::{LinkFromSrc, collect_spans_and_sources};
6866
pub(crate) use self::write_shared::*;
6967
use crate::clean::{self, Defaultness, Item, ItemId, RenderedLink};
7068
use crate::display::{Joined as _, MaybeDisplay as _};

0 commit comments

Comments
 (0)