Skip to content

Commit 25999d8

Browse files
committed
Auto merge of #152149 - Zalathar:rollup-Sl4nuL4, r=Zalathar
Rollup of 19 pull requests Successful merges: - #146900 (Add avr_target_feature) - #150379 (Return `ExitCode` from `rustc_driver::main` instead of calling `process::exit`) - #152033 (Rename trait `DepNodeParams` to `DepNodeKey`) - #152142 (Convert to inline diagnostics in `rustc_hir_typeck`) - #152145 (Disable flaky test `oneshot::recv_timeout_before_send`) - #152020 (Remove dummy loads on offload codegen) - #152023 (Some `rustc_query_system` cleanups) - #152068 (Convert to inline diagnostics in `rustc_resolve`) - #152081 (Port depgraph testing attributes to parser) - #152090 (Port reexport_test_harness_main to attr parser) - #152105 (Convert to inline diagnostics in `rustc_ast_lowering`) - #152108 (Convert to inline diagnostics in `rustc_expand`) - #152110 (Fix incorrect RSS on systems with non-4K page size) - #152111 (bootstrap: exclude hexagon-unknown-qurt from llvm-libunwind default) - #152114 (Convert to inline diagnostics in `rustc_mir_transform`) - #152115 (Convert to inline diagnostics in `rustc_metadata`) - #152116 (Remove rustdoc GUI flaky test) - #152118 (Convert to inline diagnostics in `rustc_codegen_ssa`) - #152128 (Adopt matches-logical-or-141497.rs to LLVM HEAD) Failed merges: - #152070 (Convert to inline diagnostics in `rustc_pattern_analysis`) - #152106 (Convert to inline diagnostics in `rustc_ast_passes`) - #152109 (Convert to inline diagnostics in `rustc_errors`) - #152117 (Convert to inline diagnostics in `rustc_trait_selection`) - #152119 (Convert to inline diagnostics in `rustc_middle`) - #152126 (Convert to inline diagnostics in `rustc_mir_build`) - #152131 (Port rustc_no_implicit_bounds attribute to parser.)
2 parents 9f4b56a + 04f39c8 commit 25999d8

File tree

116 files changed

+2615
-3878
lines changed

Some content is hidden

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

116 files changed

+2615
-3878
lines changed

Cargo.lock

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3490,7 +3490,6 @@ dependencies = [
34903490
"rustc_data_structures",
34913491
"rustc_errors",
34923492
"rustc_feature",
3493-
"rustc_fluent_macro",
34943493
"rustc_hir",
34953494
"rustc_index",
34963495
"rustc_macros",
@@ -3672,7 +3671,6 @@ dependencies = [
36723671
"rustc_attr_parsing",
36733672
"rustc_data_structures",
36743673
"rustc_errors",
3675-
"rustc_fluent_macro",
36763674
"rustc_fs_util",
36773675
"rustc_hashes",
36783676
"rustc_hir",
@@ -3774,7 +3772,6 @@ dependencies = [
37743772
"libc",
37753773
"rustc_abi",
37763774
"rustc_ast",
3777-
"rustc_ast_lowering",
37783775
"rustc_ast_passes",
37793776
"rustc_ast_pretty",
37803777
"rustc_borrowck",
@@ -3787,7 +3784,6 @@ dependencies = [
37873784
"rustc_feature",
37883785
"rustc_hir_analysis",
37893786
"rustc_hir_pretty",
3790-
"rustc_hir_typeck",
37913787
"rustc_index",
37923788
"rustc_interface",
37933789
"rustc_lexer",
@@ -3875,7 +3871,6 @@ dependencies = [
38753871
"rustc_data_structures",
38763872
"rustc_errors",
38773873
"rustc_feature",
3878-
"rustc_fluent_macro",
38793874
"rustc_hir",
38803875
"rustc_lexer",
38813876
"rustc_lint_defs",
@@ -4017,7 +4012,6 @@ dependencies = [
40174012
"rustc_ast",
40184013
"rustc_data_structures",
40194014
"rustc_errors",
4020-
"rustc_fluent_macro",
40214015
"rustc_hir",
40224016
"rustc_hir_analysis",
40234017
"rustc_hir_pretty",
@@ -4039,7 +4033,6 @@ name = "rustc_incremental"
40394033
version = "0.0.0"
40404034
dependencies = [
40414035
"rand 0.9.2",
4042-
"rustc_ast",
40434036
"rustc_data_structures",
40444037
"rustc_errors",
40454038
"rustc_fs_util",
@@ -4051,7 +4044,6 @@ dependencies = [
40514044
"rustc_serialize",
40524045
"rustc_session",
40534046
"rustc_span",
4054-
"thin-vec",
40554047
"tracing",
40564048
]
40574049

@@ -4237,7 +4229,6 @@ dependencies = [
42374229
"rustc_errors",
42384230
"rustc_expand",
42394231
"rustc_feature",
4240-
"rustc_fluent_macro",
42414232
"rustc_fs_util",
42424233
"rustc_hir",
42434234
"rustc_hir_pretty",
@@ -4347,7 +4338,6 @@ dependencies = [
43474338
"rustc_const_eval",
43484339
"rustc_data_structures",
43494340
"rustc_errors",
4350-
"rustc_fluent_macro",
43514341
"rustc_hir",
43524342
"rustc_index",
43534343
"rustc_infer",
@@ -4534,9 +4524,11 @@ version = "0.0.0"
45344524
dependencies = [
45354525
"measureme",
45364526
"rustc_data_structures",
4527+
"rustc_errors",
45374528
"rustc_hashes",
45384529
"rustc_hir",
45394530
"rustc_index",
4531+
"rustc_macros",
45404532
"rustc_middle",
45414533
"rustc_query_system",
45424534
"rustc_serialize",
@@ -4581,7 +4573,6 @@ dependencies = [
45814573
"rustc_errors",
45824574
"rustc_expand",
45834575
"rustc_feature",
4584-
"rustc_fluent_macro",
45854576
"rustc_hir",
45864577
"rustc_index",
45874578
"rustc_macros",

compiler/rustc/src/main.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
// Several crates are depended upon but unused so that they are present in the sysroot
44
#![expect(unused_crate_dependencies)]
55

6+
use std::process::ExitCode;
7+
68
// A note about jemalloc: rustc uses jemalloc when built for CI and
79
// distribution. The obvious way to do this is with the `#[global_allocator]`
810
// mechanism. However, for complicated reasons (see
@@ -38,6 +40,6 @@
3840
#[cfg(feature = "jemalloc")]
3941
use tikv_jemalloc_sys as _;
4042

41-
fn main() {
43+
fn main() -> ExitCode {
4244
rustc_driver::main()
4345
}

compiler/rustc_ast_lowering/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ rustc_attr_parsing = { path = "../rustc_attr_parsing" }
1515
rustc_data_structures = { path = "../rustc_data_structures" }
1616
rustc_errors = { path = "../rustc_errors" }
1717
rustc_feature = { path = "../rustc_feature" }
18-
rustc_fluent_macro = { path = "../rustc_fluent_macro" }
1918
rustc_hir = { path = "../rustc_hir" }
2019
rustc_index = { path = "../rustc_index" }
2120
rustc_macros = { path = "../rustc_macros" }

compiler/rustc_ast_lowering/messages.ftl

Lines changed: 0 additions & 191 deletions
This file was deleted.

compiler/rustc_ast_lowering/src/asm.rs

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ use std::fmt::Write;
33

44
use rustc_ast::*;
55
use rustc_data_structures::fx::{FxHashMap, FxHashSet, FxIndexMap};
6+
use rustc_errors::inline_fluent;
67
use rustc_hir as hir;
78
use rustc_hir::def::{DefKind, Res};
89
use rustc_session::parse::feature_err;
@@ -19,8 +20,7 @@ use super::errors::{
1920
RegisterConflict,
2021
};
2122
use crate::{
22-
AllowReturnTypeNotation, ImplTraitContext, ImplTraitPosition, ParamMode,
23-
ResolverAstLoweringExt, fluent_generated as fluent,
23+
AllowReturnTypeNotation, ImplTraitContext, ImplTraitPosition, ParamMode, ResolverAstLoweringExt,
2424
};
2525

2626
impl<'a, 'hir> LoweringContext<'a, 'hir> {
@@ -67,7 +67,7 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
6767
&self.tcx.sess,
6868
sym::asm_experimental_arch,
6969
sp,
70-
fluent::ast_lowering_unstable_inline_assembly,
70+
inline_fluent!("inline assembly is not stable yet on this architecture"),
7171
)
7272
.emit();
7373
}
@@ -84,7 +84,7 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
8484
&self.tcx.sess,
8585
sym::asm_unwind,
8686
sp,
87-
fluent::ast_lowering_unstable_may_unwind,
87+
inline_fluent!("the `may_unwind` option is unstable"),
8888
)
8989
.emit();
9090
}
@@ -499,7 +499,9 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
499499
sess,
500500
sym::asm_goto_with_outputs,
501501
*op_sp,
502-
fluent::ast_lowering_unstable_inline_assembly_label_operand_with_outputs,
502+
inline_fluent!(
503+
"using both label and output operands for inline assembly is unstable"
504+
),
503505
)
504506
.emit();
505507
}

0 commit comments

Comments
 (0)