diff options
| author | Jonathan Dönszelmann <jonathan@donsz.nl> | 2024-12-13 14:47:11 +0100 |
|---|---|---|
| committer | Jonathan Dönszelmann <jonathan@donsz.nl> | 2024-12-16 19:08:19 +0100 |
| commit | efb98b6552abd00c58a2c1dd171b9086edf28214 (patch) | |
| tree | 1a8ad8d3257b94c8a0c4bf75629851a1ae94289c /compiler/rustc_monomorphize/src/partitioning.rs | |
| parent | 1341366af911a16c53513d5eda2cc8cf31c8c027 (diff) | |
| download | rust-efb98b6552abd00c58a2c1dd171b9086edf28214.tar.gz rust-efb98b6552abd00c58a2c1dd171b9086edf28214.zip | |
rename rustc_attr to rustc_attr_parsing and create rustc_attr_data_structures
Diffstat (limited to 'compiler/rustc_monomorphize/src/partitioning.rs')
| -rw-r--r-- | compiler/rustc_monomorphize/src/partitioning.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/compiler/rustc_monomorphize/src/partitioning.rs b/compiler/rustc_monomorphize/src/partitioning.rs index dabce72650a..33e1065f051 100644 --- a/compiler/rustc_monomorphize/src/partitioning.rs +++ b/compiler/rustc_monomorphize/src/partitioning.rs @@ -833,7 +833,8 @@ fn mono_item_visibility<'tcx>( return if is_generic && (always_export_generics || (can_export_generics - && tcx.codegen_fn_attrs(def_id).inline == rustc_attr::InlineAttr::Never)) + && tcx.codegen_fn_attrs(def_id).inline + == rustc_attr_parsing::InlineAttr::Never)) { // If it is an upstream monomorphization and we export generics, we must make // it available to downstream crates. @@ -847,7 +848,7 @@ fn mono_item_visibility<'tcx>( if is_generic { if always_export_generics || (can_export_generics - && tcx.codegen_fn_attrs(def_id).inline == rustc_attr::InlineAttr::Never) + && tcx.codegen_fn_attrs(def_id).inline == rustc_attr_parsing::InlineAttr::Never) { if tcx.is_unreachable_local_definition(def_id) { // This instance cannot be used from another crate. |
