File tree Expand file tree Collapse file tree 1 file changed +10
-8
lines changed
compiler/rustc_codegen_ssa/src/back Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -376,14 +376,16 @@ fn exported_symbols_provider_local(
376
376
let should_export = has_generics
377
377
&& ( def. as_local ( ) . is_some_and ( |local_did| {
378
378
visibilities. public_at_level ( local_did) . is_some ( )
379
- } ) || types. all ( |arg| {
380
- arg. walk ( ) . all ( |ty| {
381
- let Some ( ty) = ty. as_type ( ) else {
382
- return true ;
383
- } ;
384
- !is_local_to_current_crate ( ty)
385
- } )
386
- } ) ) ;
379
+ } ) || ( tcx. codegen_fn_attrs ( mono_item. def_id ( ) ) . inline
380
+ != rustc_attr_parsing:: InlineAttr :: None )
381
+ || types. all ( |arg| {
382
+ arg. walk ( ) . all ( |ty| {
383
+ let Some ( ty) = ty. as_type ( ) else {
384
+ return true ;
385
+ } ;
386
+ !is_local_to_current_crate ( ty)
387
+ } )
388
+ } ) ) ;
387
389
388
390
if should_export {
389
391
let symbol = ExportedSymbol :: Generic ( def, args) ;
You can’t perform that action at this time.
0 commit comments