diff options
| author | Michael Goulet <michael@errs.io> | 2024-08-17 12:50:12 -0400 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2024-08-17 12:50:18 -0400 |
| commit | b2dd943d4be2f7f9f923146e2ff7b7bd46c59a3b (patch) | |
| tree | 3c5816abd53a318b2e5a85ea400e218aa132659a /compiler/rustc_trait_selection/src | |
| parent | c6f81a452e291dd4ff5bcbc6ecb9cd6f2271f164 (diff) | |
| download | rust-b2dd943d4be2f7f9f923146e2ff7b7bd46c59a3b.tar.gz rust-b2dd943d4be2f7f9f923146e2ff7b7bd46c59a3b.zip | |
Use cnum for extern crate data
Diffstat (limited to 'compiler/rustc_trait_selection/src')
| -rw-r--r-- | compiler/rustc_trait_selection/src/error_reporting/traits/fulfillment_errors.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_trait_selection/src/error_reporting/traits/fulfillment_errors.rs b/compiler/rustc_trait_selection/src/error_reporting/traits/fulfillment_errors.rs index 326a0e4e35c..347f5b9f93f 100644 --- a/compiler/rustc_trait_selection/src/error_reporting/traits/fulfillment_errors.rs +++ b/compiler/rustc_trait_selection/src/error_reporting/traits/fulfillment_errors.rs @@ -1668,7 +1668,7 @@ impl<'a, 'tcx> TypeErrCtxt<'a, 'tcx> { let name = self.tcx.crate_name(trait_def_id.krate); let spans: Vec<_> = [trait_def_id, found_type] .into_iter() - .filter_map(|def_id| self.tcx.extern_crate(def_id)) + .filter_map(|def_id| self.tcx.extern_crate(def_id.krate)) .map(|data| { let dependency = if data.dependency_of == LOCAL_CRATE { "direct dependency of the current crate".to_string() |
