SessionDiagnostic for QueryOverflow error
This commit is contained in:
parent
166aef90fb
commit
7ce59ebf49
4 changed files with 8 additions and 2 deletions
|
@ -125,6 +125,6 @@ pub trait QueryContext: HasDepContext {
|
|||
) -> R;
|
||||
|
||||
fn depth_limit_error(&self) {
|
||||
self.dep_context().sess().fatal("queries overflow the depth limit!");
|
||||
self.dep_context().sess().emit_fatal(crate::error::QueryOverflow);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue