Use more autoderef in rustc_driver
This commit is contained in:
parent
5fc61657c9
commit
2b69c989ee
@ -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)));
|
||||
|
@ -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() {
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user