We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9044e98 commit 44a9d84Copy full SHA for 44a9d84
compiler/rustc_middle/src/ty/context.rs
@@ -2272,6 +2272,12 @@ impl<'tcx> TyCtxt<'tcx> {
2272
2273
#[inline]
2274
pub fn local_crate_exports_generics(self) -> bool {
2275
+ // compiler-builtins has some special treatment in codegen, which can result in confusing
2276
+ // behavior if another crate ends up calling into its monomorphizations.
2277
+ // https://github.com/rust-lang/rust/issues/150173
2278
+ if self.is_compiler_builtins(LOCAL_CRATE) {
2279
+ return false;
2280
+ }
2281
self.crate_types().iter().any(|crate_type| {
2282
match crate_type {
2283
CrateType::Executable
0 commit comments