diff options
| author | Michael Howell <michael@notriddle.com> | 2023-05-01 13:30:05 -0700 |
|---|---|---|
| committer | Michael Howell <michael@notriddle.com> | 2023-05-25 08:14:33 -0700 |
| commit | ffef807889c6f759fef3d229b59c3bd9b6e40fd6 (patch) | |
| tree | 60686e7621fe9e1801a89ae5cc3427862907c867 | |
| parent | 674a3d5c1c898156d7e4bba686593797f44d812a (diff) | |
Update compiler/rustc_metadata/src/creader.rs
Co-authored-by: Camille Gillot <gillot.camille@gmail.com>
| -rw-r--r-- | compiler/rustc_metadata/src/creader.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_metadata/src/creader.rs b/compiler/rustc_metadata/src/creader.rs index 8bd96906f8b..fc8ced3f900 100644 --- a/compiler/rustc_metadata/src/creader.rs +++ b/compiler/rustc_metadata/src/creader.rs @@ -564,7 +564,7 @@ impl<'a, 'tcx> CrateLoader<'a, 'tcx> { dep_kind = CrateDepKind::MacrosOnly; } data.update_dep_kind(|data_dep_kind| cmp::max(data_dep_kind, dep_kind)); - data.update_private_dep(|private_dep| private_dep && private_dep); + data.update_private_dep(|p_d| p_d && private_dep); Ok(cnum) } (LoadResult::Loaded(library), host_library) => { |
