Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
7289383
Adjust rc::Weak::from_raw to support unsized T
CAD97 Jul 8, 2020
0c61ce2
?Sized bounds for rc::Weak::as_ptr and friends
CAD97 Jul 8, 2020
5e7406c
Adjust sync::Weak::from_raw to support unsized T
CAD97 Jul 14, 2020
9d9903c
Allow Weak::as_ptr and friends for unsized T
CAD97 Jul 14, 2020
3d07108
Add tests for weak into/from raw
CAD97 Jul 14, 2020
43c181b
Use `tracing` spans to trace the entire MIR interp stack
oli-obk Aug 4, 2020
e05e2f9
bootstrap: add ./x.py run src/tools/build-manifest
pietroalbini Sep 30, 2020
d4928ad
build-manifest: keep legacy behavior when invoking through ./x.py dist
pietroalbini Sep 30, 2020
6e15975
build-manifest: split the manifest struct definition in a separate file
pietroalbini Sep 30, 2020
5fdf436
unwind: Move linux-gnu library linking to lib.rs and libc
joshtriplett Sep 21, 2020
99557fc
Support static linking with glibc and target-feature=+crt-static
joshtriplett Sep 21, 2020
50ce45b
Cargo.lock: Update libc
joshtriplett Oct 1, 2020
c1e17f5
Add a regression test for issue-66501
JohnTitor Oct 1, 2020
8631e1c
Add a regression test for issue-68951
JohnTitor Oct 1, 2020
50ffd6b
Add a regression test for issue-72565
JohnTitor Oct 1, 2020
d4fdf6e
Add a regression test for issue-74244
JohnTitor Oct 1, 2020
38f460f
Add a regression test for issue-75299
JohnTitor Oct 1, 2020
8f9472c
Only mention that a stack frame is being popped when starting to do so
oli-obk Oct 1, 2020
0375ee8
build-manifest: move generating a target to the manifest mod
pietroalbini Oct 1, 2020
acd8e59
build-manifest: calculate checksums lazily and in parallel
pietroalbini Oct 1, 2020
fde1135
build-manifest: avoid collecting SHAs in parallel on legacy mode
pietroalbini Oct 1, 2020
9352062
build-manifest: use BufReader
pietroalbini Oct 1, 2020
2e8f705
Add comment explaining why libunwind doesn't need to link libgcc_eh
joshtriplett Oct 1, 2020
cd159fd
Uplift drop-bounds lint from clippy
notriddle Aug 19, 2020
cadd12b
Implement Make `handle_alloc_error` default to panic (for no_std + li…
haraldh Sep 7, 2020
dceb81a
Deprecate clippy lint
notriddle Oct 2, 2020
4c9bcf3
Fix test name
camelid Oct 2, 2020
87f3f81
Improve rustdoc error for failed intra-doc link resolution
camelid Oct 2, 2020
0193a88
Remove unhelpful help message
camelid Oct 2, 2020
21fb9df
Use old error when there's partial resolution
camelid Oct 3, 2020
aa9b718
Improve error messages
camelid Oct 3, 2020
e27ef13
grammar nit
RalfJung Oct 3, 2020
f762dd8
Rollup merge of #74160 - CAD97:weak-as-unsized-ptr, r=RalfJung
Dylan-DPC Oct 3, 2020
61a30c1
Rollup merge of #75143 - oli-obk:tracing, r=RalfJung
Dylan-DPC Oct 3, 2020
291f520
Rollup merge of #75699 - notriddle:drop-bounds-lint, r=petrochenkov
Dylan-DPC Oct 3, 2020
ac5debc
Rollup merge of #76448 - haraldh:default_alloc_error_handler_reduced,…
Dylan-DPC Oct 3, 2020
eda4050
Rollup merge of #77386 - joshtriplett:static-glibc, r=petrochenkov
Dylan-DPC Oct 3, 2020
a341710
Rollup merge of #77388 - JohnTitor:add-tests, r=Dylan-DPC
Dylan-DPC Oct 3, 2020
3bf2d24
Rollup merge of #77407 - pietroalbini:less-build-manifest, r=Mark-Sim…
Dylan-DPC Oct 3, 2020
4edbfac
Rollup merge of #77468 - camelid:fix-test-name, r=Dylan-DPC
Dylan-DPC Oct 3, 2020
3f2a53f
Rollup merge of #77469 - camelid:rustdoc-better-failed-res-error, r=j…
Dylan-DPC Oct 3, 2020
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Deprecate clippy lint
  • Loading branch information
notriddle committed Oct 2, 2020
commit dceb81af1ea4cbefd5e8bf49f738e03e9e3fac9c
9 changes: 9 additions & 0 deletions src/tools/clippy/clippy_lints/src/deprecated_lints.rs
Original file line number Diff line number Diff line change
Expand Up @@ -163,3 +163,12 @@ declare_deprecated_lint! {
pub REGEX_MACRO,
"the regex! macro has been removed from the regex crate in 2018"
}

declare_deprecated_lint! {
/// **What it does:** Nothing. This lint has been deprecated.
///
/// **Deprecation reason:** This lint has been uplifted to rustc and is now called
/// `drop_bounds`.
pub DROP_BOUNDS,
"this lint has been uplifted to rustc and is now called `drop_bounds`"
}
73 changes: 0 additions & 73 deletions src/tools/clippy/clippy_lints/src/drop_bounds.rs

This file was deleted.

9 changes: 4 additions & 5 deletions src/tools/clippy/clippy_lints/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,6 @@ mod derive;
mod doc;
mod double_comparison;
mod double_parens;
mod drop_bounds;
mod drop_forget_ref;
mod duration_subsec;
mod else_if_without_else;
Expand Down Expand Up @@ -478,6 +477,10 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
"clippy::regex_macro",
"the regex! macro has been removed from the regex crate in 2018",
);
store.register_removed(
"clippy::drop_bounds",
"this lint has been uplifted to rustc and is now called `drop_bounds`",
);
// end deprecated lints, do not remove this comment, it’s used in `update_lints`

// begin register lints, do not remove this comment, it’s used in `update_lints`
Expand Down Expand Up @@ -532,7 +535,6 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
&doc::NEEDLESS_DOCTEST_MAIN,
&double_comparison::DOUBLE_COMPARISONS,
&double_parens::DOUBLE_PARENS,
&drop_bounds::DROP_BOUNDS,
&drop_forget_ref::DROP_COPY,
&drop_forget_ref::DROP_REF,
&drop_forget_ref::FORGET_COPY,
Expand Down Expand Up @@ -959,7 +961,6 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
store.register_late_pass(|| box strings::StringLitAsBytes);
store.register_late_pass(|| box derive::Derive);
store.register_late_pass(|| box types::CharLitAsU8);
store.register_late_pass(|| box drop_bounds::DropBounds);
store.register_late_pass(|| box get_last_with_len::GetLastWithLen);
store.register_late_pass(|| box drop_forget_ref::DropForgetRef);
store.register_late_pass(|| box empty_enum::EmptyEnum);
Expand Down Expand Up @@ -1282,7 +1283,6 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
LintId::of(&doc::NEEDLESS_DOCTEST_MAIN),
LintId::of(&double_comparison::DOUBLE_COMPARISONS),
LintId::of(&double_parens::DOUBLE_PARENS),
LintId::of(&drop_bounds::DROP_BOUNDS),
LintId::of(&drop_forget_ref::DROP_COPY),
LintId::of(&drop_forget_ref::DROP_REF),
LintId::of(&drop_forget_ref::FORGET_COPY),
Expand Down Expand Up @@ -1714,7 +1714,6 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
LintId::of(&copies::IF_SAME_THEN_ELSE),
LintId::of(&derive::DERIVE_HASH_XOR_EQ),
LintId::of(&derive::DERIVE_ORD_XOR_PARTIAL_ORD),
LintId::of(&drop_bounds::DROP_BOUNDS),
LintId::of(&drop_forget_ref::DROP_COPY),
LintId::of(&drop_forget_ref::DROP_REF),
LintId::of(&drop_forget_ref::FORGET_COPY),
Expand Down
1 change: 0 additions & 1 deletion src/tools/clippy/clippy_lints/src/utils/paths.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ pub const DISPLAY_FMT_METHOD: [&str; 4] = ["core", "fmt", "Display", "fmt"];
pub const DISPLAY_TRAIT: [&str; 3] = ["core", "fmt", "Display"];
pub const DOUBLE_ENDED_ITERATOR: [&str; 4] = ["core", "iter", "traits", "DoubleEndedIterator"];
pub const DROP: [&str; 3] = ["core", "mem", "drop"];
pub const DROP_TRAIT: [&str; 4] = ["core", "ops", "drop", "Drop"];
pub const DURATION: [&str; 3] = ["core", "time", "Duration"];
pub const EARLY_CONTEXT: [&str; 4] = ["rustc", "lint", "context", "EarlyContext"];
pub const EXIT: [&str; 3] = ["std", "process", "exit"];
Expand Down
7 changes: 0 additions & 7 deletions src/tools/clippy/src/lintlist/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -423,13 +423,6 @@ pub static ref ALL_LINTS: Vec<Lint> = vec![
deprecation: None,
module: "double_parens",
},
Lint {
name: "drop_bounds",
group: "correctness",
desc: "bounds of the form `T: Drop` are useless",
deprecation: None,
module: "drop_bounds",
},
Lint {
name: "drop_copy",
group: "correctness",
Expand Down
1 change: 1 addition & 0 deletions src/tools/clippy/tests/ui/deprecated.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@
#[warn(clippy::into_iter_on_array)]
#[warn(clippy::unused_label)]
#[warn(clippy::regex_macro)]
#[warn(clippy::drop_bounds)]

fn main() {}
8 changes: 7 additions & 1 deletion src/tools/clippy/tests/ui/deprecated.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,17 @@ error: lint `clippy::regex_macro` has been removed: `the regex! macro has been r
LL | #[warn(clippy::regex_macro)]
| ^^^^^^^^^^^^^^^^^^^

error: lint `clippy::drop_bounds` has been removed: `this lint has been uplifted to rustc and is now called `drop_bounds``
--> $DIR/deprecated.rs:11:8
|
LL | #[warn(clippy::drop_bounds)]
| ^^^^^^^^^^^^^^^^^^^

error: lint `clippy::str_to_string` has been removed: `using `str::to_string` is common even today and specialization will likely happen soon`
--> $DIR/deprecated.rs:1:8
|
LL | #[warn(clippy::str_to_string)]
| ^^^^^^^^^^^^^^^^^^^^^

error: aborting due to 11 previous errors
error: aborting due to 12 previous errors

8 changes: 0 additions & 8 deletions src/tools/clippy/tests/ui/drop_bounds.rs

This file was deleted.

16 changes: 0 additions & 16 deletions src/tools/clippy/tests/ui/drop_bounds.stderr

This file was deleted.