diff options
| author | ljedrz <ljedrz@gmail.com> | 2018-07-12 13:26:29 +0200 |
|---|---|---|
| committer | ljedrz <ljedrz@gmail.com> | 2018-07-12 13:26:29 +0200 |
| commit | 21d9ac1d04cd59044fa96a3064dd0b56c648655a (patch) | |
| tree | affd83dd0405246b61a7ec17425535fcc6f8fd36 /src/libtest | |
| parent | c946c2539e9690fab5dbf7ac217ec696ac263cf3 (diff) | |
| download | rust-21d9ac1d04cd59044fa96a3064dd0b56c648655a.tar.gz rust-21d9ac1d04cd59044fa96a3064dd0b56c648655a.zip | |
Deny bare trait objects in librustc_target and libtest
Diffstat (limited to 'src/libtest')
| -rw-r--r-- | src/libtest/lib.rs | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/src/libtest/lib.rs b/src/libtest/lib.rs index a4d1797c3ec..6b547dff912 100644 --- a/src/libtest/lib.rs +++ b/src/libtest/lib.rs @@ -26,6 +26,9 @@ // NB: this is also specified in this crate's Cargo.toml, but libsyntax contains logic specific to // this crate, which relies on this attribute (rather than the value of `--crate-name` passed by // cargo) to detect this crate. + +#![deny(bare_trait_objects)] + #![crate_name = "test"] #![unstable(feature = "test", issue = "27812")] #