Rollup merge of #125391 - nnethercote:serialize-rs-tweaks, r=compiler-errors
Minor serialize/span tweaks r? ``@jackh726``
This commit is contained in:
commit
0646c7d066
4 changed files with 14 additions and 11 deletions
|
@ -40,6 +40,7 @@ use std::cell::RefCell;
|
||||||
use std::collections::hash_map::Entry;
|
use std::collections::hash_map::Entry;
|
||||||
use std::fmt;
|
use std::fmt;
|
||||||
use std::hash::Hash;
|
use std::hash::Hash;
|
||||||
|
use tracing::{debug, trace};
|
||||||
|
|
||||||
/// A `SyntaxContext` represents a chain of pairs `(ExpnId, Transparency)` named "marks".
|
/// A `SyntaxContext` represents a chain of pairs `(ExpnId, Transparency)` named "marks".
|
||||||
#[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)]
|
#[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)]
|
||||||
|
|
|
@ -33,15 +33,16 @@
|
||||||
#![feature(rustdoc_internals)]
|
#![feature(rustdoc_internals)]
|
||||||
// tidy-alphabetical-end
|
// tidy-alphabetical-end
|
||||||
|
|
||||||
|
// The code produced by the `Encodable`/`Decodable` derive macros refer to
|
||||||
|
// `rustc_span::Span{Encoder,Decoder}`. That's fine outside this crate, but doesn't work inside
|
||||||
|
// this crate without this line making `rustc_span` available.
|
||||||
extern crate self as rustc_span;
|
extern crate self as rustc_span;
|
||||||
|
|
||||||
#[macro_use]
|
|
||||||
extern crate tracing;
|
|
||||||
|
|
||||||
use rustc_data_structures::{outline, AtomicRef};
|
use rustc_data_structures::{outline, AtomicRef};
|
||||||
use rustc_macros::{Decodable, Encodable, HashStable_Generic};
|
use rustc_macros::{Decodable, Encodable, HashStable_Generic};
|
||||||
use rustc_serialize::opaque::{FileEncoder, MemDecoder};
|
use rustc_serialize::opaque::{FileEncoder, MemDecoder};
|
||||||
use rustc_serialize::{Decodable, Decoder, Encodable, Encoder};
|
use rustc_serialize::{Decodable, Decoder, Encodable, Encoder};
|
||||||
|
use tracing::debug;
|
||||||
|
|
||||||
mod caching_source_map_view;
|
mod caching_source_map_view;
|
||||||
pub mod source_map;
|
pub mod source_map;
|
||||||
|
|
|
@ -16,6 +16,7 @@ use rustc_macros::{Decodable, Encodable};
|
||||||
use std::fs;
|
use std::fs;
|
||||||
use std::io::{self, BorrowedBuf, Read};
|
use std::io::{self, BorrowedBuf, Read};
|
||||||
use std::path;
|
use std::path;
|
||||||
|
use tracing::{debug, instrument, trace};
|
||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
mod tests;
|
mod tests;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue