"easier" → "more informative"; omit needless clause
We don't want to leave the impression that spans are about making it easier for compiler developers to perform the arduous task of emitting an error; spans are about pointing to particular segments of code in the emitted error messages. Also, we don't need to say "whenever an error comes up"; that's implied by the phrase "error reporting."
This commit is contained in:
parent
badbb2daec
commit
80cadf84c3
|
|
@ -7,7 +7,7 @@ This chapter is about how to emit compile errors and lints from the compiler.
|
||||||
|
|
||||||
[`Span`][span] is the primary data structure in `rustc` used to represent a
|
[`Span`][span] is the primary data structure in `rustc` used to represent a
|
||||||
location in the code being compiled. `Span`s are attached to most constructs in
|
location in the code being compiled. `Span`s are attached to most constructs in
|
||||||
HIR and MIR, allowing for easier error reporting whenever an error comes up.
|
HIR and MIR, allowing for more informative error reporting.
|
||||||
|
|
||||||
[span]: https://doc.rust-lang.org/nightly/nightly-rustc/syntax/codemap/struct.Span.html
|
[span]: https://doc.rust-lang.org/nightly/nightly-rustc/syntax/codemap/struct.Span.html
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue