diff options
| author | bors <bors@rust-lang.org> | 2023-12-30 11:40:42 +0000 | 
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-12-30 11:40:42 +0000 | 
| commit | d59f06fc64844ec2073e5e888f7470989ef25ff9 (patch) | |
| tree | 8e7a3d6f6f3ee36a2370ec584af9c8c4431220bc /compiler | |
| parent | c2354aabeaac01f1530b4439eb2339b1c15aceb4 (diff) | |
| parent | e930ea274e1b0cdc9f69b0e57f71c3893204aca6 (diff) | |
| download | rust-d59f06fc64844ec2073e5e888f7470989ef25ff9.tar.gz rust-d59f06fc64844ec2073e5e888f7470989ef25ff9.zip | |
Auto merge of #119437 - matthiaskrgr:rollup-esf96p6, r=matthiaskrgr
Rollup of 5 pull requests Successful merges: - #119158 (Clean up alloc::sync::Weak Clone implementation) - #119386 (fix typo in `IpAddr::to_canonical`) - #119413 (solaris support on bootstrap lock) - #119424 (Primitive docs: fix confusing `Send` in `&T`'s list) - #119425 (Fix invalid check-cfg Cargo feature diagnostic help) r? `@ghost` `@rustbot` modify labels: rollup
Diffstat (limited to 'compiler')
| -rw-r--r-- | compiler/rustc_lint/src/context.rs | 2 | 
1 files changed, 0 insertions, 2 deletions
| diff --git a/compiler/rustc_lint/src/context.rs b/compiler/rustc_lint/src/context.rs index 39c965e75d6..bd86a0be676 100644 --- a/compiler/rustc_lint/src/context.rs +++ b/compiler/rustc_lint/src/context.rs @@ -804,8 +804,6 @@ pub trait LintContext { db.span_suggestion(value_span, "there is a expected value with a similar name", format!("\"{best_match}\""), Applicability::MaybeIncorrect); } - } else if name == sym::feature && is_from_cargo { - db.help(format!("consider defining `{name}` as feature in `Cargo.toml`")); } else if let &[first_possibility] = &possibilities[..] { db.span_suggestion(name_span.shrink_to_hi(), "specify a config value", format!(" = \"{first_possibility}\""), Applicability::MaybeIncorrect); } | 
