File tree 4 files changed +8
-2
lines changed
4 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -21,3 +21,5 @@ query_system_cycle_recursive_ty_alias_help2 = see <https://doc.rust-lang.org/ref
21
21
query_system_cycle_recursive_trait_alias = trait aliases cannot be recursive
22
22
23
23
query_system_cycle_which_requires = ...which requires { $desc } ...
24
+
25
+ query_system_query_overflow = queries overflow the depth limit!
Original file line number Diff line number Diff line change @@ -48,11 +48,11 @@ fluent_messages! {
48
48
passes => "../locales/en-US/passes.ftl" ,
49
49
plugin_impl => "../locales/en-US/plugin_impl.ftl" ,
50
50
privacy => "../locales/en-US/privacy.ftl" ,
51
+ query_system => "../locales/en-US/query_system.ftl" ,
51
52
save_analysis => "../locales/en-US/save_analysis.ftl" ,
52
53
ty_utils => "../locales/en-US/ty_utils.ftl" ,
53
54
typeck => "../locales/en-US/typeck.ftl" ,
54
55
mir_dataflow => "../locales/en-US/mir_dataflow.ftl" ,
55
- query_system => "../locales/en-US/query_system.ftl" ,
56
56
}
57
57
58
58
pub use fluent_generated:: { self as fluent, DEFAULT_LOCALE_RESOURCES } ;
Original file line number Diff line number Diff line change @@ -67,3 +67,7 @@ pub struct IncrementCompilation {
67
67
pub run_cmd : String ,
68
68
pub dep_node : String ,
69
69
}
70
+
71
+ #[ derive( SessionDiagnostic ) ]
72
+ #[ diag( query_system:: query_overflow) ]
73
+ pub struct QueryOverflow ;
Original file line number Diff line number Diff line change @@ -125,6 +125,6 @@ pub trait QueryContext: HasDepContext {
125
125
) -> R ;
126
126
127
127
fn depth_limit_error ( & self ) {
128
- self . dep_context ( ) . sess ( ) . fatal ( "queries overflow the depth limit!" ) ;
128
+ self . dep_context ( ) . sess ( ) . emit_fatal ( crate :: error :: QueryOverflow ) ;
129
129
}
130
130
}
You can’t perform that action at this time.
0 commit comments