Skip to content

Commit a5dad11

Browse files
committed
deprecate rather than break
1 parent fa2fedb commit a5dad11

File tree

4 files changed

+8
-2
lines changed

4 files changed

+8
-2
lines changed

hugr-core/src/std_extensions/collections/array.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
mod array_op;
44
mod array_repeat;
55
mod array_scan;
6-
pub mod builder;
6+
pub mod op_builder;
77

88
use std::sync::Arc;
99

@@ -27,7 +27,7 @@ use crate::Extension;
2727
pub use array_op::{ArrayOp, ArrayOpDef, ArrayOpDefIter};
2828
pub use array_repeat::{ArrayRepeat, ArrayRepeatDef, ARRAY_REPEAT_OP_ID};
2929
pub use array_scan::{ArrayScan, ArrayScanDef, ARRAY_SCAN_OP_ID};
30-
pub use builder::ArrayOpBuilder;
30+
pub use op_builder::ArrayOpBuilder;
3131

3232
/// Reported unique name of the array type.
3333
pub const ARRAY_TYPENAME: TypeName = TypeName::new_inline("array");

hugr-llvm/src/utils.rs

+4
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
//! Module for utilities that do not depend on LLVM. These are candidates for
22
//! upstreaming.
3+
#[deprecated(note = "This module is deprecated and will be removed in a future release.")]
4+
pub mod array_op_builder;
35
pub mod fat;
46
pub mod inline_constant_functions;
57
pub mod int_op_builder;
68
pub mod logic_op_builder;
79
pub mod type_map;
810

11+
#[deprecated(note = "Import from hugr_core::std_extensions::collections::array.")]
12+
pub use array_op_builder::ArrayOpBuilder;
913
pub use inline_constant_functions::inline_constant_functions;
1014
pub use int_op_builder::IntOpBuilder;
1115
pub use logic_op_builder::LogicOpBuilder;
+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#[deprecated(note = "Import from hugr_core::std_extensions::collections::array.")]
2+
pub use hugr_core::std_extensions::collections::array::op_builder::*;

0 commit comments

Comments
 (0)