File tree 2 files changed +4
-6
lines changed
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 {
1023
1023
fn ascii_class ( kind : & ast:: ClassAsciiKind ) -> & ' static [ ( char , char ) ] {
1024
1024
use ast:: ClassAsciiKind :: * ;
1025
1025
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.
1028
1028
type T = & ' static [ ( char , char ) ] ;
1029
1029
match * kind {
1030
1030
Alnum => {
@@ -1599,8 +1599,7 @@ mod tests {
1599
1599
fn escape ( ) {
1600
1600
assert_eq ! (
1601
1601
t( r"\\\.\+\*\?\(\)\|\[\]\{\}\^\$\#" ) ,
1602
- hir_lit( r"\.+*?()|[]{}^$#" ) ,
1603
- ) ;
1602
+ hir_lit( r"\.+*?()|[]{}^$#" ) ) ;
1604
1603
}
1605
1604
1606
1605
#[ test]
Original file line number Diff line number Diff line change @@ -205,8 +205,7 @@ mod tests {
205
205
fn escape_meta ( ) {
206
206
assert_eq ! (
207
207
escape( r"\.+*?()|[]{}^$#&-~" ) ,
208
- r"\\\.\+\*\?\(\)\|\[\]\{\}\^\$\#\&\-\~" . to_string( ) ,
209
- ) ;
208
+ r"\\\.\+\*\?\(\)\|\[\]\{\}\^\$\#\&\-\~" . to_string( ) ) ;
210
209
}
211
210
212
211
#[ test]
You can’t perform that action at this time.
0 commit comments