diff options
| author | Jonas Schievink <jonas@schievink.net> | 2016-02-08 23:42:39 +0100 |
|---|---|---|
| committer | Jonas Schievink <jonas@schievink.net> | 2016-02-12 19:27:20 +0100 |
| commit | 2b69c989eeb5ceb30399a93ede049936a7bf0c5b (patch) | |
| tree | b7addb1e4fae872ca95da7edf51281f692773598 | |
| parent | 5fc61657c9d3eb5e8fe140149b05aa2ff8ec28cf (diff) | |
| download | rust-2b69c989eeb5ceb30399a93ede049936a7bf0c5b.tar.gz rust-2b69c989eeb5ceb30399a93ede049936a7bf0c5b.zip | |
Use more autoderef in rustc_driver
| -rw-r--r-- | src/librustc_driver/driver.rs | 2 | ||||
| -rw-r--r-- | src/librustc_driver/lib.rs | 2 | ||||
| -rw-r--r-- | src/librustc_driver/pretty.rs | 4 |
3 files changed, 4 insertions, 4 deletions
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<W: Write>(variants: Vec<borrowck_dot::Variant>, 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 { |
