From 24adb1f68cb5ce7fae8cb9a4b01aab728d827fa2 Mon Sep 17 00:00:00 2001 From: Sameer Puri Date: Fri, 28 Apr 2023 09:53:09 +0200 Subject: [PATCH] include source error for LoadLibraryExW --- compiler/rustc_metadata/src/creader.rs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/compiler/rustc_metadata/src/creader.rs b/compiler/rustc_metadata/src/creader.rs index 179453238f2cc..01b69966ca92c 100644 --- a/compiler/rustc_metadata/src/creader.rs +++ b/compiler/rustc_metadata/src/creader.rs @@ -27,6 +27,7 @@ use rustc_span::{Span, DUMMY_SP}; use rustc_target::spec::{PanicStrategy, TargetTriple}; use proc_macro::bridge::client::ProcMacro; +use std::error::Error; use std::ops::Fn; use std::path::Path; use std::time::Duration; @@ -1094,5 +1095,12 @@ fn load_dylib(path: &Path, max_attempts: usize) -> Result