Skip to content

Commit 904dd2c

Browse files
committed
Bless tidy
1 parent 8af42f6 commit 904dd2c

File tree

8 files changed

+11
-11
lines changed

8 files changed

+11
-11
lines changed

compiler/rustc_attr/src/builtin.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ impl UnstableReason {
227227
}
228228

229229
/// Collects stability info from `stable`/`unstable`/`rustc_allowed_through_unstable_modules`
230-
/// attributes in `attrs`. Returns `None` if no stability attributes are found.
230+
/// attributes in `attrs`. Returns `None` if no stability attributes are found.
231231
pub fn find_stability(
232232
sess: &Session,
233233
attrs: &[Attribute],
@@ -281,7 +281,7 @@ pub fn find_stability(
281281
}
282282

283283
/// Collects stability info from `rustc_const_stable`/`rustc_const_unstable`/`rustc_promotable`
284-
/// attributes in `attrs`. Returns `None` if no stability attributes are found.
284+
/// attributes in `attrs`. Returns `None` if no stability attributes are found.
285285
pub fn find_const_stability(
286286
sess: &Session,
287287
attrs: &[Attribute],

compiler/rustc_codegen_ssa/src/back/linker.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1621,7 +1621,7 @@ impl<'a> Linker for AixLinker<'a> {
16211621
let path = tmpdir.join("list.exp");
16221622
let res: io::Result<()> = try {
16231623
let mut f = BufWriter::new(File::create(&path)?);
1624-
// TODO: use llvm-nm to generate export list.
1624+
// FIXME: use llvm-nm to generate export list.
16251625
for symbol in symbols {
16261626
debug!(" _{}", symbol);
16271627
writeln!(f, " {}", symbol)?;

compiler/rustc_error_codes/src/error_codes/E0080.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ or causing an integer overflow are two ways to induce this error.
1616
Ensure that the expressions given can be evaluated as the desired integer type.
1717

1818
See the [Discriminants] section of the Reference for more information about
19-
setting custom integer types on enums using the [`repr` attribute][repr-attribute].
19+
setting custom integer types on enums using the
20+
[`repr` attribute][repr-attribute].
2021

2122
[discriminants]: https://doc.rust-lang.org/reference/items/enumerations.html#discriminants
2223
[repr-attribute]: https://doc.rust-lang.org/reference/type-layout.html#representations

compiler/rustc_error_codes/src/error_codes/E0794.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,6 @@ In the definition of `bar`, the lifetime parameter `'a` is late-bound, while
5959
where `'a` is universally quantified and `'b` is substituted by a specific
6060
lifetime. It is not allowed to explicitly specify early-bound lifetime
6161
arguments when late-bound lifetime parameters are present (as for `bar_fn2`,
62-
see [issue #42868](https://github.com/rust-lang/rust/issues/42868)), although the
63-
types that are constrained by early-bound parameters can be specified (as for
64-
`bar_fn3`).
62+
see [issue #42868](https://github.com/rust-lang/rust/issues/42868)), although
63+
the types that are constrained by early-bound parameters can be specified (as
64+
for `bar_fn3`).

compiler/rustc_mir_build/src/build/expr/as_rvalue.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -568,7 +568,7 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
568568
BinOp::Shl | BinOp::Shr if self.check_overflow && ty.is_integral() => {
569569
// For an unsigned RHS, the shift is in-range for `rhs < bits`.
570570
// For a signed RHS, `IntToInt` cast to the equivalent unsigned
571-
// type and do that same comparison. Because the type is the
571+
// type and do that same comparison. Because the type is the
572572
// same size, there's no negative shift amount that ends up
573573
// overlapping with valid ones, thus it catches negatives too.
574574
let (lhs_size, _) = ty.int_size_and_signed(self.tcx);

src/doc/unstable-book/src/compiler-flags/sanitizer.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ See the [Clang ControlFlowIntegrity documentation][clang-cfi] for more details.
213213
214214
## Example
215215
216-
```rust,ignore
216+
```rust,ignore (making doc tests pass cross-platform is hard)
217217
#![feature(naked_functions)]
218218
219219
use std::arch::asm;

tests/rustdoc/issue-108925.rs

-1
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,3 @@ pub enum MyThing {
88
#[doc(hidden)]
99
NotShown,
1010
}
11-

tests/ui/const-generics/generic_const_exprs/typeid-equality-by-subtyping.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const fn to_usize<T: 'static>() -> usize {
1717
match TypeId::of::<T>() {
1818
WHAT_A_TYPE => 0,
1919
_ => 1000,
20-
}
20+
}
2121
}
2222
impl<T: 'static> AssocCt for T {
2323
const ASSOC: usize = to_usize::<T>();

0 commit comments

Comments
 (0)