]> git.lizzy.rs Git - rust.git/commit
Rollup merge of #105484 - nbdd0121:upcast, r=compiler-errors
authorfee1-dead <ent3rm4n@gmail.com>
Wed, 28 Dec 2022 07:51:41 +0000 (15:51 +0800)
committerGitHub <noreply@github.com>
Wed, 28 Dec 2022 07:51:41 +0000 (15:51 +0800)
commit8b3d0c4cf9f8a8b77805ee5b9bcd18d02c600f22
treeedb8aa0163dff07b1f20503b4e3eeedc7a3104dd
parentade9605a0843268ec7af416c0aa5b5a510541c7a
parentb656e2413022de1863b9ea8db87454477b816042
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`
compiler/rustc_feature/src/active.rs
compiler/rustc_lint/src/lib.rs
compiler/rustc_span/src/symbol.rs
library/alloc/src/lib.rs