Skip to content

Commit d46de10

Browse files
authored
Rollup merge of #73881 - pierwill:pierwill-citations, r=jonas-schievink
Standardize bibliographic citations in rustc API docs See #73877.
2 parents 6339abd + bdc1f40 commit d46de10

File tree

3 files changed

+14
-16
lines changed

3 files changed

+14
-16
lines changed

src/librustc_ast_pretty/pp.rs

+4-6
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
//! This pretty-printer is a direct reimplementation of Philip Karlton's
2-
//! Mesa pretty-printer, as described in appendix A of
3-
//!
4-
//! ```text
5-
//! STAN-CS-79-770: "Pretty Printing", by Derek C. Oppen.
6-
//! Stanford Department of Computer Science, 1979.
7-
//! ```
2+
//! Mesa pretty-printer, as described in the appendix to
3+
//! Derek C. Oppen, "Pretty Printing" (1979),
4+
//! Stanford Computer Science Department STAN-CS-79-770,
5+
//! <http://i.stanford.edu/pub/cstr/reports/cs/tr/79/770/CS-TR-79-770.pdf>.
86
//!
97
//! The algorithm's aim is to break a stream into as few lines as possible
108
//! while respecting the indentation-consistency requirements of the enclosing

src/librustc_data_structures/graph/dominators/mod.rs

+6-5
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
//! Algorithm citation:
2-
//! A Simple, Fast Dominance Algorithm.
3-
//! Keith D. Cooper, Timothy J. Harvey, and Ken Kennedy
4-
//! Rice Computer Science TS-06-33870
5-
//! <https://www.cs.rice.edu/~keith/EMBED/dom.pdf>
1+
//! Finding the dominators in a control-flow graph.
2+
//!
3+
//! Algorithm based on Keith D. Cooper, Timothy J. Harvey, and Ken Kennedy,
4+
//! "A Simple, Fast Dominance Algorithm",
5+
//! Rice Computer Science TS-06-33870,
6+
//! <https://www.cs.rice.edu/~keith/EMBED/dom.pdf>.
67
78
use super::iterate::reverse_post_order;
89
use super::ControlFlowGraph;

src/librustc_span/hygiene.rs

+4-5
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
//! Machinery for hygienic macros, inspired by the `MTWT[1]` paper.
1+
//! Machinery for hygienic macros.
22
//!
3-
//! `[1]` Matthew Flatt, Ryan Culpepper, David Darais, and Robert Bruce Findler. 2012.
4-
//! *Macros that work together: Compile-time bindings, partial expansion,
5-
//! and definition contexts*. J. Funct. Program. 22, 2 (March 2012), 181-216.
6-
//! DOI=10.1017/S0956796812000093 <https://doi.org/10.1017/S0956796812000093>
3+
//! Inspired by Matthew Flatt et al., “Macros That Work Together: Compile-Time Bindings, Partial
4+
//! Expansion, and Definition Contexts,” *Journal of Functional Programming* 22, no. 2
5+
//! (March 1, 2012): 181–216, <https://doi.org/10.1017/S0956796812000093>.
76
87
// Hygiene data is stored in a global variable and accessed via TLS, which
98
// means that accesses are somewhat expensive. (`HygieneData::with`

0 commit comments

Comments
 (0)