diff options
| author | David Wood <david.wood@huawei.com> | 2022-03-24 02:03:04 +0000 |
|---|---|---|
| committer | David Wood <david.wood@huawei.com> | 2022-04-05 07:01:00 +0100 |
| commit | c45f29595df6f6a178b7998bc33c76099f3c12b7 (patch) | |
| tree | 0f54f00c31b0d2ec11408f843e6b9ec726ce8a11 /compiler/rustc_expand/src/tests.rs | |
| parent | 8c684563a59900d96a4fcadd41e5e92074c13df1 (diff) | |
| download | rust-c45f29595df6f6a178b7998bc33c76099f3c12b7.tar.gz rust-c45f29595df6f6a178b7998bc33c76099f3c12b7.zip | |
span: move `MultiSpan`
`MultiSpan` contains labels, which are more complicated with the introduction of diagnostic translation and will use types from `rustc_errors` - however, `rustc_errors` depends on `rustc_span` so `rustc_span` cannot use types like `DiagnosticMessage` without dependency cycles. Introduce a new `rustc_error_messages` crate that can contain `DiagnosticMessage` and `MultiSpan`. Signed-off-by: David Wood <david.wood@huawei.com>
Diffstat (limited to 'compiler/rustc_expand/src/tests.rs')
| -rw-r--r-- | compiler/rustc_expand/src/tests.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_expand/src/tests.rs b/compiler/rustc_expand/src/tests.rs index ed3aa1eaca8..d9b00f8f3ec 100644 --- a/compiler/rustc_expand/src/tests.rs +++ b/compiler/rustc_expand/src/tests.rs @@ -4,11 +4,11 @@ use rustc_parse::{new_parser_from_source_str, parser::Parser, source_file_to_str use rustc_session::parse::ParseSess; use rustc_span::create_default_session_if_not_set_then; use rustc_span::source_map::{FilePathMapping, SourceMap}; -use rustc_span::{BytePos, MultiSpan, Span}; +use rustc_span::{BytePos, Span}; use rustc_data_structures::sync::Lrc; use rustc_errors::emitter::EmitterWriter; -use rustc_errors::{Handler, PResult}; +use rustc_errors::{Handler, MultiSpan, PResult}; use std::io; use std::io::prelude::*; |
