diff options
| author | Michael Goulet <michael@errs.io> | 2024-08-21 01:29:52 -0400 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2024-08-21 01:31:42 -0400 |
| commit | 0b2525c787454fa9afabd7bb8d60782af03fee5f (patch) | |
| tree | ee3606979da78ad8a68480105faa8b3b31940c60 /compiler/rustc_metadata/src | |
| parent | 636d7ff91b9847d6d43c7bbe023568828f6e3246 (diff) | |
| download | rust-0b2525c787454fa9afabd7bb8d60782af03fee5f.tar.gz rust-0b2525c787454fa9afabd7bb8d60782af03fee5f.zip | |
Simplify some redundant field names
Diffstat (limited to 'compiler/rustc_metadata/src')
| -rw-r--r-- | compiler/rustc_metadata/src/locator.rs | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/compiler/rustc_metadata/src/locator.rs b/compiler/rustc_metadata/src/locator.rs index 25ae7b2bc31..90228db378a 100644 --- a/compiler/rustc_metadata/src/locator.rs +++ b/compiler/rustc_metadata/src/locator.rs @@ -1002,11 +1002,7 @@ impl CrateError { if !locator.crate_rejections.via_filename.is_empty() { let mismatches = locator.crate_rejections.via_filename.iter(); for CrateMismatch { path, .. } in mismatches { - dcx.emit_err(errors::CrateLocationUnknownType { - span, - path: path, - crate_name, - }); + dcx.emit_err(errors::CrateLocationUnknownType { span, path, crate_name }); dcx.emit_err(errors::LibFilenameForm { span, dll_prefix: &locator.dll_prefix, @@ -1035,7 +1031,7 @@ impl CrateError { } dcx.emit_err(errors::NewerCrateVersion { span, - crate_name: crate_name, + crate_name, add_info, found_crates, }); |
