Skip to content

Commit

Permalink
Auto merge of rust-lang#82122 - bstrie:dep4real, r=dtolnay
Browse files Browse the repository at this point in the history
Deprecate `intrinsics::drop_in_place` and `collections::Bound`, which accidentally weren't deprecated

Fixes rust-lang#82080.

I've taken the liberty of updating the `since` values to 1.52, since an unobservable deprecation isn't much of a deprecation (even the detailed release notes never bothered to mention these deprecations).

As mentioned in the issue I'm *pretty* sure that using a type alias for `Bound` is semantically equivalent to the re-export; [the reference implies](https://doc.rust-lang.org/reference/items/type-aliases.html) that type aliases only observably differ from types when used on unit structs or tuple structs, whereas `Bound` is an enum.
  • Loading branch information
bors committed Mar 17, 2021
2 parents 56138ad + 7406c12 commit b62694b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clippy_lints/src/matches.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ use rustc_span::source_map::{Span, Spanned};
use rustc_span::sym;
use std::cmp::Ordering;
use std::collections::hash_map::Entry;
use std::collections::Bound;
use std::ops::Bound;

declare_clippy_lint! {
/// **What it does:** Checks for matches with a single arm where an `if let`
Expand Down

0 comments on commit b62694b

Please sign in to comment.