]> git.lizzy.rs Git - rust.git/commitdiff
Deny bare trait objects in the rest of rust
authorljedrz <ljedrz@gmail.com>
Thu, 12 Jul 2018 11:50:22 +0000 (13:50 +0200)
committerljedrz <ljedrz@gmail.com>
Thu, 12 Jul 2018 11:50:22 +0000 (13:50 +0200)
26 files changed:
src/build_helper/lib.rs
src/liballoc_jemalloc/lib.rs
src/liballoc_system/lib.rs
src/libarena/lib.rs
src/libfmt_macros/lib.rs
src/libgraphviz/lib.rs
src/libpanic_abort/lib.rs
src/libproc_macro/lib.rs
src/libprofiler_builtins/lib.rs
src/librustc_apfloat/lib.rs
src/librustc_asan/lib.rs
src/librustc_borrowck/lib.rs
src/librustc_incremental/lib.rs
src/librustc_lint/lib.rs
src/librustc_llvm/lib.rs
src/librustc_lsan/lib.rs
src/librustc_mir/lib.rs
src/librustc_msan/lib.rs
src/librustc_passes/lib.rs
src/librustc_platform_intrinsics/lib.rs
src/librustc_plugin/lib.rs
src/librustc_privacy/lib.rs
src/librustc_traits/lib.rs
src/librustc_tsan/lib.rs
src/libsyntax_pos/lib.rs
src/libunwind/lib.rs

index 2f9953330f42c8403a3304603c5eb851164dcfb6..4d767f09689767dbb2b9a1a95c9d6502c00f7d0b 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![deny(bare_trait_objects)]
+
 use std::fs::File;
 use std::path::{Path, PathBuf};
 use std::process::{Command, Stdio};
index b3b20715511a7627662d6eac5550f62f6db4508e..413b212281b74336383addbec46d46404f0b0038 100644 (file)
@@ -10,6 +10,7 @@
 
 #![no_std]
 #![allow(unused_attributes)]
+#![deny(bare_trait_objects)]
 #![unstable(feature = "alloc_jemalloc",
             reason = "implementation detail of std, does not provide any public API",
             issue = "0")]
index 64348e05de7db16967708aded5d286e613cd75b1..c6c0abefbab23c6e42de21da4deb861a89978485 100644 (file)
@@ -10,6 +10,7 @@
 
 #![no_std]
 #![allow(unused_attributes)]
+#![deny(bare_trait_objects)]
 #![unstable(feature = "alloc_system",
             reason = "this library is unlikely to be stabilized in its current \
                       form or name",
index 0f4a5d16e1759aa1a4a0f957930fc5b02235c757..6f692923c8534c6f367735ef722bcd02228b1d92 100644 (file)
@@ -30,6 +30,7 @@
 #![cfg_attr(test, feature(test))]
 
 #![allow(deprecated)]
+#![deny(bare_trait_objects)]
 
 extern crate alloc;
 extern crate rustc_data_structures;
index a77751d65d08c3c7f164526688356acd35fd82ce..51c3efb41ad97883b577443c61a6e2ecc05c8f83 100644 (file)
@@ -14,6 +14,8 @@
 //! Parsing does not happen at runtime: structures of `std::fmt::rt` are
 //! generated instead.
 
+#![deny(bare_trait_objects)]
+
 #![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
        html_favicon_url = "https://doc.rust-lang.org/favicon.ico",
        html_root_url = "https://doc.rust-lang.org/nightly/",
index 158d0101515860af76c7562e987267a7818a2102..9e71ed4063e87e3d2eb56969a4b3303f2b8357d7 100644 (file)
 //!
 //! * [DOT language](http://www.graphviz.org/doc/info/lang.html)
 
+#![deny(bare_trait_objects)]
+
 #![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
        html_favicon_url = "https://doc.rust-lang.org/favicon.ico",
        html_root_url = "https://doc.rust-lang.org/nightly/",
index 392bf17968fbdfc28f648b7b9f94f2c5d16e403f..02ab28507d7d86d13eb73fac44c3aa15a2f64889 100644 (file)
@@ -21,6 +21,7 @@
        issue_tracker_base_url = "https://github.com/rust-lang/rust/issues/")]
 #![panic_runtime]
 #![allow(unused_features)]
+#![deny(bare_trait_objects)]
 
 #![feature(core_intrinsics)]
 #![feature(libc)]
index 876cf295acc1ba984c3037f2b630191a097dc3e6..7c0cf9eaddebee3a7e9469e21898a7473814c6d7 100644 (file)
@@ -22,6 +22,7 @@
 //! See [the book](../book/first-edition/procedural-macros.html) for more.
 
 #![stable(feature = "proc_macro_lib", since = "1.15.0")]
+#![deny(bare_trait_objects)]
 #![deny(missing_docs)]
 #![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
        html_favicon_url = "https://doc.rust-lang.org/favicon.ico",
index 6d0d6d115b7163528e3e0a54737ce114124ffe32..3d91505cd772aae53c2b1fa9b12132bbcd0260cf 100644 (file)
@@ -15,4 +15,5 @@
             reason = "internal implementation detail of rustc right now",
             issue = "0")]
 #![allow(unused_features)]
+#![deny(bare_trait_objects)]
 #![feature(staged_api)]
index 08438805a703e759f5823ab6b4a1a7b830dc616b..c7cd958016dca5b1d3c140812c66ca6028b4c430 100644 (file)
@@ -40,6 +40,8 @@
 //!
 //! This API is completely unstable and subject to change.
 
+#![deny(bare_trait_objects)]
+
 #![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
       html_favicon_url = "https://doc.rust-lang.org/favicon.ico",
       html_root_url = "https://doc.rust-lang.org/nightly/")]
index 0c78fd74a234ee01091ae813c400b30afc8c575f..7bd1e98f85dc2fa553b1ebd0e3510e9cc3e65462 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![deny(bare_trait_objects)]
+
 #![sanitizer_runtime]
 #![feature(alloc_system)]
 #![feature(sanitizer_runtime)]
index a5a20af0e4e4ae880558ce2a5bbd653984987c65..d583a32c43198b40a045ec0a67b9914d2a40a721 100644 (file)
@@ -13,6 +13,7 @@
       html_root_url = "https://doc.rust-lang.org/nightly/")]
 
 #![allow(non_camel_case_types)]
+#![deny(bare_trait_objects)]
 
 #![feature(from_ref)]
 #![feature(quote)]
index 3839c133a6eb22692d99b1bd8b4597257299c184..2ef88041d338f67c5ce4894213f1d3efef14b83b 100644 (file)
@@ -10,6 +10,8 @@
 
 //! Support for serializing the dep-graph and reloading it.
 
+#![deny(bare_trait_objects)]
+
 #![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
       html_favicon_url = "https://doc.rust-lang.org/favicon.ico",
       html_root_url = "https://doc.rust-lang.org/nightly/")]
index 359b056b5a2d1f5da0fe7e14e6cbeb10e31c14a1..9f8ef6ef4324482d5ef3e01480d7761b75a24ce3 100644 (file)
@@ -19,6 +19,8 @@
 //!
 //! This API is completely unstable and subject to change.
 
+#![deny(bare_trait_objects)]
+
 #![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
       html_favicon_url = "https://doc.rust-lang.org/favicon.ico",
       html_root_url = "https://doc.rust-lang.org/nightly/")]
index 741758cb954ba4b38e644c4644ddf57f2546e9cb..c60016cde0d1b829de5ca73eae4d6976b74d40a7 100644 (file)
@@ -12,6 +12,7 @@
 #![allow(non_camel_case_types)]
 #![allow(non_snake_case)]
 #![allow(dead_code)]
+#![deny(bare_trait_objects)]
 
 #![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
        html_favicon_url = "https://doc.rust-lang.org/favicon.ico",
index 0c78fd74a234ee01091ae813c400b30afc8c575f..7bd1e98f85dc2fa553b1ebd0e3510e9cc3e65462 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![deny(bare_trait_objects)]
+
 #![sanitizer_runtime]
 #![feature(alloc_system)]
 #![feature(sanitizer_runtime)]
index dc0d0b244633f28de71e578dbd136b23c9a3d5f5..c042c68d40bcf722b786dfc20de968f5a323a40b 100644 (file)
@@ -14,6 +14,8 @@
 
 */
 
+#![deny(bare_trait_objects)]
+
 #![feature(slice_patterns)]
 #![feature(slice_sort_by_cached_key)]
 #![feature(from_ref)]
index 0c78fd74a234ee01091ae813c400b30afc8c575f..7bd1e98f85dc2fa553b1ebd0e3510e9cc3e65462 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![deny(bare_trait_objects)]
+
 #![sanitizer_runtime]
 #![feature(alloc_system)]
 #![feature(sanitizer_runtime)]
index 41f1e7829658ab097353ca1a3fa7b26061d9226b..15d7c0fdaa338673d7877c914ef898bf9ccb66f9 100644 (file)
@@ -14,6 +14,8 @@
 //!
 //! This API is completely unstable and subject to change.
 
+#![deny(bare_trait_objects)]
+
 #![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
        html_favicon_url = "https://doc.rust-lang.org/favicon.ico",
        html_root_url = "https://doc.rust-lang.org/nightly/")]
index b57debdd99486bda802323fe72cbc624d136d530..92e83fd70fa3a4dc79021183affe22e8114ba04e 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 #![allow(bad_style)]
+#![deny(bare_trait_objects)]
 
 pub struct Intrinsic {
     pub inputs: &'static [&'static Type],
index 348aa6a7cef4c7678c85c7e43dde9ca7ea9aef43..b2c492f204f331c27863c025bdb96e69f0350750 100644 (file)
@@ -60,6 +60,8 @@
 //! See the [`plugin` feature](../unstable-book/language-features/plugin.html) of
 //! the Unstable Book for more examples.
 
+#![deny(bare_trait_objects)]
+
 #![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
        html_favicon_url = "https://doc.rust-lang.org/favicon.ico",
        html_root_url = "https://doc.rust-lang.org/nightly/")]
index 3919ba13076f6d839426226056ca2e904b720314..f69e664ea46b333d5110bc6b110ba9dde317ca2c 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![deny(bare_trait_objects)]
+
 #![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
        html_favicon_url = "https://doc.rust-lang.org/favicon.ico",
        html_root_url = "https://doc.rust-lang.org/nightly/")]
index 1da3907915a0724a78d8e1547fe94c0f307ce889..cd55b5ddc5bf12c722a2e462ee386e07e8dad817 100644 (file)
@@ -11,6 +11,8 @@
 //! New recursive solver modeled on Chalk's recursive solver. Most of
 //! the guts are broken up into modules; see the comments in those modules.
 
+#![deny(bare_trait_objects)]
+
 #![feature(crate_in_paths)]
 #![feature(crate_visibility_modifier)]
 #![feature(extern_prelude)]
index 0c78fd74a234ee01091ae813c400b30afc8c575f..7bd1e98f85dc2fa553b1ebd0e3510e9cc3e65462 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![deny(bare_trait_objects)]
+
 #![sanitizer_runtime]
 #![feature(alloc_system)]
 #![feature(sanitizer_runtime)]
index 61af70af47d85a42287a303669ffbcdf77977156..cc09a944e4ccc1168d46a6c812d841d7178e76de 100644 (file)
@@ -14,6 +14,8 @@
 //!
 //! This API is completely unstable and subject to change.
 
+#![deny(bare_trait_objects)]
+
 #![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
       html_favicon_url = "https://doc.rust-lang.org/favicon.ico",
       html_root_url = "https://doc.rust-lang.org/nightly/")]
index 2b3c19c067ed4258de5a3da04fc6ae1b754a2168..ea5eee3cc7d46d60abac92e8bcab9c0804cddc49 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![deny(bare_trait_objects)]
+
 #![no_std]
 #![unstable(feature = "panic_unwind", issue = "32837")]