Skip to content

Commit 9103466

Browse files
committed
address review comment
1 parent 2cba1c6 commit 9103466

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Diff for: src/diagnostics.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -280,13 +280,13 @@ There are two main ways to find where a given error is emitted:
280280
will treat the first error being emitted as an Internal Compiler Error, which
281281
allows you to get a
282282
stack trace at the point the error has been emitted. Change the `1` to
283-
something else if you wish to trigger on a later error. One limitation
284-
with this approach is that some calls get elided from the stack trace because
285-
they get inlined in the compiled `rustc`.
286-
Another limitation is the same problem we faced with
287-
the prior approach, where the _construction_ of the error is far away from
288-
where it is _emitted_. In some cases, we buffer multiple errors in order to
289-
emit them in order.
283+
something else if you whish to trigger on a later error.
284+
285+
There are limitations with this approach:
286+
- Some calls get elided from the stack trace because they get inlined in the compiled `rustc`.
287+
- The _construction_ of the error is far away from where it is _emitted_,
288+
a problem similar to the one we faced with the `grep` approach.
289+
In some cases, we buffer multiple errors in order to emit them in order.
290290

291291
The regular development practices apply: judicious use of `debug!()` statements
292292
and use of a debugger to trigger break points in order to figure out in what

0 commit comments

Comments
 (0)