Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rollup of 6 pull requests #129803

Closed
wants to merge 25 commits into from
Closed
Changes from 2 commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
42a901a
Don't use TyKind in lint
compiler-errors Aug 24, 2024
ee05de8
Re-enable android tests/benches in alloc
saethlin Aug 27, 2024
83de14c
Enable some ilog2 tests as well
saethlin Aug 27, 2024
e20a888
Allow running `./x.py test compiler`
Veykril Aug 29, 2024
de34a91
interpret/visitor: make memory order iteration slightly more efficient
RalfJung Aug 29, 2024
c824c1a
wasi: Fix sleeping for `Duration::MAX`
alexcrichton Aug 29, 2024
692ec85
Add `warn(unreachable_pub)` to `rustc_sanitizers`.
nnethercote Aug 30, 2024
e043cb6
Add `warn(unreachable_pub)` to `rustc_serialize`.
nnethercote Aug 30, 2024
6e803e1
Add `warn(unreachable_pub)` to `rustc_session`.
nnethercote Aug 30, 2024
e740171
Add `warn(unreachable_pub)` to `rustc_smir`.
nnethercote Aug 30, 2024
8e768d8
Add `warn(unreachable_pub)` to `rustc_span`.
nnethercote Aug 30, 2024
1c68b0a
Add `warn(unreachable_pub)` to `rustc_symbol_mangling`.
nnethercote Aug 30, 2024
a0791d2
Add `warn(unreachable_pub)` to `rustc_target`.
nnethercote Aug 30, 2024
c983d3d
Add `warn(unreachable_pub)` to `rustc_traits`.
nnethercote Aug 30, 2024
5432635
Add `warn(unreachable_pub)` to `rustc_trait_selection`.
nnethercote Aug 30, 2024
cb49f91
Add `warn(unreachable_pub)` to `rustc_transmute`.
nnethercote Aug 30, 2024
552585c
Add `warn(unreachable_pub)` to `rustc_type_ir`.
nnethercote Aug 30, 2024
ee8f6ff
Add `warn(unreachable_pub)` to `rustc_ty_utils`.
nnethercote Aug 30, 2024
772207e
Add `warn(unreachable_pub)` to `rustc_const_eval`.
nnethercote Aug 30, 2024
6bf4b31
Rollup merge of #129527 - compiler-errors:lint-nit, r=Nadrieril
workingjubilee Aug 31, 2024
ed0c230
Rollup merge of #129640 - saethlin:unignore-android-in-alloc, r=tgross35
workingjubilee Aug 31, 2024
a8c5950
Rollup merge of #129731 - ferrocene:x-test-compiler, r=onur-ozkan
workingjubilee Aug 31, 2024
3f30d8a
Rollup merge of #129751 - RalfJung:interpret-visit-field-order, r=com…
workingjubilee Aug 31, 2024
6dccab5
Rollup merge of #129754 - alexcrichton:fix-wasi-long-sleep, r=working…
workingjubilee Aug 31, 2024
9292173
Rollup merge of #129777 - nnethercote:unreachable_pub-4, r=Urgau
workingjubilee Aug 31, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 3 additions & 8 deletions src/bootstrap/src/core/build_steps/test.rs
Original file line number Diff line number Diff line change
@@ -14,9 +14,8 @@ use crate::core::build_steps::synthetic_targets::MirOptPanicAbortSyntheticTarget
use crate::core::build_steps::tool::{self, SourceType, Tool};
use crate::core::build_steps::toolstate::ToolState;
use crate::core::build_steps::{compile, dist, llvm};
use crate::core::builder;
use crate::core::builder::{
crate_description, Builder, Compiler, Kind, RunConfig, ShouldRun, Step,
self, crate_description, Alias, Builder, Compiler, Kind, RunConfig, ShouldRun, Step,
};
use crate::core::config::flags::{get_completion, Subcommand};
use crate::core::config::TargetSelection;
@@ -2435,18 +2434,14 @@ impl Step for CrateLibrustc {
const ONLY_HOSTS: bool = true;

fn should_run(run: ShouldRun<'_>) -> ShouldRun<'_> {
run.crate_or_deps("rustc-main")
run.crate_or_deps("rustc-main").path("compiler")
}

fn make_run(run: RunConfig<'_>) {
let builder = run.builder;
let host = run.build_triple();
let compiler = builder.compiler_for(builder.top_stage, host, host);
let crates = run
.paths
.iter()
.map(|p| builder.crate_paths[&p.assert_single_path().path].clone())
.collect();
let crates = run.make_run_crates(Alias::Compiler);

builder.ensure(CrateLibrustc { compiler, target: run.target, crates });
}