Skip to content

Commit 315d605

Browse files
committed
Rename to per_package
1 parent 20340e1 commit 315d605

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/cargo/core/compiler/future_incompat.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,10 @@ struct OnDiskReport {
7676
/// Unique reference to the report for the `--id` CLI flag.
7777
id: u32,
7878
/// Report, suitable for printing to the console.
79-
/// Maps crate names to the corresponding report
79+
/// Maps package names to the corresponding report
8080
/// We use a `BTreeMap` so that the iteration order
8181
/// is stable across multiple runs of `cargo`
82-
per_crate: BTreeMap<String, String>,
82+
per_package: BTreeMap<String, String>,
8383
}
8484

8585
impl Default for OnDiskReports {
@@ -110,7 +110,7 @@ impl OnDiskReports {
110110
};
111111
let report = OnDiskReport {
112112
id: current_reports.next_id,
113-
per_crate: render_report(per_package_reports),
113+
per_package: render_report(per_package_reports),
114114
};
115115
current_reports.next_id += 1;
116116
current_reports.reports.push(report);
@@ -194,21 +194,21 @@ impl OnDiskReports {
194194
})?;
195195
let to_display = if let Some(package) = package {
196196
report
197-
.per_crate
197+
.per_package
198198
.get(package)
199199
.ok_or_else(|| {
200200
format_err!(
201201
"could not find package with ID `{}`\n
202202
Available packages are: {}\n
203203
Omit the `--crate` flag to display a report for all crates",
204204
package,
205-
iter_join(report.per_crate.keys(), ", ")
205+
iter_join(report.per_package.keys(), ", ")
206206
)
207207
})?
208208
.clone()
209209
} else {
210210
report
211-
.per_crate
211+
.per_package
212212
.values()
213213
.cloned()
214214
.collect::<Vec<_>>()

0 commit comments

Comments
 (0)