macros: fix select macro to process 64 branches (#4519)

Co-authored-by: DevSabb <devsabb@local>
This commit is contained in:
DevSabb
2022-02-21 08:41:52 +01:00
committed by GitHub
co-authored by DevSabb
parent 43c224ff47
commit e8f19e771f
2 changed files with 4 additions and 0 deletions
+3
View File
@@ -801,6 +801,9 @@ macro_rules! count {
(_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _) => {
63
};
(_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _) => {
64
};
}
#[macro_export]
+1
View File
@@ -461,6 +461,7 @@ async fn many_branches() {
x = async { 1 } => x,
x = async { 1 } => x,
x = async { 1 } => x,
x = async { 1 } => x,
};
assert_eq!(1, num);