Fully implement #[deprecated]
attribute
#6942
Labels
compiler: frontend
Everything to do with type checking, control flow analysis, and everything between parsing and IRgen
compiler
General compiler. Should eventually become more specific as the issue is triaged
team:compiler
Compiler Team
Currently, only structs can be marked as
#[deprecated]
and the warning for using deprecated structs will not be emitted for all expressions in which a struct can be used.Since we do not emit any error or warning for using
#[deprecated]
aside of stucts, this leads to a misleading usage, where items are annotated as#[depricated]
but that annotation does not have any effect.E.g., some examples of using
#[deprecated]
without any effect in the standard library:std::constants::ZERO_B256
std::ecr::ec_recover
std::evm::ecr::ec_recover_evm_address
Warning for usages of
#[deprecated]
outside of struct declarations will be done in #6880.This issues calls for step-wise implementation of
#[deprecated]
in two directions:The text was updated successfully, but these errors were encountered: