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

Chore: Fixed a spurious CI failure #5685

Merged
5 changes: 3 additions & 2 deletions Source/DafnyCore/Options/OptionRegistry.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#nullable enable

using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.CommandLine;
using System.Linq;
Expand Down Expand Up @@ -30,8 +31,8 @@ public static void CheckOptionsAreKnown(IEnumerable<Option> allOptions) {
// Note that legacy CLI options are not as cleanly enumerated and therefore
// more difficult to completely categorize, which is the main reason the LibraryBackend
// is restricted to only the new CLI.
private static readonly Dictionary<Option, GlobalOptionCheck> GlobalOptionChecks = new();
private static readonly Dictionary<Option, OptionScope> OptionScopes = new();
private static readonly ConcurrentDictionary<Option, GlobalOptionCheck> GlobalOptionChecks = new();
private static readonly ConcurrentDictionary<Option, OptionScope> OptionScopes = new();

public static IEnumerable<Option> GlobalOptions => GlobalOptionChecks.Keys;
public static IEnumerable<Option> TranslationOptions => OptionScopes.Where(kv => kv.Value == OptionScope.Translation).Select(kv => kv.Key);
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading