File tree Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 42
42
//! another function. The `dialect` and `phase` parameters indicate which [version of MIR][dialect
43
43
//! docs] you are inserting here. Generally you'll want to use `#![custom_mir(dialect = "built")]`
44
44
//! if you want your MIR to be modified by the full MIR pipeline, or `#![custom_mir(dialect =
45
- //! "runtime", phase = "optimized")] if you don't.
45
+ //! "runtime", phase = "optimized")]` if you don't.
46
46
//!
47
47
//! [dialect docs]:
48
48
//! https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/mir/enum.MirPhase.html
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ impl Alignment {
42
42
/// Returns the alignment for a type.
43
43
///
44
44
/// This provides the same numerical value as [`mem::align_of`],
45
- /// but in an `Alignment` instead of a `usize.
45
+ /// but in an `Alignment` instead of a `usize` .
46
46
#[ unstable( feature = "ptr_alignment_type" , issue = "102070" ) ]
47
47
#[ inline]
48
48
pub const fn of < T > ( ) -> Self {
Original file line number Diff line number Diff line change @@ -594,7 +594,7 @@ impl Wtf8 {
594
594
}
595
595
596
596
/// Returns the code point at `position` if it is in the ASCII range,
597
- /// or `b'\xFF' otherwise.
597
+ /// or `b'\xFF'` otherwise.
598
598
///
599
599
/// # Panics
600
600
///
Original file line number Diff line number Diff line change @@ -203,9 +203,9 @@ fn make_owned_test(test: &&TestDescAndFn) -> TestDescAndFn {
203
203
}
204
204
}
205
205
206
- /// Invoked when unit tests terminate. Returns `Result::Err` if the test is
207
- /// considered a failure. By default, invokes ` report() and checks for a `0`
208
- /// result.
206
+ /// Invoked when unit tests terminate. Returns [ `Result::Err`] if the test is
207
+ /// considered a failure. By default, invokes [`Termination:: report`] and checks
208
+ /// for a `0` result.
209
209
pub fn assert_test_result < T : Termination > ( result : T ) -> Result < ( ) , String > {
210
210
let code = result. report ( ) . to_i32 ( ) ;
211
211
if code == 0 {
You can’t perform that action at this time.
0 commit comments