Skip to content

Commit 40a86de

Browse files
Gate an unused function
1 parent bd82b59 commit 40a86de

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

compiler/rustc_abi/src/callconv.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ impl HomogeneousAggregate {
3535
/// Try to combine two `HomogeneousAggregate`s, e.g. from two fields in
3636
/// the same `struct`. Only succeeds if only one of them has any data,
3737
/// or both units are identical.
38+
#[cfg(feature = "nightly")]
3839
fn merge(self, other: HomogeneousAggregate) -> Result<HomogeneousAggregate, Heterogeneous> {
3940
match (self, other) {
4041
(x, HomogeneousAggregate::NoData) | (HomogeneousAggregate::NoData, x) => Ok(x),

0 commit comments

Comments
 (0)