Skip to content

Commit f21b5a4

Browse files
Rollup merge of rust-lang#152045 - JonathanBrouwer:rustc_infer_convert, r=lqd
Convert to inline diagnostics in `rustc_infer` For rust-lang#151366
2 parents 6f20fa0 + 1722b8e commit f21b5a4

7 files changed

Lines changed: 4 additions & 16 deletions

File tree

Cargo.lock

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3794,7 +3794,6 @@ dependencies = [
37943794
"rustc_hir_typeck",
37953795
"rustc_incremental",
37963796
"rustc_index",
3797-
"rustc_infer",
37983797
"rustc_interface",
37993798
"rustc_lexer",
38003799
"rustc_lint",
@@ -4092,7 +4091,6 @@ version = "0.0.0"
40924091
dependencies = [
40934092
"rustc_data_structures",
40944093
"rustc_errors",
4095-
"rustc_fluent_macro",
40964094
"rustc_hir",
40974095
"rustc_index",
40984096
"rustc_macros",

compiler/rustc_driver_impl/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ rustc_hir_pretty = { path = "../rustc_hir_pretty" }
2626
rustc_hir_typeck = { path = "../rustc_hir_typeck" }
2727
rustc_incremental = { path = "../rustc_incremental" }
2828
rustc_index = { path = "../rustc_index" }
29-
rustc_infer = { path = "../rustc_infer" }
3029
rustc_interface = { path = "../rustc_interface" }
3130
rustc_lexer = { path = "../rustc_lexer" }
3231
rustc_lint = { path = "../rustc_lint" }

compiler/rustc_driver_impl/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,6 @@ pub static DEFAULT_LOCALE_RESOURCES: &[&str] = &[
126126
rustc_hir_analysis::DEFAULT_LOCALE_RESOURCE,
127127
rustc_hir_typeck::DEFAULT_LOCALE_RESOURCE,
128128
rustc_incremental::DEFAULT_LOCALE_RESOURCE,
129-
rustc_infer::DEFAULT_LOCALE_RESOURCE,
130129
rustc_interface::DEFAULT_LOCALE_RESOURCE,
131130
rustc_lint::DEFAULT_LOCALE_RESOURCE,
132131
rustc_metadata::DEFAULT_LOCALE_RESOURCE,

compiler/rustc_infer/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ doctest = false
1010
# tidy-alphabetical-start
1111
rustc_data_structures = { path = "../rustc_data_structures" }
1212
rustc_errors = { path = "../rustc_errors" }
13-
rustc_fluent_macro = { path = "../rustc_fluent_macro" }
1413
rustc_hir = { path = "../rustc_hir" }
1514
rustc_index = { path = "../rustc_index" }
1615
rustc_macros = { path = "../rustc_macros" }

compiler/rustc_infer/messages.ftl

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

compiler/rustc_infer/src/errors.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@ use rustc_macros::Diagnostic;
22
use rustc_span::Span;
33

44
#[derive(Diagnostic)]
5-
#[diag(infer_opaque_hidden_type)]
5+
#[diag("opaque type's hidden type cannot be another opaque type from the same scope")]
66
pub(crate) struct OpaqueHiddenTypeDiag {
77
#[primary_span]
8-
#[label]
8+
#[label("one of the two opaque types used here has to be outside its defining scope")]
99
pub span: Span,
10-
#[note(infer_opaque_type)]
10+
#[note("opaque type whose hidden type is being assigned")]
1111
pub opaque_type: Span,
12-
#[note(infer_hidden_type)]
12+
#[note("opaque type being used as hidden type")]
1313
pub hidden_type: Span,
1414
}

compiler/rustc_infer/src/lib.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,3 @@
2222
mod errors;
2323
pub mod infer;
2424
pub mod traits;
25-
26-
rustc_fluent_macro::fluent_messages! { "../messages.ftl" }

0 commit comments

Comments
 (0)