Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: rust-lang/rust
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: e1407164a9c9a699567b53c91c87131a882b9ad3
Choose a base ref
..
head repository: rust-lang/rust
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 9529feb761cb8848fe947cdd8004ba2323dbc8ff
Choose a head ref
Showing with 4 additions and 4 deletions.
  1. +4 −4 compiler/rustc_const_eval/src/util/check_validity_requirement.rs
Original file line number Diff line number Diff line change
@@ -38,8 +38,8 @@ pub fn check_validity_requirement<'tcx>(
}
}

/// Implements the 'strict' version of the `check_validity_requirement` checks; see that function for
/// details.
/// Implements the 'strict' version of the [`check_validity_requirement`] checks; see that function
/// for details.
fn check_validity_requirement_strict<'tcx>(
ty: TyAndLayout<'tcx>,
cx: &LayoutCx<'tcx, TyCtxt<'tcx>>,
@@ -76,8 +76,8 @@ fn check_validity_requirement_strict<'tcx>(
.is_ok())
}

/// Implements the 'lax' (default) version of the `check_validity_requirement` checks; see that function for
/// details.
/// Implements the 'lax' (default) version of the [`check_validity_requirement`] checks; see that
/// function for details.
fn check_validity_requirement_lax<'tcx>(
this: TyAndLayout<'tcx>,
cx: &LayoutCx<'tcx, TyCtxt<'tcx>>,