]> git.lizzy.rs Git - rust.git/commitdiff
remove the `Any` bound from `CrateStore`
authorNiko Matsakis <niko@alum.mit.edu>
Tue, 29 Mar 2016 00:05:35 +0000 (20:05 -0400)
committerNiko Matsakis <niko@alum.mit.edu>
Wed, 18 May 2016 14:10:45 +0000 (10:10 -0400)
This is a [breaking-change] for plugins, which
ought by now to have stopped relying on downcasting.

src/librustc/middle/cstore.rs

index c0af457ed236c3bcdc733dd38b2ee86589d95b5f..85c31774cc4410c6bff286957dd6f8de2c4c16ba 100644 (file)
@@ -150,12 +150,7 @@ pub struct ExternCrate {
 
 /// A store of Rust crates, through with their metadata
 /// can be accessed.
-///
-/// The `: Any` bound is a temporary measure that allows access
-/// to the backing `rustc_metadata::cstore::CStore` object. It
-/// will be removed in the near future - if you need to access
-/// internal APIs, please tell us.
-pub trait CrateStore<'tcx> : Any {
+pub trait CrateStore<'tcx> {
     // item info
     fn stability(&self, def: DefId) -> Option<attr::Stability>;
     fn deprecation(&self, def: DefId) -> Option<attr::Deprecation>;