rust/compiler/rustc_metadata/src
Dylan DPC 2aa3eea5fc
Rollup merge of #109109 - compiler-errors:polymorphize-foreign, r=Nilstrieb
Use `unused_generic_params` from crate metadata

Due to the way that `separate_provide_extern` interacted with the implementation of `<ty::InstanceDef<'tcx> as Key>::query_crate_is_local`, we actually never hit the foreign provider for `unused_generic_params`.

Additionally, since the *local* provider of `unused_generic_params` calls `should_polymorphize`, which always returns false if the def-id is foreign, this means that we never actually polymorphize monomorphic instances originating from foreign crates.

We don't actually encode `unused_generic_params` for items where all generics are used, so I had to tweak the foreign provider to fall back to `ty::UnusedGenericParams::new_all_used()` to avoid more ICEs when the above bugs were fixed.
2023-03-15 17:51:31 +05:30
..
rmeta Rollup merge of #109109 - compiler-errors:polymorphize-foreign, r=Nilstrieb 2023-03-15 17:51:31 +05:30
creader.rs metadata/resolve: Minor refactoring to "tcx -> cstore" conversions 2023-03-13 17:31:55 +04:00
dependency_format.rs Replace enum ==s with matches where it makes sense 2023-01-30 12:26:26 +00:00
errors.rs errors: generate typed identifiers in each crate 2023-02-22 09:15:53 +00:00
foreign_modules.rs Rename some OwnerId fields. 2022-10-29 20:28:38 +11:00
fs.rs Only compute the crate hash when necessary. 2023-03-08 09:30:22 +11:00
lib.rs Simplify message paths 2023-03-11 22:51:57 +01:00
locator.rs Replace u32_len with constant 2023-02-20 13:38:29 -05:00
native_libs.rs Rollup merge of #107675 - jsgf:link-directives, r=davidtwco 2023-02-25 11:53:09 -08:00