File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -1023,8 +1023,8 @@ fn hir_ascii_class_bytes(kind: &ast::ClassAsciiKind) -> hir::ClassBytes {
10231023fn ascii_class ( kind : & ast:: ClassAsciiKind ) -> & ' static [ ( char , char ) ] {
10241024 use ast:: ClassAsciiKind :: * ;
10251025
1026- // TODO: Get rid of these consts, which appear necessary for older
1027- // versions of Rust.
1026+ // The contortions below with `const` appear necessary for older versions
1027+ // of Rust.
10281028 type T = & ' static [ ( char , char ) ] ;
10291029 match * kind {
10301030 Alnum => {
@@ -1599,8 +1599,7 @@ mod tests {
15991599 fn escape ( ) {
16001600 assert_eq ! (
16011601 t( r"\\\.\+\*\?\(\)\|\[\]\{\}\^\$\#" ) ,
1602- hir_lit( r"\.+*?()|[]{}^$#" ) ,
1603- ) ;
1602+ hir_lit( r"\.+*?()|[]{}^$#" ) ) ;
16041603 }
16051604
16061605 #[ test]
Original file line number Diff line number Diff line change @@ -205,8 +205,7 @@ mod tests {
205205 fn escape_meta ( ) {
206206 assert_eq ! (
207207 escape( r"\.+*?()|[]{}^$#&-~" ) ,
208- r"\\\.\+\*\?\(\)\|\[\]\{\}\^\$\#\&\-\~" . to_string( ) ,
209- ) ;
208+ r"\\\.\+\*\?\(\)\|\[\]\{\}\^\$\#\&\-\~" . to_string( ) ) ;
210209 }
211210
212211 #[ test]
You can’t perform that action at this time.
0 commit comments