Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove support for non-safe REST methods #2771

Merged
merged 3 commits into from
Feb 9, 2024

Conversation

s-ludwig
Copy link
Member

@s-ludwig s-ludwig commented Feb 6, 2024

Takes up on #2748 and uses a clear error message instead of letting the compiler output indirect errors.

Closes #2748.

@s-ludwig s-ludwig requested a review from Geod24 February 6, 2024 19:48
@s-ludwig s-ludwig force-pushed the disallow_unsafe_rest_interfaces branch 3 times, most recently from 3d30a62 to 12059a4 Compare February 6, 2024 19:51
@@ -48,7 +48,8 @@ class LocalThreadAPI : ThreadAPI {

string[] get()
{
return m_data.threads.keys;
// NOTE: .keys is not @safe on older compiler versions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you know from what version it is ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tested it now on run.dlang.io and it works starting with 2.098.1.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rebased and added a static if(__VERSION__).

@s-ludwig s-ludwig force-pushed the disallow_unsafe_rest_interfaces branch from ac5973e to 3f8ee3e Compare February 7, 2024 14:13
@s-ludwig s-ludwig requested a review from l-kramer February 8, 2024 12:12
Takes up on #2748 and uses a clear error message instead of letting the compiler output indirect errors.

Closes #2748.
@s-ludwig s-ludwig force-pushed the disallow_unsafe_rest_interfaces branch from 80ea964 to cc7b7a7 Compare February 8, 2024 13:56
@l-kramer l-kramer merged commit bf95d90 into master Feb 9, 2024
74 checks passed
@Geod24 Geod24 deleted the disallow_unsafe_rest_interfaces branch February 9, 2024 08:33
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.

3 participants