Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion compiler/rustc_hir_typeck/src/typeck_root_ctxt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ use rustc_trait_selection::traits::{
use std::cell::RefCell;
use std::ops::Deref;

// Data shared between a "typeck root" and its nested bodies,
/// Data shared between a "typeck root" and its nested bodies,
/// e.g. closures defined within the function. For example:
/// ```ignore (illustrative)
/// fn foo() {
Expand Down
20 changes: 10 additions & 10 deletions compiler/rustc_mir_transform/src/elaborate_drops.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,16 @@ use std::fmt;
/// as it would allow running a destructor on a place behind a reference:
///
/// ```text
// fn drop_term<T>(t: &mut T) {
// mir! {
// {
// Drop(*t, exit)
// }
// exit = {
// Return()
// }
// }
// }
/// fn drop_term<T>(t: &mut T) {
/// mir! {
/// {
/// Drop(*t, exit)
/// }
/// exit = {
/// Return()
/// }
/// }
/// }
/// ```
pub struct ElaborateDrops;

Expand Down