Skip to content

Commit af81ec2

Browse files
committed
Rollup merge of rust-lang#22559 - kmcallister:borrowck-readme, r=nikomatsakis
And minor fixes to other docs. r? @nikomatsakis
2 parents 0fab2b9 + 1597f91 commit af81ec2

File tree

19 files changed

+103
-154
lines changed

19 files changed

+103
-154
lines changed

src/librustc/middle/infer/higher_ranked/mod.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,8 @@ pub fn skolemize_late_bound_regions<'a,'tcx,T>(infcx: &InferCtxt<'a,'tcx>,
465465
* Replace all regions bound by `binder` with skolemized regions and
466466
* return a map indicating which bound-region was replaced with what
467467
* skolemized region. This is the first step of checking subtyping
468-
* when higher-ranked things are involved. See `doc.rs` for more details.
468+
* when higher-ranked things are involved. See `README.md` for more
469+
* details.
469470
*/
470471

471472
let (result, map) = ty::replace_late_bound_regions(infcx.tcx, binder, |br| {
@@ -490,7 +491,7 @@ pub fn leak_check<'a,'tcx>(infcx: &InferCtxt<'a,'tcx>,
490491
* and checks to determine whether any of the skolemized regions created
491492
* in `skol_map` would "escape" -- meaning that they are related to
492493
* other regions in some way. If so, the higher-ranked subtyping doesn't
493-
* hold. See `doc.rs` for more details.
494+
* hold. See `README.md` for more details.
494495
*/
495496

496497
debug!("leak_check: skol_map={}",
@@ -533,7 +534,7 @@ pub fn leak_check<'a,'tcx>(infcx: &InferCtxt<'a,'tcx>,
533534
/// passed; currently, it's used in the trait matching code to create
534535
/// a set of nested obligations frmo an impl that matches against
535536
/// something higher-ranked. More details can be found in
536-
/// `middle::traits::doc.rs`.
537+
/// `librustc/middle/traits/README.md`.
537538
///
538539
/// As a brief example, consider the obligation `for<'a> Fn(&'a int)
539540
/// -> &'a int`, and the impl:

src/librustc/middle/infer/region_inference/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
//! See doc.rs
11+
//! See README.md
1212
1313
pub use self::Constraint::*;
1414
pub use self::Verify::*;

src/librustc/middle/region.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -852,7 +852,7 @@ fn resolve_expr(visitor: &mut RegionResolutionVisitor, expr: &ast::Expr) {
852852
// The idea is that call.callee_id represents *the time when
853853
// the invoked function is actually running* and call.id
854854
// represents *the time to prepare the arguments and make the
855-
// call*. See the section "Borrows in Calls" borrowck/doc.rs
855+
// call*. See the section "Borrows in Calls" borrowck/README.md
856856
// for an extended explanation of why this distinction is
857857
// important.
858858
//

src/librustc/middle/traits/coherence.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
//! See `doc.rs` for high-level documentation
11+
//! See `README.md` for high-level documentation
1212
1313
use super::Normalized;
1414
use super::SelectionContext;

src/librustc/middle/traits/select.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
//! See `doc.rs` for high-level documentation
11+
//! See `README.md` for high-level documentation
1212
#![allow(dead_code)] // FIXME -- just temporarily
1313

1414
pub use self::MethodMatchResult::*;
@@ -547,7 +547,8 @@ impl<'cx, 'tcx> SelectionContext<'cx, 'tcx> {
547547
//
548548
// The selection process begins by examining all in-scope impls,
549549
// caller obligations, and so forth and assembling a list of
550-
// candidates. See `doc.rs` and the `Candidate` type for more details.
550+
// candidates. See `README.md` and the `Candidate` type for more
551+
// details.
551552

552553
fn candidate_from_obligation<'o>(&mut self,
553554
stack: &TraitObligationStack<'o, 'tcx>)
@@ -1619,7 +1620,7 @@ impl<'cx, 'tcx> SelectionContext<'cx, 'tcx> {
16191620
//
16201621
// Confirmation unifies the output type parameters of the trait
16211622
// with the values found in the obligation, possibly yielding a
1622-
// type error. See `doc.rs` for more details.
1623+
// type error. See `README.md` for more details.
16231624

16241625
fn confirm_candidate(&mut self,
16251626
obligation: &TraitObligation<'tcx>,

0 commit comments

Comments
 (0)