mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 08:13:41 +00:00
Rollup merge of #124924 - goofylfg:master, r=est31
chore: remove repetitive words
This commit is contained in:
commit
a40fa8f443
@ -494,7 +494,7 @@ impl<'cx, 'tcx> MirBorrowckCtxt<'cx, 'tcx> {
|
|||||||
{
|
{
|
||||||
self.suggest_cloning(err, ty, expr, None, Some(move_spans));
|
self.suggest_cloning(err, ty, expr, None, Some(move_spans));
|
||||||
} else if self.suggest_hoisting_call_outside_loop(err, expr) {
|
} else if self.suggest_hoisting_call_outside_loop(err, expr) {
|
||||||
// The place where the the type moves would be misleading to suggest clone.
|
// The place where the type moves would be misleading to suggest clone.
|
||||||
// #121466
|
// #121466
|
||||||
self.suggest_cloning(err, ty, expr, None, Some(move_spans));
|
self.suggest_cloning(err, ty, expr, None, Some(move_spans));
|
||||||
}
|
}
|
||||||
|
@ -40,7 +40,7 @@ impl<'tcx> RegionInferenceContext<'tcx> {
|
|||||||
/// compares lifetimes directly, so we need to map the inference variables
|
/// compares lifetimes directly, so we need to map the inference variables
|
||||||
/// back to concrete lifetimes: `'static`, `ReEarlyParam` or `ReLateParam`.
|
/// back to concrete lifetimes: `'static`, `ReEarlyParam` or `ReLateParam`.
|
||||||
///
|
///
|
||||||
/// First we map the regions in the the generic parameters `_Return<'1>` to
|
/// First we map the regions in the generic parameters `_Return<'1>` to
|
||||||
/// their `external_name` giving `_Return<'a>`. This step is a bit involved.
|
/// their `external_name` giving `_Return<'a>`. This step is a bit involved.
|
||||||
/// See the [rustc-dev-guide chapter] for more info.
|
/// See the [rustc-dev-guide chapter] for more info.
|
||||||
///
|
///
|
||||||
|
Loading…
Reference in New Issue
Block a user