Add -Zfuture-incompat-test to assist with testing future-incompat reports.

This commit is contained in:
Eric Huss 2021-06-19 17:06:46 -07:00
parent a08f25a7ef
commit 636fcacb44
8 changed files with 36 additions and 17 deletions

View file

@ -43,7 +43,6 @@ struct FutureIncompatReport {
#[derive(Deserialize)]
struct FutureBreakageItem {
future_breakage_date: Option<String>,
diagnostic: Diagnostic,
}
@ -104,9 +103,7 @@ pub fn extract_rendered(output: &str) -> String {
.into_iter()
.map(|item| {
format!(
"Future breakage date: {}, diagnostic:\n{}",
item.future_breakage_date
.unwrap_or_else(|| "None".to_string()),
"Future breakage diagnostic:\n{}",
item.diagnostic
.rendered
.unwrap_or_else(|| "Not rendered".to_string())