You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
gnzlbg opened this issue
Oct 27, 2018
· 4 comments
· Fixed by #65310
Labels
A-lintsArea: Lints (warnings about flaws in source code) such as unused_mut.A-macrosArea: All kinds of macros (custom derive, macro_rules!, proc macros, ..)C-bugCategory: This is a bug.
Compiling playground v0.0.1 (/playground)
warning: use of deprecated item 'A': oh noes
|
= note: #[warn(deprecated)] on by default
warning: use of deprecated item 'B': oh noes
error[E0277]: can't compare `B` with `B`
--> src/main.rs:6:10
|
6 | #[derive(PartialOrd)]
| ^^^^^^^^^^ no implementation for `B == B`
|
= help: the trait `std::cmp::PartialEq` is not implemented for `B`
error: aborting due to previous error
An easy fix might be to #[allow(deprecated)] in the custom derive implementations provided by Rust. Right now one has to manually #[allow(deprecated)] on all deprecated structs with derives, which is a pain, and also on all their impls...
The text was updated successfully, but these errors were encountered:
jonas-schievink
added
A-lints
Area: Lints (warnings about flaws in source code) such as unused_mut.
A-macros
Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..)
C-bug
Category: This is a bug.
labels
Mar 23, 2019
The dummy Span pointed to the beginning of the source file instead to
where the `#[derive]` is located. Later, it tripped the
`in_derive_expansion(span)` check at `src/librustc/middle/stability.rs`,
causing a span-less deprecation warning to be emitted.
Fixesrust-lang#56195, rust-lang#55417.
Should this really have been closed? The fix makes the error message better, but doesn't actually address the issue with the deprecation warning being emitted on the generated impl.
Ah you're probably right. I'll check again tomorrow.
fmease
added
A-lints
Area: Lints (warnings about flaws in source code) such as unused_mut.
and removed
A-lints
Area: Lints (warnings about flaws in source code) such as unused_mut.
labels
Dec 21, 2024
A-lintsArea: Lints (warnings about flaws in source code) such as unused_mut.A-macrosArea: All kinds of macros (custom derive, macro_rules!, proc macros, ..)C-bugCategory: This is a bug.
(Playground)
Errors:
An easy fix might be to
#[allow(deprecated)]
in the custom derive implementations provided by Rust. Right now one has to manually#[allow(deprecated)]
on all deprecated structs with derives, which is a pain, and also on all their impls...The text was updated successfully, but these errors were encountered: