diff options
| author | The Miri Cronjob Bot <miri@cron.bot> | 2024-05-03 05:03:41 +0000 |
|---|---|---|
| committer | The Miri Cronjob Bot <miri@cron.bot> | 2024-05-03 05:03:41 +0000 |
| commit | 3e2164fef272ba5fe9c08be264677d348cf50c3a (patch) | |
| tree | 17a62ce597923eb94a6fc85099d0403288e38ec1 /compiler/rustc_lint/src/reference_casting.rs | |
| parent | aeef18043eba235bb4bc74f169ee92ffaa3024db (diff) | |
| parent | f43e3e2023f28d7e7a9f870612c6f2ef867a2acb (diff) | |
| download | rust-3e2164fef272ba5fe9c08be264677d348cf50c3a.tar.gz rust-3e2164fef272ba5fe9c08be264677d348cf50c3a.zip | |
Merge from rustc
Diffstat (limited to 'compiler/rustc_lint/src/reference_casting.rs')
| -rw-r--r-- | compiler/rustc_lint/src/reference_casting.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_lint/src/reference_casting.rs b/compiler/rustc_lint/src/reference_casting.rs index 9b938b34c00..9fed91f7262 100644 --- a/compiler/rustc_lint/src/reference_casting.rs +++ b/compiler/rustc_lint/src/reference_casting.rs @@ -2,6 +2,7 @@ use rustc_ast::Mutability; use rustc_hir::{Expr, ExprKind, UnOp}; use rustc_middle::ty::layout::LayoutOf as _; use rustc_middle::ty::{self, layout::TyAndLayout}; +use rustc_session::{declare_lint, declare_lint_pass}; use rustc_span::sym; use crate::{lints::InvalidReferenceCastingDiag, LateContext, LateLintPass, LintContext}; |
