Merge remote-tracking branch 'upstream/master' into rustup

This commit is contained in:
flip1995 2022-01-13 12:11:21 +01:00
commit 11be495bde
No known key found for this signature in database
GPG key ID: 1CA0DF2AF59D68A5
226 changed files with 3283 additions and 1696 deletions

View file

@ -63,7 +63,7 @@ declare_clippy_lint! {
declare_lint_pass!(InconsistentStructConstructor => [INCONSISTENT_STRUCT_CONSTRUCTOR]);
impl LateLintPass<'_> for InconsistentStructConstructor {
impl<'tcx> LateLintPass<'tcx> for InconsistentStructConstructor {
fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &'tcx hir::Expr<'_>) {
if_chain! {
if !expr.span.from_expansion();