about summary refs log tree commit diff
path: root/library/alloc/src
diff options
context:
space:
mode:
authorGary Guo <gary@garyguo.net>2022-12-09 02:27:03 +0000
committerGary Guo <gary@garyguo.net>2022-12-09 02:29:51 +0000
commit5e44a65517bfcccbe6624a70b54b9f192baa94f3 (patch)
treeacbb2748e4bb82e0d2cfac54ac40fe49416f1702 /library/alloc/src
parent7632db0e87d8adccc9a83a47795c9411b1455855 (diff)
Implement allow-by-default multiple_supertrait_upcastable lint
Diffstat (limited to 'library/alloc/src')
-rw-r--r--library/alloc/src/lib.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/library/alloc/src/lib.rs b/library/alloc/src/lib.rs
index 96960d43f58..ad22c5b14ae 100644
--- a/library/alloc/src/lib.rs
+++ b/library/alloc/src/lib.rs
@@ -87,6 +87,7 @@
 #![warn(missing_debug_implementations)]
 #![warn(missing_docs)]
 #![allow(explicit_outlives_requirements)]
+#![cfg_attr(not(bootstrap), warn(multiple_supertrait_upcastable))]
 //
 // Library features:
 #![feature(alloc_layout_extra)]
@@ -190,6 +191,7 @@
 #![feature(unsized_fn_params)]
 #![feature(c_unwind)]
 #![feature(with_negative_coherence)]
+#![cfg_attr(not(bootstrap), feature(multiple_supertrait_upcastable))]
 //
 // Rustdoc features:
 #![feature(doc_cfg)]