diff options
| author | bors <bors@rust-lang.org> | 2023-05-02 06:36:44 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-05-02 06:36:44 +0000 |
| commit | 7b99493492ad59c7a44c65373558175db42b4151 (patch) | |
| tree | 3175b32e64b2e498d623f3830be4faabd89ad892 /compiler/rustc_lint/src/lints.rs | |
| parent | 5133e154590991203c84702ef59482f729b19bbf (diff) | |
| parent | 2e3373c231fdd7ce607acd2339bfee501322e8c6 (diff) | |
| download | rust-7b99493492ad59c7a44c65373558175db42b4151.tar.gz rust-7b99493492ad59c7a44c65373558175db42b4151.zip | |
Auto merge of #111089 - Dylan-DPC:rollup-b8oj6du, r=Dylan-DPC
Rollup of 7 pull requests Successful merges: - #105076 (Refactor core::char::EscapeDefault and co. structures) - #108161 (Add `ConstParamTy` trait) - #108668 (Stabilize debugger_visualizer) - #110512 (Fix elaboration with associated type bounds) - #110895 (Remove `all` in target_thread_local cfg) - #110955 (uplift `clippy::clone_double_ref` as `suspicious_double_ref_op`) - #111048 (Mark`feature(return_position_impl_trait_in_trait)` and`feature(async_fn_in_trait)` as not incomplete) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Diffstat (limited to 'compiler/rustc_lint/src/lints.rs')
| -rw-r--r-- | compiler/rustc_lint/src/lints.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/compiler/rustc_lint/src/lints.rs b/compiler/rustc_lint/src/lints.rs index 848f6a9ecb5..d7bacc6485f 100644 --- a/compiler/rustc_lint/src/lints.rs +++ b/compiler/rustc_lint/src/lints.rs @@ -1150,6 +1150,14 @@ pub struct NoopMethodCallDiag<'a> { pub label: Span, } +#[derive(LintDiagnostic)] +#[diag(lint_suspicious_double_ref_op)] +pub struct SuspiciousDoubleRefDiag<'a> { + pub call: Symbol, + pub ty: Ty<'a>, + pub op: &'static str, +} + // pass_by_value.rs #[derive(LintDiagnostic)] #[diag(lint_pass_by_value)] |
