diff --git a/src/librustc_driver/driver.rs b/src/librustc_driver/driver.rs index 6c5b577e0d1..43871e73218 100644 --- a/src/librustc_driver/driver.rs +++ b/src/librustc_driver/driver.rs @@ -567,7 +567,7 @@ pub fn phase_2_configure_and_expand(sess: &Session, // Lint plugins are registered; now we can process command line flags. if sess.opts.describe_lints { - super::describe_lints(&*sess.lint_store.borrow(), true); + super::describe_lints(&sess.lint_store.borrow(), true); return Err(0); } try!(sess.track_errors(|| sess.lint_store.borrow_mut().process_command_line(sess))); diff --git a/src/librustc_driver/lib.rs b/src/librustc_driver/lib.rs index 25cef24c50d..faf11de53c4 100644 --- a/src/librustc_driver/lib.rs +++ b/src/librustc_driver/lib.rs @@ -1018,7 +1018,7 @@ pub fn diagnostics_registry() -> diagnostics::registry::Registry { all_errors.extend_from_slice(&rustc_privacy::DIAGNOSTICS); all_errors.extend_from_slice(&rustc_trans::DIAGNOSTICS); - Registry::new(&*all_errors) + Registry::new(&all_errors) } pub fn main() { diff --git a/src/librustc_driver/pretty.rs b/src/librustc_driver/pretty.rs index 170ae65f919..4a82aa72825 100644 --- a/src/librustc_driver/pretty.rs +++ b/src/librustc_driver/pretty.rs @@ -870,8 +870,8 @@ fn print_flowgraph(variants: Vec, mut out: W) -> io::Result<()> { let cfg = match code { - blocks::BlockCode(block) => cfg::CFG::new(tcx, &*block), - blocks::FnLikeCode(fn_like) => cfg::CFG::new(tcx, &*fn_like.body()), + blocks::BlockCode(block) => cfg::CFG::new(tcx, &block), + blocks::FnLikeCode(fn_like) => cfg::CFG::new(tcx, &fn_like.body()), }; let labelled_edges = mode != PpFlowGraphMode::UnlabelledEdges; let lcfg = LabelledCFG {