Skip to content

Commit 3678a65

Browse files
committed
Remove excess blank lines
Most of these snuck in with #1710. As part of the style guide, there shouldn't be double blank lines.
1 parent 3f14b0b commit 3678a65

23 files changed

+0
-58
lines changed

src/attributes/codegen.md

-10
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
r[attributes.codegen]
22
# Code generation attributes
33

4-
54
The following [attributes] are used for controlling code generation.
65

76
r[attributes.codegen.hint]
@@ -44,14 +43,12 @@ There are three ways to use the inline attribute:
4443
r[attributes.codegen.cold]
4544
### The `cold` attribute
4645

47-
4846
The *`cold` [attribute]* suggests that the attributed function is unlikely to
4947
be called.
5048

5149
r[attributes.codegen.no_builtins]
5250
## The `no_builtins` attribute
5351

54-
5552
The *`no_builtins` [attribute]* may be applied at the crate level to disable
5653
optimizing certain code patterns to invocations of library functions that are
5754
assumed to exist.
@@ -143,13 +140,11 @@ be used with a `target_feature` attribute.
143140
r[attributes.codegen.target_feature.availability]
144141
### Available features
145142

146-
147143
The following is a list of the available feature names.
148144

149145
r[attributes.codegen.target_feature.x86]
150146
#### `x86` or `x86_64`
151147

152-
153148
Executing code with unsupported features is undefined behavior on this platform.
154149
Hence on this platform usage of `#[target_feature]` functions follows the
155150
[above restrictions][attributes.codegen.target_feature.safety-restrictions].
@@ -218,7 +213,6 @@ Feature | Implicitly Enables | Description
218213
r[attributes.codegen.target_feature.aarch64]
219214
#### `aarch64`
220215

221-
222216
On this platform the usage of `#[target_feature]` functions follows the
223217
[above restrictions][attributes.codegen.target_feature.safety-restrictions].
224218

@@ -232,7 +226,6 @@ Reference Manual], or elsewhere on [developer.arm.com].
232226
> The following pairs of features should both be marked as enabled or disabled together if used:
233227
> - `paca` and `pacg`, which LLVM currently implements as one feature.
234228
235-
236229
Feature | Implicitly Enables | Feature Name
237230
---------------|--------------------|-------------------
238231
`aes` | `neon` | FEAT_AES & FEAT_PMULL --- Advanced <abbr title="Single Instruction Multiple Data">SIMD</abbr> AES & PMULL instructions
@@ -283,7 +276,6 @@ Feature | Implicitly Enables | Feature Name
283276
r[attributes.codegen.target_feature.riscv]
284277
#### `riscv32` or `riscv64`
285278

286-
287279
On this platform the usage of `#[target_feature]` functions follows the
288280
[above restrictions][attributes.codegen.target_feature.safety-restrictions].
289281

@@ -345,7 +337,6 @@ Feature | Implicitly Enables | Description
345337
r[attributes.codegen.target_feature.wasm]
346338
#### `wasm32` or `wasm64`
347339

348-
349340
Safe `#[target_feature]` functions may always be used in safe contexts on Wasm
350341
platforms. It is impossible to cause undefined behavior via the
351342
`#[target_feature]` attribute because attempting to use instructions
@@ -539,7 +530,6 @@ It is a compilation error to use the `instruction_set` attribute on a target tha
539530
r[attributes.codegen.instruction_set.arm]
540531
### On ARM
541532

542-
543533
For the `ARMv4T` and `ARMv5te` architectures, the following are supported:
544534
* `arm::a32` --- Generate the function as A32 "ARM" code.
545535
* `arm::t32` --- Generate the function as T32 "Thumb" code.

src/attributes/debugger.md

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
r[attributes.debugger]
22
# Debugger attributes
33

4-
54
The following [attributes] are used for enhancing the debugging experience when using third-party debuggers like GDB or WinDbg.
65

76
r[attributes.debugger.debugger_visualizer]

src/attributes/limits.md

-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
r[attributes.limits]
22
# Limits
33

4-
54
The following [attributes] affect compile-time limits.
65

76
r[attributes.limits.recursion_limit]
@@ -44,7 +43,6 @@ a!{}
4443
r[attributes.limits.type_length_limit]
4544
## The `type_length_limit` attribute
4645

47-
4846
> [!NOTE]
4947
> This limit is only enforced when the nightly `-Zenforce-type-length-limit` flag is active.
5048
>

src/attributes/testing.md

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
r[attributes.testing]
22
# Testing attributes
33

4-
54
The following [attributes] are used for specifying functions for performing
65
tests. Compiling a crate in "test" mode enables building the test functions
76
along with a test harness for executing the tests. Enabling the test mode also

src/comments.md

-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
r[comments.syntax]
22
# Comments
33

4-
54
> **<sup>Lexer</sup>**\
65
> LINE_COMMENT :\
76
> &nbsp;&nbsp; &nbsp;&nbsp; `//` (~\[`/` `!` `\n`] | `//`) ~`\n`<sup>\*</sup>\
@@ -37,7 +36,6 @@ r[comments.syntax]
3736
r[comments.normal]
3837
## Non-doc comments
3938

40-
4139
Comments follow the general C++ style of line (`//`) and
4240
block (`/* ... */`) comment forms. Nested block comments are supported.
4341

src/conditional-compilation.md

-4
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,6 @@ r[cfg.target_has_atomic.stdlib]
263263
When this cfg is present, all of the stable [`core::sync::atomic`] APIs are available for
264264
the relevant atomic width.
265265

266-
267266
r[cfg.target_has_atomic.values]
268267
Possible values:
269268

@@ -277,14 +276,12 @@ Possible values:
277276
r[cfg.test]
278277
### `test`
279278

280-
281279
Enabled when compiling the test harness. Done with `rustc` by using the
282280
[`--test`] flag. See [Testing] for more on testing support.
283281

284282
r[cfg.debug_assertions]
285283
### `debug_assertions`
286284

287-
288285
Enabled by default when compiling without optimizations.
289286
This can be used to enable extra debugging code in development but not in
290287
production. For example, it controls the behavior of the standard library's
@@ -293,7 +290,6 @@ production. For example, it controls the behavior of the standard library's
293290
r[cfg.proc_macro]
294291
### `proc_macro`
295292

296-
297293
Set when the crate being compiled is being compiled with the `proc_macro`
298294
[crate type].
299295

src/destructors.md

-5
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,6 @@ r[destructors.scope.nesting.other]
136136
r[destructors.scope.params]
137137
### Scopes of function parameters
138138

139-
140139
All function parameters are in the scope of the entire function body, so are
141140
dropped last when evaluating the function. Each actual function parameter is
142141
dropped after any bindings introduced in that parameter's pattern.
@@ -266,7 +265,6 @@ match PrintOnDrop("Matched value in final expression") {
266265
r[destructors.scope.operands]
267266
### Operands
268267

269-
270268
Temporaries are also created to hold the result of operands to an expression
271269
while the other operands are evaluated. The temporaries are associated to the
272270
scope of the expression with that operand. Since the temporaries are moved from
@@ -298,7 +296,6 @@ loop {
298296
r[destructors.scope.const-promotion]
299297
### Constant promotion
300298

301-
302299
Promotion of a value expression to a `'static` slot occurs when the expression
303300
could be written in a constant and borrowed, and that borrow could be dereferenced
304301
where
@@ -311,7 +308,6 @@ always has the type `&'static Option<_>`, as it contains nothing disallowed).
311308
r[destructors.scope.lifetime-extension]
312309
### Temporary lifetime extension
313310

314-
315311
> [!NOTE]
316312
> The exact rules for temporary lifetime extension are subject to change. This is describing the current behavior only.
317313
@@ -368,7 +364,6 @@ scope of the initializer expression is extended.
368364
r[destructors.scope.lifetime-extension.exprs]
369365
#### Extending based on expressions
370366

371-
372367
For a let statement with an initializer, an *extending expression* is an
373368
expression which is one of the following:
374369

src/identifiers.md

-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ Identifiers are restricted to the ASCII subset of [`XID_Start`] and [`XID_Contin
5656
r[ident.normalization]
5757
## Normalization
5858

59-
6059
Identifiers are normalized using Normalization Form C (NFC) as defined in [Unicode Standard Annex #15][UAX15]. Two identifiers are equal if their NFC forms are equal.
6160

6261
[Procedural][proc-macro] and [declarative][mbe] macros receive normalized identifiers in their input.

src/inline-assembly.md

-1
Original file line numberDiff line numberDiff line change
@@ -1473,7 +1473,6 @@ assert_eq!(s, "Hello World!");
14731473
r[asm.target-specific-directives]
14741474
#### Target Specific Directive Support
14751475

1476-
14771476
r[asm.target-specific-directives.dwarf-unwinding]
14781477
##### Dwarf Unwinding
14791478

src/input-format.md

-3
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,11 @@ It is an error if the file is not valid UTF-8.
1818
r[input.byte-order-mark]
1919
## Byte order mark removal
2020

21-
2221
If the first character in the sequence is `U+FEFF` ([BYTE ORDER MARK]), it is removed.
2322

2423
r[input.crlf]
2524
## CRLF normalization
2625

27-
2826
Each pair of characters `U+000D` (CR) immediately followed by `U+000A` (LF) is replaced by a single `U+000A` (LF).
2927

3028
Other occurrences of the character `U+000D` (CR) are left in place (they are treated as [whitespace]).
@@ -56,7 +54,6 @@ This prevents an [inner attribute] at the start of a source file being removed.
5654
r[input.tokenization]
5755
## Tokenization
5856

59-
6057
The resulting sequence of characters is then converted into tokens as described in the remainder of this chapter.
6158

6259
[inner attribute]: attributes.md

src/linkage.md

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
r[link]
22
# Linkage
33

4-
54
> [!NOTE]
65
> This section is described more in terms of the compiler than of the language.
76

src/macro-ambiguity.md

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
r[macro.ambiguity]
22
# Appendix: Macro Follow-Set Ambiguity Formal Specification
33

4-
54
This page documents the formal specification of the follow rules for [Macros
65
By Example]. They were originally specified in [RFC 550], from which the bulk
76
of this text is copied, and expanded upon in subsequent RFCs.

src/macros-by-example.md

-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,6 @@ instance, the matcher `(())` will match `{()}` but not `{{}}`. The character
8787
r[macro.decl.transcription.fragment]
8888
### Forwarding a matched fragment
8989

90-
9190
When forwarding a matched fragment to another macro-by-example, matchers in
9291
the second macro will see an opaque AST of the fragment type. The second macro
9392
can't use literal tokens to match the fragments in the matcher, only a

src/names/preludes.md

-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ Edition | `no_std` not applied | `no_std` applied
3535
2021 | [`std::prelude::rust_2021`] | [`core::prelude::rust_2021`]
3636
2024 | [`std::prelude::rust_2024`] | [`core::prelude::rust_2024`]
3737

38-
3938
> [!NOTE]
4039
> [`std::prelude::rust_2015`] and [`std::prelude::rust_2018`] have the same contents as [`std::prelude::v1`].
4140
>

src/procedural-macros.md

-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ with any token, such as through getting a `Span` from another token.
6969
r[macro.proc.hygiene]
7070
### Procedural macro hygiene
7171
72-
7372
Procedural macros are *unhygienic*. This means they behave as if the output
7473
token stream was simply written inline to the code it's next to. This means that
7574
it's affected by external items and also affects external imports.

src/statements-and-expressions.md

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
r[stmt-expr]
22
# Statements and expressions
33

4-
54
Rust is _primarily_ an expression language.
65
This means that most forms of value-producing or effect-causing evaluation are directed by the uniform syntax category of _expressions_.
76
Each kind of expression can typically _nest_ within each other kind of expression, and rules for evaluation of expressions involve specifying both the value produced by the expression and the order in which its sub-expressions are themselves evaluated.

src/statements.md

-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ Rust has two kinds of statement: [declaration statements](#declaration-statement
1919
r[statement.decl]
2020
## Declaration statements
2121

22-
2322
A *declaration statement* is one that introduces one or more *names* into the enclosing statement block.
2423
The declared names may denote new variables or new [items][item].
2524

@@ -147,7 +146,6 @@ if true {
147146
r[statement.attribute]
148147
## Attributes on Statements
149148

150-
151149
Statements accept [outer attributes].
152150
The attributes that have meaning on a statement are [`cfg`], and [the lint check attributes].
153151

src/tokens.md

-4
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,6 @@ c"\\x52"; cr"\x52"; // \x52
491491
r[lex.token.literal.num]
492492
### Number literals
493493

494-
495494
A _number literal_ is either an _integer literal_ or a _floating-point
496495
literal_. The grammar for recognizing the two kinds of literals is mixed.
497496

@@ -584,7 +583,6 @@ Examples of integer literals which are accepted as literal expressions:
584583

585584
Note that `-1i8`, for example, is analyzed as two tokens: `-` followed by `1i8`.
586585

587-
588586
Examples of integer literals which are not accepted as literal expressions:
589587

590588
```rust
@@ -687,7 +685,6 @@ Examples of floating-point literals which are not accepted as literal expression
687685
r[lex.token.literal.reserved]
688686
#### Reserved forms similar to number literals
689687

690-
691688
> **<sup>Lexer</sup>**\
692689
> RESERVED_NUMBER :\
693690
> &nbsp;&nbsp; &nbsp;&nbsp; BIN_LITERAL \[`2`-`9`&ZeroWidthSpace;]\
@@ -836,7 +833,6 @@ usages and meanings are defined in the linked pages.
836833
r[lex.token.delim]
837834
## Delimiters
838835

839-
840836
Bracket punctuation is used in various parts of the grammar. An open bracket
841837
must always be paired with a close bracket. Brackets and the tokens within
842838
them are referred to as "token trees" in [macros]. The three types of brackets are:

src/trait-bounds.md

-2
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,6 @@ Trait and lifetime bounds are also used to name [trait objects].
120120
r[bound.sized]
121121
## `?Sized`
122122

123-
124123
`?` is only used to relax the implicit [`Sized`] trait bound for [type parameters] or [associated types].
125124
`?Sized` may not be used as a bound for other types.
126125

@@ -270,7 +269,6 @@ impl<'a, T> Trait<'a, T> for &'a T {}
270269
r[bound.use]
271270
## Use bounds
272271

273-
274272
Certain bounds lists may include a `use<..>` bound to control which generic parameters are captured by the `impl Trait` [abstract return type]. See [precise capturing] for more details.
275273

276274
[IDENTIFIER]: identifiers.html

0 commit comments

Comments
 (0)