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 4242//! another function. The `dialect` and `phase` parameters indicate which [version of MIR][dialect
4343//! docs] you are inserting here. Generally you'll want to use `#![custom_mir(dialect = "built")]`
4444//! 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.
4646//!
4747//! [dialect docs]:
4848//! 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 {
4242 /// Returns the alignment for a type.
4343 ///
4444 /// 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` .
4646 #[ unstable( feature = "ptr_alignment_type" , issue = "102070" ) ]
4747 #[ inline]
4848 pub const fn of < T > ( ) -> Self {
Original file line number Diff line number Diff line change @@ -594,7 +594,7 @@ impl Wtf8 {
594594 }
595595
596596 /// Returns the code point at `position` if it is in the ASCII range,
597- /// or `b'\xFF' otherwise.
597+ /// or `b'\xFF'` otherwise.
598598 ///
599599 /// # Panics
600600 ///
Original file line number Diff line number Diff line change @@ -203,9 +203,9 @@ fn make_owned_test(test: &&TestDescAndFn) -> TestDescAndFn {
203203 }
204204}
205205
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.
209209pub fn assert_test_result < T : Termination > ( result : T ) -> Result < ( ) , String > {
210210 let code = result. report ( ) . to_i32 ( ) ;
211211 if code == 0 {
You can’t perform that action at this time.
0 commit comments