Skip to content

Commit 2b69c98

Browse files
Use more autoderef in rustc_driver
1 parent 5fc6165 commit 2b69c98

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/librustc_driver/driver.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -567,7 +567,7 @@ pub fn phase_2_configure_and_expand(sess: &Session,
567567

568568
// Lint plugins are registered; now we can process command line flags.
569569
if sess.opts.describe_lints {
570-
super::describe_lints(&*sess.lint_store.borrow(), true);
570+
super::describe_lints(&sess.lint_store.borrow(), true);
571571
return Err(0);
572572
}
573573
try!(sess.track_errors(|| sess.lint_store.borrow_mut().process_command_line(sess)));

src/librustc_driver/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1018,7 +1018,7 @@ pub fn diagnostics_registry() -> diagnostics::registry::Registry {
10181018
all_errors.extend_from_slice(&rustc_privacy::DIAGNOSTICS);
10191019
all_errors.extend_from_slice(&rustc_trans::DIAGNOSTICS);
10201020

1021-
Registry::new(&*all_errors)
1021+
Registry::new(&all_errors)
10221022
}
10231023

10241024
pub fn main() {

src/librustc_driver/pretty.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -870,8 +870,8 @@ fn print_flowgraph<W: Write>(variants: Vec<borrowck_dot::Variant>,
870870
mut out: W)
871871
-> io::Result<()> {
872872
let cfg = match code {
873-
blocks::BlockCode(block) => cfg::CFG::new(tcx, &*block),
874-
blocks::FnLikeCode(fn_like) => cfg::CFG::new(tcx, &*fn_like.body()),
873+
blocks::BlockCode(block) => cfg::CFG::new(tcx, &block),
874+
blocks::FnLikeCode(fn_like) => cfg::CFG::new(tcx, &fn_like.body()),
875875
};
876876
let labelled_edges = mode != PpFlowGraphMode::UnlabelledEdges;
877877
let lcfg = LabelledCFG {

0 commit comments

Comments
 (0)