Skip to content

Commit 16c49fa

Browse files
Rollup merge of rust-lang#152066 - JonathanBrouwer:session_convert, r=jdonszelmann
Convert to inline diagnostics in `rustc_session` For rust-lang#151366 r? @jdonszelmann
2 parents 458b0f7 + 65e4146 commit 16c49fa

File tree

7 files changed

+106
-247
lines changed

7 files changed

+106
-247
lines changed

Cargo.lock

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4643,7 +4643,6 @@ dependencies = [
46434643
"rustc_data_structures",
46444644
"rustc_errors",
46454645
"rustc_feature",
4646-
"rustc_fluent_macro",
46474646
"rustc_fs_util",
46484647
"rustc_hashes",
46494648
"rustc_hir",

compiler/rustc_driver_impl/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,6 @@ pub static DEFAULT_LOCALE_RESOURCES: &[&str] = &[
136136
rustc_pattern_analysis::DEFAULT_LOCALE_RESOURCE,
137137
rustc_privacy::DEFAULT_LOCALE_RESOURCE,
138138
rustc_resolve::DEFAULT_LOCALE_RESOURCE,
139-
rustc_session::DEFAULT_LOCALE_RESOURCE,
140139
rustc_trait_selection::DEFAULT_LOCALE_RESOURCE,
141140
// tidy-alphabetical-end
142141
];

compiler/rustc_interface/src/interface.rs

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,7 @@ pub(crate) fn parse_cfg(dcx: DiagCtxtHandle<'_>, cfgs: Vec<String>) -> Cfg {
5555
cfgs.into_iter()
5656
.map(|s| {
5757
let psess = ParseSess::emitter_with_note(
58-
vec![
59-
crate::DEFAULT_LOCALE_RESOURCE,
60-
rustc_parse::DEFAULT_LOCALE_RESOURCE,
61-
rustc_session::DEFAULT_LOCALE_RESOURCE,
62-
],
58+
vec![crate::DEFAULT_LOCALE_RESOURCE, rustc_parse::DEFAULT_LOCALE_RESOURCE],
6359
format!("this occurred on the command line: `--cfg={s}`"),
6460
);
6561
let filename = FileName::cfg_spec_source_code(&s);
@@ -131,11 +127,7 @@ pub(crate) fn parse_check_cfg(dcx: DiagCtxtHandle<'_>, specs: Vec<String>) -> Ch
131127

132128
for s in specs {
133129
let psess = ParseSess::emitter_with_note(
134-
vec![
135-
crate::DEFAULT_LOCALE_RESOURCE,
136-
rustc_parse::DEFAULT_LOCALE_RESOURCE,
137-
rustc_session::DEFAULT_LOCALE_RESOURCE,
138-
],
130+
vec![crate::DEFAULT_LOCALE_RESOURCE, rustc_parse::DEFAULT_LOCALE_RESOURCE],
139131
format!("this occurred on the command line: `--check-cfg={s}`"),
140132
);
141133
let filename = FileName::cfg_spec_source_code(&s);

compiler/rustc_session/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ rustc_ast = { path = "../rustc_ast" }
1212
rustc_data_structures = { path = "../rustc_data_structures" }
1313
rustc_errors = { path = "../rustc_errors" }
1414
rustc_feature = { path = "../rustc_feature" }
15-
rustc_fluent_macro = { path = "../rustc_fluent_macro" }
1615
rustc_fs_util = { path = "../rustc_fs_util" }
1716
rustc_hashes = { path = "../rustc_hashes" }
1817
rustc_hir = { path = "../rustc_hir" }

compiler/rustc_session/messages.ftl

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

0 commit comments

Comments
 (0)