-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update rustc-plugin, fix floating-ui positions, intern goals when pos…
…sible, invert trees and re-root for bottom-up view.
- Loading branch information
1 parent
0f52e8e
commit b4edd5c
Showing
22 changed files
with
349 additions
and
532 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
use std::io; | ||
|
||
use rustc_driver::DEFAULT_LOCALE_RESOURCES; | ||
use rustc_errors::{ | ||
self, | ||
emitter::{DynEmitter, HumanEmitter}, | ||
fallback_fluent_bundle, | ||
}; | ||
|
||
pub struct SilentEmitter; | ||
|
||
impl SilentEmitter { | ||
pub fn boxed() -> Box<DynEmitter> { | ||
// Create a new emitter writer which consumes *silently* all | ||
// errors. There most certainly is a *better* way to do this, | ||
// if you, the reader, know what that is, please open an issue :) | ||
let fallback_bundle = | ||
fallback_fluent_bundle(DEFAULT_LOCALE_RESOURCES.to_vec(), false); | ||
let emitter = HumanEmitter::new(Box::new(io::sink()), fallback_bundle); | ||
Box::new(emitter) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.