]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_resolve/imports.rs
Auto merge of #68030 - cuviper:llvm-9.0.1, r=nikic
[rust.git] / src / librustc_resolve / imports.rs
index 5bd10303162b295711ce9e076d04b7f22a632d84..9f459834175c126a2584b81db962baefae7de960 100644 (file)
@@ -319,7 +319,11 @@ impl<'a> Resolver<'a> {
                        // Remove this together with `PUB_USE_OF_PRIVATE_EXTERN_CRATE`
                        !(self.last_import_segment && binding.is_extern_crate())
                         {
-                            self.privacy_errors.push(PrivacyError(path_span, ident, binding));
+                            self.privacy_errors.push(PrivacyError {
+                                ident,
+                                binding,
+                                dedup_span: path_span,
+                            });
                         }
 
                         Ok(binding)