File tree 3 files changed +7
-5
lines changed
3 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -82,9 +82,9 @@ pub struct LoweringContext<'a> {
82
82
// Use to assign ids to hir nodes that do not directly correspond to an ast node
83
83
sess : & ' a Session ,
84
84
85
- cstore : & ' a CrateStore ,
85
+ cstore : & ' a dyn CrateStore ,
86
86
87
- resolver : & ' a mut Resolver ,
87
+ resolver : & ' a mut dyn Resolver ,
88
88
89
89
/// The items being lowered are collected here.
90
90
items : BTreeMap < NodeId , hir:: Item > ,
@@ -199,10 +199,10 @@ impl<'a> ImplTraitContext<'a> {
199
199
200
200
pub fn lower_crate (
201
201
sess : & Session ,
202
- cstore : & CrateStore ,
202
+ cstore : & dyn CrateStore ,
203
203
dep_graph : & DepGraph ,
204
204
krate : & Crate ,
205
- resolver : & mut Resolver ,
205
+ resolver : & mut dyn Resolver ,
206
206
) -> hir:: Crate {
207
207
// We're constructing the HIR here; we don't care what we will
208
208
// read, since we haven't even constructed the *input* to
Original file line number Diff line number Diff line change 36
36
//!
37
37
//! This API is completely unstable and subject to change.
38
38
39
+ #![ deny( bare_trait_objects) ]
40
+
39
41
#![ doc( html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png" ,
40
42
html_favicon_url = "https://doc.rust-lang.org/favicon.ico" ,
41
43
html_root_url = "https://doc.rust-lang.org/nightly/" ) ]
Original file line number Diff line number Diff line change @@ -257,7 +257,7 @@ pub trait CrateStore {
257
257
fn metadata_encoding_version ( & self ) -> & [ u8 ] ;
258
258
}
259
259
260
- pub type CrateStoreDyn = CrateStore + sync:: Sync ;
260
+ pub type CrateStoreDyn = dyn CrateStore + sync:: Sync ;
261
261
262
262
// FIXME: find a better place for this?
263
263
pub fn validate_crate_name ( sess : Option < & Session > , s : & str , sp : Option < Span > ) {
You can’t perform that action at this time.
0 commit comments