diff options
| author | 许杰友 Jieyou Xu (Joe) <39484203+jieyouxu@users.noreply.github.com> | 2024-08-18 14:55:23 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-08-18 14:55:23 +0800 |
| commit | 130cb9e30c6e8447739b7e43d9ade2ab2d649321 (patch) | |
| tree | 8bf61f3264da8633c0f0a1b83060050d97540ea6 /compiler/rustc_trait_selection | |
| parent | 4e087683e59e89cce3754512af8316b0c5680c23 (diff) | |
| parent | b2dd943d4be2f7f9f923146e2ff7b7bd46c59a3b (diff) | |
| download | rust-130cb9e30c6e8447739b7e43d9ade2ab2d649321.tar.gz rust-130cb9e30c6e8447739b7e43d9ade2ab2d649321.zip | |
Rollup merge of #129203 - compiler-errors:extern_crate_data, r=jieyouxu
Use cnum for extern crate data key Noticed this when fixing #129184. I still have yet to put up a fix for that (mostly because I'm too lazy to minimize a test, that will come soon though).
Diffstat (limited to 'compiler/rustc_trait_selection')
| -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 adeabb3b77d..d1cc630bc9a 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() |
