Skip to content

stub out unstable_const feature#84

Merged
Gilnaa merged 5 commits intoGilnaa:masterfrom
RalfJung:no-nightly
Mar 26, 2024
Merged

stub out unstable_const feature#84
Gilnaa merged 5 commits intoGilnaa:masterfrom
RalfJung:no-nightly

Conversation

@RalfJung
Copy link
Collaborator

@RalfJung RalfJung commented Mar 26, 2024

It is pointless, nightly users get stable_offset_of which switches out the entire implementation and makes it fully const-compatible without any nightly feature.

However we can avoid breaking the build of people that enable this feature, by simply making it do nothing. If they are on a ~recent nightly (less than 3 months old), they will get stable_offset_of which subsumes all the unstable features. If they are on an older nightly they should stick to older versions of memoffset.

@RalfJung RalfJung changed the title remove unstable_const feature stub out unstable_const feature Mar 26, 2024
@Gilnaa Gilnaa merged commit 0ec6b3b into Gilnaa:master Mar 26, 2024
@RalfJung RalfJung deleted the no-nightly branch March 26, 2024 20:29
@RalfJung
Copy link
Collaborator Author

@Gilnaa thanks! Can you do an 0.9.1 release? :)

@RalfJung
Copy link
Collaborator Author

Ah, you're already on it. :D

@Gilnaa
Copy link
Owner

Gilnaa commented Mar 26, 2024

My pleasure :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants