mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-31 22:41:50 +00:00
Rollup merge of #104873 - RalfJung:therefore, r=Dylan-DPC
RefCell::get_mut: fix typo and fix the same typo in a bunch of other places
This commit is contained in:
commit
f360686ed6
@ -1025,7 +1025,7 @@ impl<T: ?Sized> RefCell<T> {
|
||||
///
|
||||
/// Since this method borrows `RefCell` mutably, it is statically guaranteed
|
||||
/// that no borrows to the underlying data exist. The dynamic checks inherent
|
||||
/// in [`borrow_mut`] and most other methods of `RefCell` are therefor
|
||||
/// in [`borrow_mut`] and most other methods of `RefCell` are therefore
|
||||
/// unnecessary.
|
||||
///
|
||||
/// This method can only be called if `RefCell` can be mutably borrowed,
|
||||
|
@ -6,7 +6,7 @@ use super::verify_inside_clippy_dir;
|
||||
/// Rusts setup uses `git rev-parse --git-common-dir` to get the root directory of the repo.
|
||||
/// I've decided against this for the sake of simplicity and to make sure that it doesn't install
|
||||
/// the hook if `clippy_dev` would be used in the rust tree. The hook also references this tool
|
||||
/// for formatting and should therefor only be used in a normal clone of clippy
|
||||
/// for formatting and should therefore only be used in a normal clone of clippy
|
||||
const REPO_GIT_DIR: &str = ".git";
|
||||
const HOOK_SOURCE_FILE: &str = "util/etc/pre-commit.sh";
|
||||
const HOOK_TARGET_FILE: &str = ".git/hooks/pre-commit";
|
||||
|
@ -113,7 +113,7 @@ impl HirEqInterExpr<'_, '_, '_> {
|
||||
}
|
||||
}
|
||||
|
||||
// eq_pat adds the HirIds to the locals map. We therefor call it last to make sure that
|
||||
// eq_pat adds the HirIds to the locals map. We therefore call it last to make sure that
|
||||
// these only get added if the init and type is equal.
|
||||
both(&l.init, &r.init, |l, r| self.eq_expr(l, r))
|
||||
&& both(&l.ty, &r.ty, |l, r| self.eq_ty(l, r))
|
||||
|
Loading…
Reference in New Issue
Block a user