Add -Zfuture-incompat-test to assist with testing future-incompat reports.
This commit is contained in:
parent
a08f25a7ef
commit
636fcacb44
8 changed files with 36 additions and 17 deletions
|
|
@ -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())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue