Skip to content

Commit 96dba93

Browse files
committed
s/use_mir/use_mir_borrowck/
1 parent 45d281d commit 96dba93

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

src/librustc/infer/error_reporting/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ impl<'a, 'gcx, 'tcx> InferCtxt<'a, 'gcx, 'tcx> {
303303
) {
304304
debug!("report_region_errors(): {} errors to start", errors.len());
305305

306-
if will_later_be_reported_by_nll && self.tcx.use_mir() {
306+
if will_later_be_reported_by_nll && self.tcx.use_mir_borrowck() {
307307
// With `#![feature(nll)]`, we want to present a nice user
308308
// experience, so don't even mention the errors from the
309309
// AST checker.

src/librustc/ty/context.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1473,7 +1473,7 @@ impl<'a, 'gcx, 'tcx> TyCtxt<'a, 'gcx, 'tcx> {
14731473

14741474
/// If true, we should use the MIR-based borrowck (we may *also* use
14751475
/// the AST-based borrowck).
1476-
pub fn use_mir(self) -> bool {
1476+
pub fn use_mir_borrowck(self) -> bool {
14771477
self.borrowck_mode().use_mir()
14781478
}
14791479

@@ -1508,7 +1508,7 @@ impl<'a, 'gcx, 'tcx> TyCtxt<'a, 'gcx, 'tcx> {
15081508
pub fn emit_end_regions(self) -> bool {
15091509
self.sess.opts.debugging_opts.emit_end_regions ||
15101510
self.sess.opts.debugging_opts.mir_emit_validate > 0 ||
1511-
self.use_mir()
1511+
self.use_mir_borrowck()
15121512
}
15131513

15141514
#[inline]

src/librustc_mir/borrow_check/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ fn mir_borrowck<'a, 'tcx>(
7373
let input_mir = tcx.mir_validated(def_id);
7474
debug!("run query mir_borrowck: {}", tcx.item_path_str(def_id));
7575

76-
if !tcx.has_attr(def_id, "rustc_mir_borrowck") && !tcx.use_mir() {
76+
if !tcx.has_attr(def_id, "rustc_mir_borrowck") && !tcx.use_mir_borrowck() {
7777
return None;
7878
}
7979

src/librustc_mir/borrow_check/nll/type_check/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1596,7 +1596,7 @@ impl MirPass for TypeckMir {
15961596

15971597
// When NLL is enabled, the borrow checker runs the typeck
15981598
// itself, so we don't need this MIR pass anymore.
1599-
if tcx.use_mir() {
1599+
if tcx.use_mir_borrowck() {
16001600
return;
16011601
}
16021602

0 commit comments

Comments
 (0)