diff options
| author | fee1-dead <ent3rm4n@gmail.com> | 2022-12-28 15:51:41 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-12-28 15:51:41 +0800 |
| commit | 8b3d0c4cf9f8a8b77805ee5b9bcd18d02c600f22 (patch) | |
| tree | edb8aa0163dff07b1f20503b4e3eeedc7a3104dd /compiler/rustc_feature/src | |
| parent | ade9605a0843268ec7af416c0aa5b5a510541c7a (diff) | |
| parent | b656e2413022de1863b9ea8db87454477b816042 (diff) | |
| download | rust-8b3d0c4cf9f8a8b77805ee5b9bcd18d02c600f22.tar.gz rust-8b3d0c4cf9f8a8b77805ee5b9bcd18d02c600f22.zip | |
Rollup merge of #105484 - nbdd0121:upcast, r=compiler-errors
Implement allow-by-default `multiple_supertrait_upcastable` lint The lint detects when an object-safe trait has multiple supertraits. Enabled in libcore and liballoc as they are low-level enough that many embedded programs will use them. r? `@nikomatsakis`
Diffstat (limited to 'compiler/rustc_feature/src')
| -rw-r--r-- | compiler/rustc_feature/src/active.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/rustc_feature/src/active.rs b/compiler/rustc_feature/src/active.rs index a616dd70f8e..060306d88be 100644 --- a/compiler/rustc_feature/src/active.rs +++ b/compiler/rustc_feature/src/active.rs @@ -160,6 +160,8 @@ declare_features! ( (active, intrinsics, "1.0.0", None, None), /// Allows using `#[lang = ".."]` attribute for linking items to special compiler logic. (active, lang_items, "1.0.0", None, None), + /// Allows the `multiple_supertrait_upcastable` lint. + (active, multiple_supertrait_upcastable, "CURRENT_RUSTC_VERSION", None, None), /// Allows using `#[omit_gdb_pretty_printer_section]`. (active, omit_gdb_pretty_printer_section, "1.5.0", None, None), /// Allows using `#[prelude_import]` on glob `use` items. |
