Merge from rustc
This commit is contained in:
commit
1fdb9cf3d9
8 changed files with 1 additions and 17 deletions
|
|
@ -6,7 +6,7 @@ use rustc_index::bit_set::DenseBitSet;
|
|||
use rustc_lint::LateContext;
|
||||
use rustc_middle::mir::visit::Visitor as _;
|
||||
use rustc_middle::mir::{self, Mutability};
|
||||
use rustc_middle::ty::visit::TypeVisitor;
|
||||
use rustc_middle::ty::TypeVisitor;
|
||||
use rustc_middle::ty::{self, TyCtxt};
|
||||
use rustc_mir_dataflow::impls::MaybeStorageLive;
|
||||
use rustc_mir_dataflow::{Analysis, ResultsCursor};
|
||||
|
|
|
|||
|
|
@ -11,7 +11,6 @@ LL | impl PartialOrd for DeriveOrd {
|
|||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
= note: `-D clippy::derive-ord-xor-partial-ord` implied by `-D warnings`
|
||||
= help: to override `-D warnings` add `#[allow(clippy::derive_ord_xor_partial_ord)]`
|
||||
= note: this error originates in the derive macro `Ord` (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: you are deriving `Ord` but have implemented `PartialOrd` explicitly
|
||||
--> tests/ui/derive_ord_xor_partial_ord.rs:33:10
|
||||
|
|
@ -24,7 +23,6 @@ note: `PartialOrd` implemented here
|
|||
|
|
||||
LL | impl PartialOrd<DeriveOrdWithExplicitTypeVariable> for DeriveOrdWithExplicitTypeVariable {
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
= note: this error originates in the derive macro `Ord` (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: you are implementing `Ord` explicitly but have derived `PartialOrd`
|
||||
--> tests/ui/derive_ord_xor_partial_ord.rs:47:1
|
||||
|
|
@ -42,7 +40,6 @@ note: `PartialOrd` implemented here
|
|||
|
|
||||
LL | #[derive(PartialOrd, PartialEq, Eq)]
|
||||
| ^^^^^^^^^^
|
||||
= note: this error originates in the derive macro `PartialOrd` (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: you are implementing `Ord` explicitly but have derived `PartialOrd`
|
||||
--> tests/ui/derive_ord_xor_partial_ord.rs:69:5
|
||||
|
|
@ -60,7 +57,6 @@ note: `PartialOrd` implemented here
|
|||
|
|
||||
LL | #[derive(PartialOrd, PartialEq, Eq)]
|
||||
| ^^^^^^^^^^
|
||||
= note: this error originates in the derive macro `PartialOrd` (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: aborting due to 4 previous errors
|
||||
|
||||
|
|
|
|||
|
|
@ -10,7 +10,6 @@ note: `PartialEq` implemented here
|
|||
LL | impl PartialEq for Bar {
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^
|
||||
= note: `#[deny(clippy::derived_hash_with_manual_eq)]` on by default
|
||||
= note: this error originates in the derive macro `Hash` (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: you are deriving `Hash` but have implemented `PartialEq` explicitly
|
||||
--> tests/ui/derived_hash_with_manual_eq.rs:23:10
|
||||
|
|
@ -23,7 +22,6 @@ note: `PartialEq` implemented here
|
|||
|
|
||||
LL | impl PartialEq<Baz> for Baz {
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
= note: this error originates in the derive macro `Hash` (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: aborting due to 2 previous errors
|
||||
|
||||
|
|
|
|||
|
|
@ -36,8 +36,6 @@ error: sub-expression diverges
|
|||
|
|
||||
LL | _ => true || panic!("boo"),
|
||||
| ^^^^^^^^^^^^^
|
||||
|
|
||||
= note: this error originates in the macro `$crate::panic::panic_2021` which comes from the expansion of the macro `panic` (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: sub-expression diverges
|
||||
--> tests/ui/diverging_sub_expression.rs:52:29
|
||||
|
|
|
|||
|
|
@ -38,7 +38,6 @@ note: potential failure(s)
|
|||
|
|
||||
LL | panic!();
|
||||
| ^^^^^^^^
|
||||
= note: this error originates in the macro `$crate::panic::panic_2021` which comes from the expansion of the macro `panic` (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: consider implementing `TryFrom` instead
|
||||
--> tests/ui/fallible_impl_from.rs:40:1
|
||||
|
|
@ -64,7 +63,6 @@ LL | } else if s.parse::<u32>().unwrap() != 42 {
|
|||
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
LL | panic!("{:?}", s);
|
||||
| ^^^^^^^^^^^^^^^^^
|
||||
= note: this error originates in the macro `$crate::panic::panic_2021` which comes from the expansion of the macro `panic` (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: consider implementing `TryFrom` instead
|
||||
--> tests/ui/fallible_impl_from.rs:60:1
|
||||
|
|
@ -85,7 +83,6 @@ LL | if s.parse::<u32>().ok().unwrap() != 42 {
|
|||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
LL | panic!("{:?}", s);
|
||||
| ^^^^^^^^^^^^^^^^^
|
||||
= note: this error originates in the macro `$crate::panic::panic_2021` which comes from the expansion of the macro `panic` (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: aborting due to 4 previous errors
|
||||
|
||||
|
|
|
|||
|
|
@ -23,7 +23,6 @@ LL | #[derive(Hash)]
|
|||
= note: ... as (`hash("abc") != hash("abc".as_bytes())`
|
||||
= help: consider either removing one of the `Borrow` implementations (`Borrow<str>` or `Borrow<[u8]>`) ...
|
||||
= help: ... or not implementing `Hash` for this type
|
||||
= note: this error originates in the derive macro `Hash` (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: the semantics of `Borrow<T>` around `Hash` can't be satisfied when both `Borrow<str>` and `Borrow<[u8]>` are implemented
|
||||
--> tests/ui/impl_hash_with_borrow_str_and_bytes.rs:117:6
|
||||
|
|
|
|||
|
|
@ -6,15 +6,12 @@ LL | byte_view(panic!());
|
|||
|
|
||||
= note: `-D clippy::diverging-sub-expression` implied by `-D warnings`
|
||||
= help: to override `-D warnings` add `#[allow(clippy::diverging_sub_expression)]`
|
||||
= note: this error originates in the macro `$crate::panic::panic_2021` which comes from the expansion of the macro `panic` (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: sub-expression diverges
|
||||
--> tests/ui/issue-7447.rs:29:19
|
||||
|
|
||||
LL | group_entries(panic!());
|
||||
| ^^^^^^^^
|
||||
|
|
||||
= note: this error originates in the macro `$crate::panic::panic_2021` which comes from the expansion of the macro `panic` (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: aborting due to 2 previous errors
|
||||
|
||||
|
|
|
|||
|
|
@ -23,7 +23,6 @@ note: existing `clone` defined here
|
|||
|
|
||||
LL | #[derive(Clone)]
|
||||
| ^^^^^
|
||||
= note: this error originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: method's name is the same as an existing method in a trait
|
||||
--> tests/ui/same_name_method.rs:46:13
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue