Skip to content

Commit f051e13

Browse files
author
Keegan McAllister
committed
Fix references to doc.rs throughout the code
1 parent ac6cab0 commit f051e13

File tree

17 files changed

+28
-26
lines changed

17 files changed

+28
-26
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::SelectionContext;
1414
use super::{Obligation, ObligationCause};

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>)
@@ -1656,7 +1657,7 @@ impl<'cx, 'tcx> SelectionContext<'cx, 'tcx> {
16561657
//
16571658
// Confirmation unifies the output type parameters of the trait
16581659
// with the values found in the obligation, possibly yielding a
1659-
// type error. See `doc.rs` for more details.
1660+
// type error. See `README.md` for more details.
16601661

16611662
fn confirm_candidate(&mut self,
16621663
obligation: &TraitObligation<'tcx>,

src/librustc_borrowck/borrowck/fragments.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
//! Helper routines used for fragmenting structural paths due to moves for
1212
//! tracking drop obligations. Please see the extensive comments in the
13-
//! section "Structural fragments" in `doc.rs`.
13+
//! section "Structural fragments" in `README.md`.
1414
1515
use self::Fragment::*;
1616

src/librustc_borrowck/borrowck/gather_loans/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ impl<'a, 'tcx> euv::Delegate<'tcx> for GatherLoanCtxt<'a, 'tcx> {
173173
}
174174
}
175175

176-
/// Implements the A-* rules in doc.rs.
176+
/// Implements the A-* rules in README.md.
177177
fn check_aliasability<'a, 'tcx>(bccx: &BorrowckCtxt<'a, 'tcx>,
178178
borrow_span: Span,
179179
loan_cause: euv::LoanCause,
@@ -375,7 +375,7 @@ impl<'a, 'tcx> GatherLoanCtxt<'a, 'tcx> {
375375
cmt: mc::cmt<'tcx>,
376376
req_kind: ty::BorrowKind)
377377
-> Result<(),()> {
378-
//! Implements the M-* rules in doc.rs.
378+
//! Implements the M-* rules in README.md.
379379
380380
match req_kind {
381381
ty::UniqueImmBorrow | ty::ImmBorrow => {

src/librustc_borrowck/borrowck/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ impl<'tcx> PartialEq for LoanPath<'tcx> {
295295

296296
#[derive(PartialEq, Eq, Hash, Debug)]
297297
pub enum LoanPathKind<'tcx> {
298-
LpVar(ast::NodeId), // `x` in doc.rs
298+
LpVar(ast::NodeId), // `x` in README.md
299299
LpUpvar(ty::UpvarId), // `x` captured by-value into closure
300300
LpDowncast(Rc<LoanPath<'tcx>>, ast::DefId), // `x` downcast to particular enum variant
301301
LpExtend(Rc<LoanPath<'tcx>>, mc::MutabilityCategory, LoanPathElem)
@@ -336,8 +336,8 @@ impl ToInteriorKind for mc::InteriorKind {
336336

337337
#[derive(Copy, PartialEq, Eq, Hash, Debug)]
338338
pub enum LoanPathElem {
339-
LpDeref(mc::PointerKind), // `*LV` in doc.rs
340-
LpInterior(InteriorKind), // `LV.f` in doc.rs
339+
LpDeref(mc::PointerKind), // `*LV` in README.md
340+
LpInterior(InteriorKind), // `LV.f` in README.md
341341
}
342342

343343
pub fn closure_to_block(closure_id: ast::NodeId,

src/librustc_borrowck/borrowck/move_data.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
// except according to those terms.
1010

1111
//! Data structures used for tracking moves. Please see the extensive
12-
//! comments in the section "Moves and initialization" in `doc.rs`.
12+
//! comments in the section "Moves and initialization" in `README.md`.
1313
1414
pub use self::MoveKind::*;
1515

@@ -33,7 +33,7 @@ use syntax::codemap::Span;
3333
pub mod fragments;
3434

3535
pub struct MoveData<'tcx> {
36-
/// Move paths. See section "Move paths" in `doc.rs`.
36+
/// Move paths. See section "Move paths" in `README.md`.
3737
pub paths: RefCell<Vec<MovePath<'tcx>>>,
3838

3939
/// Cache of loan path to move path index, for easy lookup.
@@ -464,7 +464,7 @@ impl<'tcx> MoveData<'tcx> {
464464
/// assignments into the provided data flow contexts.
465465
/// Moves are generated by moves and killed by assignments and
466466
/// scoping. Assignments are generated by assignment to variables and
467-
/// killed by scoping. See `doc.rs` for more details.
467+
/// killed by scoping. See `README.md` for more details.
468468
fn add_gen_kills(&self,
469469
tcx: &ty::ctxt<'tcx>,
470470
dfcx_moves: &mut MoveDataFlow,

src/librustc_trans/trans/datum.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ use syntax::codemap::DUMMY_SP;
122122
/// A `Datum` encapsulates the result of evaluating an expression. It
123123
/// describes where the value is stored, what Rust type the value has,
124124
/// whether it is addressed by reference, and so forth. Please refer
125-
/// the section on datums in `doc.rs` for more details.
125+
/// the section on datums in `README.md` for more details.
126126
#[derive(Clone, Copy)]
127127
pub struct Datum<'tcx, K> {
128128
/// The llvm value. This is either a pointer to the Rust value or

src/librustc_typeck/check/method/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-
//! Method lookup: the secret sauce of Rust. See `doc.rs`.
11+
//! Method lookup: the secret sauce of Rust. See `README.md`.
1212
1313
use astconv::AstConv;
1414
use check::{FnCtxt};

src/libstd/collections/hash/map.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ fn test_resize_policy() {
204204
// produces identical results to a linear naive reinsertion from the same
205205
// element.
206206
//
207-
// FIXME(Gankro, pczarn): review the proof and put it all in a separate doc.rs
207+
// FIXME(Gankro, pczarn): review the proof and put it all in a separate README.md
208208

209209
/// A hash map implementation which uses linear probing with Robin
210210
/// Hood bucket stealing.

src/test/compile-fail/borrowck-borrow-mut-base-ptr-in-aliasable-loc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
// Test that attempt to reborrow an `&mut` pointer in an aliasable
1212
// location yields an error.
1313
//
14-
// Example from src/middle/borrowck/doc.rs
14+
// Example from src/librustc_borrowck/borrowck/README.md
1515

1616
fn foo(t0: & &mut isize) {
1717
let t1 = t0;

src/test/compile-fail/borrowck-move-mut-base-ptr.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
// Test that attempt to move `&mut` pointer while pointee is borrowed
1212
// yields an error.
1313
//
14-
// Example from src/middle/borrowck/doc.rs
14+
// Example from src/librustc_borrowck/borrowck/README.md
1515

1616
fn foo(t0: &mut isize) {
1717
let p: &isize = &*t0; // Freezes `*t0`

src/test/compile-fail/borrowck-mut-borrow-of-mut-base-ptr.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
// Test that attempt to mutably borrow `&mut` pointer while pointee is
1212
// borrowed yields an error.
1313
//
14-
// Example from src/middle/borrowck/doc.rs
14+
// Example from src/librustc_borrowck/borrowck/README.md
1515

1616
fn foo<'a>(mut t0: &'a mut isize,
1717
mut t1: &'a mut isize) {

src/test/compile-fail/borrowck-swap-mut-base-ptr.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
// Test that attempt to swap `&mut` pointer while pointee is borrowed
1212
// yields an error.
1313
//
14-
// Example from src/middle/borrowck/doc.rs
14+
// Example from src/librustc_borrowck/borrowck/README.md
1515

1616
use std::mem::swap;
1717

src/test/run-pass/borrowck-borrow-of-mut-base-ptr-safe.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
// Test that freezing an `&mut` pointer while referent is
1212
// frozen is legal.
1313
//
14-
// Example from src/middle/borrowck/doc.rs
14+
// Example from src/librustc_borrowck/borrowck/README.md
1515

1616
fn foo<'a>(mut t0: &'a mut int,
1717
mut t1: &'a mut int) {

0 commit comments

Comments
 (0)