File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed
src/tests/codegen-backend-tests Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,8 @@ struct Cli {
1919 show_diff : bool ,
2020}
2121
22- static REGEX_IGNORE : LazyLock < Regex > = LazyLock :: new ( || Regex :: new ( r"(\d\.|\-|\*)\s+" ) . unwrap ( ) ) ;
22+ static REGEX_IGNORE : LazyLock < Regex > =
23+ LazyLock :: new ( || Regex :: new ( r"^\s*(\d\.|\-|\*)\s+" ) . unwrap ( ) ) ;
2324static REGEX_IGNORE_END : LazyLock < Regex > = LazyLock :: new ( || Regex :: new ( r"(\.|\?|;|!)$" ) . unwrap ( ) ) ;
2425static REGEX_SPLIT : LazyLock < Regex > = LazyLock :: new ( || Regex :: new ( r"(\.|\?|;|!)\s+" ) . unwrap ( ) ) ;
2526
@@ -173,7 +174,7 @@ ignore e.g. and i.e.
173174```
174175some code. block
175176```
176- some more text .
177+ sentence with *italics* should not be ignored. truly .
177178" ;
178179 let expected = "\
179180 # some. heading
@@ -190,7 +191,8 @@ ignore e.g. and i.e.
190191```
191192some code. block
192193```
193- some more text.
194+ sentence with *italics* should not be ignored.
195+ truly.
194196" ;
195197 assert_eq ! ( expected, comply( original) ) ;
196198}
Original file line number Diff line number Diff line change @@ -49,7 +49,8 @@ For example:
4949```
5050
5151The first backend in the ` codegen-backends ` array will determine which backend will be used as the
52- * default backend* of the built ` rustc ` . This also determines which backend will be used to compile the
52+ * default backend* of the built ` rustc ` .
53+ This also determines which backend will be used to compile the
5354stage 1 standard library (or anything built in stage 2+).
5455To produce ` rustc ` that uses the GCC backend
5556by default, you can thus put ` "gcc" ` as the first element of this array:
You can’t perform that action at this time.
0 commit comments