pub fn modify(
sess: &ParseSess,
- resolver: &mut Resolver,
+ resolver: &mut dyn Resolver,
krate: Crate,
crate_name: String,
handler: &rustc_errors::Handler,
found: bool,
handler: &'a rustc_errors::Handler,
sess: &'a ParseSess,
- resolver: &'a mut Resolver,
+ resolver: &'a mut dyn Resolver,
crate_name: Option<String>,
// For now, we disallow `global_allocator` in submodules because hygiene is hard. Keep track of
&self,
ty: &AllocatorTy,
args: &mut Vec<Arg>,
- ident: &mut FnMut() -> Ident,
+ ident: &mut dyn FnMut() -> Ident,
) -> P<Expr> {
match *ty {
AllocatorTy::Layout => {
// option. This file may not be copied, modified, or distributed
// except according to those terms.
+#![deny(bare_trait_objects)]
#![feature(rustc_private)]
#[macro_use] extern crate log;