Skip to content

Commit 2237e89

Browse files
committed
remove the Any bound from CrateStore
This is a [breaking-change] for plugins, which ought by now to have stopped relying on downcasting.
1 parent 47af3f1 commit 2237e89

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/librustc/middle/cstore.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -150,12 +150,7 @@ pub struct ExternCrate {
150150

151151
/// A store of Rust crates, through with their metadata
152152
/// can be accessed.
153-
///
154-
/// The `: Any` bound is a temporary measure that allows access
155-
/// to the backing `rustc_metadata::cstore::CStore` object. It
156-
/// will be removed in the near future - if you need to access
157-
/// internal APIs, please tell us.
158-
pub trait CrateStore<'tcx> : Any {
153+
pub trait CrateStore<'tcx> {
159154
// item info
160155
fn stability(&self, def: DefId) -> Option<attr::Stability>;
161156
fn deprecation(&self, def: DefId) -> Option<attr::Deprecation>;

0 commit comments

Comments
 (0)