|
8 | 8 | // option. This file may not be copied, modified, or distributed
|
9 | 9 | // except according to those terms.
|
10 | 10 |
|
| 11 | +#![deny(bare_trait_objects)] |
| 12 | + |
11 | 13 | #![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
|
12 | 14 | html_favicon_url = "https://doc.rust-lang.org/favicon.ico",
|
13 | 15 | html_root_url = "https://doc.rust-lang.org/nightly/")]
|
@@ -1292,7 +1294,7 @@ impl PrimitiveTypeTable {
|
1292 | 1294 | /// This is the visitor that walks the whole crate.
|
1293 | 1295 | pub struct Resolver<'a> {
|
1294 | 1296 | session: &'a Session,
|
1295 |
| - cstore: &'a CrateStore, |
| 1297 | + cstore: &'a dyn CrateStore, |
1296 | 1298 |
|
1297 | 1299 | pub definitions: Definitions,
|
1298 | 1300 |
|
@@ -1388,7 +1390,7 @@ pub struct Resolver<'a> {
|
1388 | 1390 | /// true if `#![feature(use_extern_macros)]`
|
1389 | 1391 | use_extern_macros: bool,
|
1390 | 1392 |
|
1391 |
| - crate_loader: &'a mut CrateLoader, |
| 1393 | + crate_loader: &'a mut dyn CrateLoader, |
1392 | 1394 | macro_names: FxHashSet<Ident>,
|
1393 | 1395 | global_macros: FxHashMap<Name, &'a NameBinding<'a>>,
|
1394 | 1396 | pub all_macros: FxHashMap<Name, Def>,
|
@@ -1604,11 +1606,11 @@ impl<'a> Resolver<'a> {
|
1604 | 1606 |
|
1605 | 1607 | impl<'a> Resolver<'a> {
|
1606 | 1608 | pub fn new(session: &'a Session,
|
1607 |
| - cstore: &'a CrateStore, |
| 1609 | + cstore: &'a dyn CrateStore, |
1608 | 1610 | krate: &Crate,
|
1609 | 1611 | crate_name: &str,
|
1610 | 1612 | make_glob_map: MakeGlobMap,
|
1611 |
| - crate_loader: &'a mut CrateLoader, |
| 1613 | + crate_loader: &'a mut dyn CrateLoader, |
1612 | 1614 | arenas: &'a ResolverArenas<'a>)
|
1613 | 1615 | -> Resolver<'a> {
|
1614 | 1616 | let root_def_id = DefId::local(CRATE_DEF_INDEX);
|
|
0 commit comments