File tree Expand file tree Collapse file tree 3 files changed +17
-7
lines changed
Expand file tree Collapse file tree 3 files changed +17
-7
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ serde = "1.0.0"
3232serde_derive = " 1.0.0"
3333serde_json = " 1.0.0"
3434
35- gluon = { version = " 0.16.1" , path = " .." } # GLUON
35+ gluon = { version = " 0.16.1" , default-features = false , path = " .." } # GLUON
3636completion = { package = " gluon_completion" , version = " 0.16.1" , path = " ../completion" } # GLUON
3737
3838
Original file line number Diff line number Diff line change 22
33extern crate regex;
44
5- use crate :: vm:: { self , api :: Collect , thread:: Thread , ExternModule } ;
5+ use crate :: vm:: { self , thread:: Thread , ExternModule } ;
66
77#[ derive( Debug , Userdata , Trace , VmType ) ]
88#[ gluon( vm_type = "std.regex.Regex" ) ]
@@ -52,14 +52,12 @@ fn find<'a>(re: &Regex, text: &'a str) -> Option<Match<'a>> {
5252 re. find ( text) . map ( Match :: new)
5353}
5454
55- fn captures < ' a > (
56- re : & Regex ,
57- text : & ' a str ,
58- ) -> Option < Collect < impl Iterator < Item = Option < Match < ' a > > > > > {
55+ fn captures < ' a > ( re : & Regex , text : & ' a str ) -> Option < Vec < Option < Match < ' a > > > > {
5956 let & Regex ( ref re) = re;
6057 re. captures ( text)
6158 . map ( |c| ( 0 ..c. len ( ) ) . map ( move |i| c. get ( i) . map ( Match :: new) ) )
62- . map ( Collect :: new)
59+ // FIXME Once rust stops ICEing .map(Collect::new)
60+ . map ( |i| i. collect ( ) )
6361}
6462
6563fn error_to_string ( err : & Error ) -> String {
Original file line number Diff line number Diff line change @@ -1091,3 +1091,15 @@ let tell : Eff [| writer : Writer | r |] () =
10911091"# ,
10921092( )
10931093}
1094+
1095+ test_expr ! { issue_863,
1096+ r"
1097+ #[infix(right, 0)]
1098+ let (<|) f x : (a -> b) -> a -> b = f x
1099+
1100+ let g f x = x
1101+ let f a =
1102+ g a <| f a
1103+ { f }
1104+ "
1105+ }
You can’t perform that action at this time.
0 commit comments