Rollup merge of #133567 - bjorn3:various_cleanups, r=cjgillot
A bunch of cleanups These are all extracted from a branch I have to get rid of driver queries. Most of the commits are not directly necessary for this, but were found in the process of implementing the removal of driver queries. Previous PR: https://github.com/rust-lang/rust/pull/132410
This commit is contained in:
commit
d2881e4eb5
36 changed files with 309 additions and 335 deletions
|
@ -51,6 +51,7 @@ pub mod source_map;
|
|||
use source_map::{SourceMap, SourceMapInputs};
|
||||
|
||||
pub use self::caching_source_map_view::CachingSourceMapView;
|
||||
use crate::fatal_error::FatalError;
|
||||
|
||||
pub mod edition;
|
||||
use edition::Edition;
|
||||
|
@ -2614,6 +2615,10 @@ impl ErrorGuaranteed {
|
|||
pub fn unchecked_error_guaranteed() -> Self {
|
||||
ErrorGuaranteed(())
|
||||
}
|
||||
|
||||
pub fn raise_fatal(self) -> ! {
|
||||
FatalError.raise()
|
||||
}
|
||||
}
|
||||
|
||||
impl<E: rustc_serialize::Encoder> Encodable<E> for ErrorGuaranteed {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue