Skip to content

Commit e168aa3

Browse files
committed
Reexport -> re-export in prose and documentation comments
1 parent 90fcd44 commit e168aa3

File tree

26 files changed

+52
-52
lines changed

26 files changed

+52
-52
lines changed

RELEASES.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -577,7 +577,7 @@ Compatibility Notes
577577
a warning.
578578
- [From the pound escape, lines consisting of multiple `#`s are
579579
now visible][41785]
580-
- [It is an error to reexport private enum variants][42460]. This is
580+
- [It is an error to re-export private enum variants][42460]. This is
581581
known to break a number of crates that depend on an older version of
582582
mustache.
583583
- [On Windows, if `VCINSTALLDIR` is set incorrectly, `rustc` will try
@@ -2251,10 +2251,10 @@ Rustdoc
22512251
-------
22522252

22532253
* [Fix empty implementation section on some module pages](https://github.com/rust-lang/rust/pull/34536)
2254-
* [Fix inlined renamed reexports in import lists](https://github.com/rust-lang/rust/pull/34479)
2254+
* [Fix inlined renamed re-exports in import lists](https://github.com/rust-lang/rust/pull/34479)
22552255
* [Fix search result layout for enum variants and struct fields](https://github.com/rust-lang/rust/pull/34477)
22562256
* [Fix issues with source links to external crates](https://github.com/rust-lang/rust/pull/34387)
2257-
* [Fix redirect pages for renamed reexports](https://github.com/rust-lang/rust/pull/34245)
2257+
* [Fix redirect pages for renamed re-exports](https://github.com/rust-lang/rust/pull/34245)
22582258

22592259
Tooling
22602260
-------
@@ -4988,7 +4988,7 @@ Version 0.10 (2014-04-03)
49884988
* std: The `vec` module has been renamed to `slice`.
49894989
* std: A new vector type, `Vec<T>`, has been added in preparation for DST.
49904990
This will become the only growable vector in the future.
4991-
* std: `std::io` now has more public-reexports. Types such as `BufferedReader`
4991+
* std: `std::io` now has more public re-exports. Types such as `BufferedReader`
49924992
are now found at `std::io::BufferedReader` instead of
49934993
`std::io::buffered::BufferedReader`.
49944994
* std: `print` and `println` are no longer in the prelude, the `print!` and
@@ -5079,8 +5079,8 @@ Version 0.10 (2014-04-03)
50795079
* render standalone markdown files.
50805080
* the --test flag tests all code blocks by default.
50815081
* exported macros are displayed.
5082-
* reexported types have their documentation inlined at the location of the
5083-
first reexport.
5082+
* re-exported types have their documentation inlined at the location of the
5083+
first re-export.
50845084
* search works across crates that have been rendered to the same output
50855085
directory.
50865086

@@ -5467,7 +5467,7 @@ Version 0.7 (2013-07-03)
54675467
incl. `any`, `all`. removed.
54685468
* std: The `finalize` method of `Drop` renamed to `drop`.
54695469
* std: The `drop` method now takes `&mut self` instead of `&self`.
5470-
* std: The prelude no longer reexports any modules, only types and traits.
5470+
* std: The prelude no longer re-exports any modules, only types and traits.
54715471
* std: Prelude additions: `print`, `println`, `FromStr`, `ApproxEq`, `Equiv`,
54725472
`Iterator`, `IteratorUtil`, many numeric traits, many tuple traits.
54735473
* std: New numeric traits: `Fractional`, `Real`, `RealExt`, `Integer`, `Ratio`,

src/liballoc/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
//!
1616
//! This library, like libcore, is not intended for general usage, but rather as
1717
//! a building block of other libraries. The types and interfaces in this
18-
//! library are reexported through the [standard library](../std/index.html),
18+
//! library are re-exported through the [standard library](../std/index.html),
1919
//! and should not be used through this library.
2020
//!
2121
//! ## Boxed values
@@ -52,7 +52,7 @@
5252
//! ## Collections
5353
//!
5454
//! Implementations of the most common general purpose data structures are
55-
//! defined in this library. They are reexported through the
55+
//! defined in this library. They are re-exported through the
5656
//! [standard collections library](../std/collections/index.html).
5757
//!
5858
//! ## Heap interfaces

src/libcore/prelude/v1.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -16,20 +16,20 @@
1616
1717
#![stable(feature = "core_prelude", since = "1.4.0")]
1818

19-
// Reexported core operators
19+
// Re-exported core operators
2020
#[stable(feature = "core_prelude", since = "1.4.0")]
2121
#[doc(no_inline)]
2222
pub use marker::{Copy, Send, Sized, Sync};
2323
#[stable(feature = "core_prelude", since = "1.4.0")]
2424
#[doc(no_inline)]
2525
pub use ops::{Drop, Fn, FnMut, FnOnce};
2626

27-
// Reexported functions
27+
// Re-exported functions
2828
#[stable(feature = "core_prelude", since = "1.4.0")]
2929
#[doc(no_inline)]
3030
pub use mem::drop;
3131

32-
// Reexported types and traits
32+
// Re-exported types and traits
3333
#[stable(feature = "core_prelude", since = "1.4.0")]
3434
#[doc(no_inline)]
3535
pub use clone::Clone;
@@ -55,7 +55,7 @@ pub use option::Option::{self, Some, None};
5555
#[doc(no_inline)]
5656
pub use result::Result::{self, Ok, Err};
5757

58-
// Reexported extension traits for primitive types
58+
// Re-exported extension traits for primitive types
5959
#[stable(feature = "core_prelude", since = "1.4.0")]
6060
#[doc(no_inline)]
6161
pub use slice::SliceExt;

src/libcore/slice/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
// a lot of stuff defined here. Let's keep it clean.
2323
//
2424
// Since slices don't support inherent methods; all operations
25-
// on them are defined on traits, which are then reexported from
25+
// on them are defined on traits, which are then re-exported from
2626
// the prelude for convenience. So there are a lot of traits here.
2727
//
2828
// The layout of this file is thus:

src/librustc/hir/lowering.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2119,7 +2119,7 @@ impl<'a> LoweringContext<'a> {
21192119

21202120
// Privatize the degenerate import base, used only to check
21212121
// the stability of `use a::{};`, to avoid it showing up as
2122-
// a reexport by accident when `pub`, e.g. in documentation.
2122+
// a re-export by accident when `pub`, e.g. in documentation.
21232123
let path = P(self.lower_path(id, &prefix, ParamMode::Explicit, true));
21242124
*vis = hir::Inherited;
21252125
hir::ItemUse(path, hir::UseKind::ListStem)

src/librustc/middle/privacy.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ pub enum AccessLevel {
2626
// public, then type `T` is reachable. Its values can be obtained by other crates
2727
// even if the type itself is not nameable.
2828
Reachable,
29-
// Public items + items accessible to other crates with help of `pub use` reexports
29+
// Public items + items accessible to other crates with help of `pub use` re-exports
3030
Exported,
31-
// Items accessible to other crates directly, without help of reexports
31+
// Items accessible to other crates directly, without help of re-exports
3232
Public,
3333
}
3434

src/librustc_metadata/decoder.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -702,8 +702,8 @@ impl<'a, 'tcx> CrateMetadata {
702702
let vis = self.get_visibility(child_index);
703703
let is_import = false;
704704
callback(def::Export { def, ident, vis, span, is_import });
705-
// For non-reexport structs and variants add their constructors to children.
706-
// Reexport lists automatically contain constructors when necessary.
705+
// For non-re-export structs and variants add their constructors to children.
706+
// Re-export lists automatically contain constructors when necessary.
707707
match def {
708708
Def::Struct(..) => {
709709
if let Some(ctor_def_id) = self.get_struct_ctor_def_id(child_index) {

src/librustc_privacy/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ impl<'a, 'tcx> Visitor<'tcx> for EmbargoVisitor<'a, 'tcx> {
219219
hir::ItemExternCrate(..) => {}
220220
// All nested items are checked by visit_item
221221
hir::ItemMod(..) => {}
222-
// Reexports are handled in visit_mod
222+
// Re-exports are handled in visit_mod
223223
hir::ItemUse(..) => {}
224224
// The interface is empty
225225
hir::ItemGlobalAsm(..) => {}
@@ -1049,7 +1049,7 @@ impl<'a, 'tcx> Visitor<'tcx> for ObsoleteVisiblePrivateTypesVisitor<'a, 'tcx> {
10491049

10501050
fn visit_item(&mut self, item: &'tcx hir::Item) {
10511051
match item.node {
1052-
// contents of a private mod can be reexported, so we need
1052+
// contents of a private mod can be re-exported, so we need
10531053
// to check internals.
10541054
hir::ItemMod(_) => {}
10551055

src/librustc_resolve/resolve_imports.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ pub enum ImportDirectiveSubclass<'a> {
4646
},
4747
GlobImport {
4848
is_prelude: bool,
49-
max_vis: Cell<ty::Visibility>, // The visibility of the greatest reexport.
50-
// n.b. `max_vis` is only used in `finalize_import` to check for reexport errors.
49+
max_vis: Cell<ty::Visibility>, // The visibility of the greatest re-export.
50+
// n.b. `max_vis` is only used in `finalize_import` to check for re-export errors.
5151
},
5252
ExternCrate(Option<Name>),
5353
MacroUse,
@@ -877,7 +877,7 @@ impl<'a, 'b:'a> ImportResolver<'a, 'b> {
877877
self.record_def(directive.id, PathResolution::new(module.def().unwrap()));
878878
}
879879

880-
// Miscellaneous post-processing, including recording reexports,
880+
// Miscellaneous post-processing, including recording re-exports,
881881
// reporting conflicts, and reporting unresolved imports.
882882
fn finalize_resolutions_in(&mut self, module: Module<'b>) {
883883
// Since import resolution is finished, globs will not define any more names.

src/librustdoc/clean/inline.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,9 @@ pub fn try_inline(cx: &DocContext, def: Def, name: ast::Name)
8282
ret.extend(build_impls(cx, did));
8383
clean::ForeignTypeItem
8484
}
85-
// Never inline enum variants but leave them shown as reexports.
85+
// Never inline enum variants but leave them shown as re-exports.
8686
Def::Variant(..) => return None,
87-
// Assume that enum variants and struct types are reexported next to
87+
// Assume that enum variants and struct types are re-exported next to
8888
// their constructors.
8989
Def::VariantCtor(..) |
9090
Def::StructCtor(..) => return Some(Vec::new()),
@@ -365,7 +365,7 @@ fn build_module(cx: &DocContext, did: DefId) -> clean::Module {
365365
};
366366

367367
fn fill_in(cx: &DocContext, did: DefId, items: &mut Vec<clean::Item>) {
368-
// If we're reexporting a reexport it may actually reexport something in
368+
// If we're re-exporting a re-export it may actually re-export something in
369369
// two namespaces, so the target may be listed twice. Make sure we only
370370
// visit each node at most once.
371371
let mut visited = FxHashSet();

src/librustdoc/html/render.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -1286,9 +1286,9 @@ impl DocFolder for Cache {
12861286
clean::ConstantItem(..) | clean::StaticItem(..) |
12871287
clean::UnionItem(..) | clean::ForeignTypeItem
12881288
if !self.stripped_mod => {
1289-
// Reexported items mean that the same id can show up twice
1289+
// Re-exported items mean that the same id can show up twice
12901290
// in the rustdoc ast that we're looking at. We know,
1291-
// however, that a reexported item doesn't show up in the
1291+
// however, that a re-exported item doesn't show up in the
12921292
// `public_items` map, so we can skip inserting into the
12931293
// paths map if there was already an entry present and we're
12941294
// not a public item.
@@ -1545,7 +1545,7 @@ impl Context {
15451545
{
15461546
// Stripped modules survive the rustdoc passes (i.e. `strip-private`)
15471547
// if they contain impls for public types. These modules can also
1548-
// contain items such as publicly reexported structures.
1548+
// contain items such as publicly re-exported structures.
15491549
//
15501550
// External crates will provide links to these structures, so
15511551
// these modules are recursed into, but not rendered normally
@@ -2008,7 +2008,7 @@ fn item_module(w: &mut fmt::Formatter, cx: &Context,
20082008
if cx.shared.sort_modules_alphabetically {
20092009
indices.sort_by(|&i1, &i2| cmp(&items[i1], &items[i2], i1, i2));
20102010
}
2011-
// This call is to remove reexport duplicates in cases such as:
2011+
// This call is to remove re-export duplicates in cases such as:
20122012
//
20132013
// ```
20142014
// pub mod foo {

src/librustdoc/visit_ast.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ pub struct RustdocVisitor<'a, 'tcx: 'a> {
5555
impl<'a, 'tcx> RustdocVisitor<'a, 'tcx> {
5656
pub fn new(cstore: &'tcx CrateStore,
5757
cx: &'a core::DocContext<'a, 'tcx>) -> RustdocVisitor<'a, 'tcx> {
58-
// If the root is reexported, terminate all recursion.
58+
// If the root is re-exported, terminate all recursion.
5959
let mut stack = FxHashSet();
6060
stack.insert(ast::CRATE_NODE_ID);
6161
RustdocVisitor {
@@ -214,7 +214,7 @@ impl<'a, 'tcx> RustdocVisitor<'a, 'tcx> {
214214
let imported_from = self.cx.tcx.original_crate_name(def_id.krate);
215215
let def = match self.cstore.load_macro_untracked(def_id, self.cx.sess()) {
216216
LoadedMacro::MacroDef(macro_def) => macro_def,
217-
// FIXME(jseyfried): document proc macro reexports
217+
// FIXME(jseyfried): document proc macro re-exports
218218
LoadedMacro::ProcMacro(..) => continue,
219219
};
220220

src/libstd/lib.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -351,9 +351,9 @@ use prelude::v1::*;
351351
#[cfg(test)] extern crate test;
352352
#[cfg(test)] extern crate rand;
353353

354-
// We want to reexport a few macros from core but libcore has already been
354+
// We want to re-export a few macros from core but libcore has already been
355355
// imported by the compiler (via our #[no_std] attribute) In this case we just
356-
// add a new crate name so we can attach the reexports to it.
356+
// add a new crate name so we can attach the re-exports to it.
357357
#[macro_reexport(assert, assert_eq, assert_ne, debug_assert, debug_assert_eq,
358358
debug_assert_ne, unreachable, unimplemented, write, writeln, try)]
359359
extern crate core as __core;
@@ -390,7 +390,7 @@ mod macros;
390390
// The Rust prelude
391391
pub mod prelude;
392392

393-
// Public module declarations and reexports
393+
// Public module declarations and re-exports
394394
#[stable(feature = "rust1", since = "1.0.0")]
395395
pub use core::any;
396396
#[stable(feature = "rust1", since = "1.0.0")]

src/libstd/prelude/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
//! # Prelude contents
5353
//!
5454
//! The current version of the prelude (version 1) lives in
55-
//! [`std::prelude::v1`], and reexports the following.
55+
//! [`std::prelude::v1`], and re-exports the following.
5656
//!
5757
//! * [`std::marker`]::{[`Copy`], [`Send`], [`Sized`], [`Sync`]}. The marker
5858
//! traits indicate fundamental properties of types.

src/libstd/prelude/v1.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,17 @@
1414
1515
#![stable(feature = "rust1", since = "1.0.0")]
1616

17-
// Reexported core operators
17+
// Re-exported core operators
1818
#[stable(feature = "rust1", since = "1.0.0")]
1919
#[doc(no_inline)] pub use marker::{Copy, Send, Sized, Sync};
2020
#[stable(feature = "rust1", since = "1.0.0")]
2121
#[doc(no_inline)] pub use ops::{Drop, Fn, FnMut, FnOnce};
2222

23-
// Reexported functions
23+
// Re-exported functions
2424
#[stable(feature = "rust1", since = "1.0.0")]
2525
#[doc(no_inline)] pub use mem::drop;
2626

27-
// Reexported types and traits
27+
// Re-exported types and traits
2828
#[stable(feature = "rust1", since = "1.0.0")]
2929
#[doc(no_inline)] pub use boxed::Box;
3030
#[stable(feature = "rust1", since = "1.0.0")]

src/libstd/rt.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
#![doc(hidden)]
2424

2525

26-
// Reexport some of our utilities which are expected by other crates.
26+
// Re-export some of our utilities which are expected by other crates.
2727
pub use panicking::{begin_panic, begin_panic_fmt, update_panic_count};
2828

2929
// To reduce the generated code of the new `lang_start`, this function is doing

src/libstd_unicode/char.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,15 @@ use core::iter::FusedIterator;
3333
use core::fmt::{self, Write};
3434
use tables::{conversions, derived_property, general_category, property};
3535

36-
// stable reexports
36+
// stable re-exports
3737
#[stable(feature = "rust1", since = "1.0.0")]
3838
pub use core::char::{MAX, from_digit, from_u32, from_u32_unchecked};
3939
#[stable(feature = "rust1", since = "1.0.0")]
4040
pub use core::char::{EscapeDebug, EscapeDefault, EscapeUnicode};
4141
#[stable(feature = "char_from_str", since = "1.20.0")]
4242
pub use core::char::ParseCharError;
4343

44-
// unstable reexports
44+
// unstable re-exports
4545
#[unstable(feature = "try_from", issue = "33417")]
4646
pub use core::char::CharTryFromError;
4747
#[unstable(feature = "decode_utf8", issue = "33906")]

src/libsyntax/ext/build.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ use ext::base::ExtCtxt;
1717
use ptr::P;
1818
use symbol::{Symbol, keywords};
1919

20-
// Transitional reexports so qquote can find the paths it is looking for
20+
// Transitional re-exports so qquote can find the paths it is looking for
2121
mod syntax {
2222
pub use ext;
2323
pub use parse;

src/libsyntax/feature_gate.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ declare_features! (
155155
// OIBIT specific features
156156
(active, optin_builtin_traits, "1.0.0", Some(13231)),
157157

158-
// macro reexport needs more discussion and stabilization
158+
// macro re-export needs more discussion and stabilization
159159
(active, macro_reexport, "1.0.0", Some(29638)),
160160

161161
// Allows use of #[staged_api]

src/test/compile-fail-fulldeps/gated-macro-reexports.rs

+1-1
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-
// Test that macro reexports item are gated by `macro_reexport` feature gate.
11+
// Test that macro re-exports item are gated by `macro_reexport` feature gate.
1212

1313
// aux-build:macro_reexport_1.rs
1414
// gate-test-macro_reexport

src/test/compile-fail/auxiliary/static_priv_by_default.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ mod foo {
3232
fn foo() {}
3333
}
3434

35-
// these are public so the parent can reexport them.
35+
// these are public so the parent can re-export them.
3636
pub static reexported_a: isize = 0;
3737
pub fn reexported_b() {}
3838
pub struct reexported_c;

src/test/compile-fail/lint-unused-extern-crate.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
extern crate lint_unused_extern_crate5; //~ ERROR: unused extern crate
2222

23-
pub extern crate lint_unused_extern_crate4; // no error, it is reexported
23+
pub extern crate lint_unused_extern_crate4; // no error, it is re-exported
2424

2525
extern crate lint_unused_extern_crate3; // no error, it is used
2626

src/test/run-make/type-mismatch-same-crate-name/crateC.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
// compile-fail/type-mismatch-same-crate-name.rs
1919
// but deals with the case where one of the crates
2020
// is only introduced as an indirect dependency.
21-
// and the type is accessed via a reexport.
21+
// and the type is accessed via a re-export.
2222
// This is similar to how the error can be introduced
2323
// when using cargo's automatic dependency resolution.
2424

src/test/run-pass/unboxed-closures-prelude.rs

+1-1
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-
// Tests that the reexports of `FnOnce` et al from the prelude work.
11+
// Tests that the re-exports of `FnOnce` et al from the prelude work.
1212

1313
// pretty-expanded FIXME #23616
1414

src/test/rustdoc/inline_cross/auxiliary/rustdoc-nonreachable-impls.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ pub mod hidden {
3636
pub struct Wobble;
3737

3838

39-
// these should only be shown if they're reexported correctly
39+
// these should only be shown if they're re-exported correctly
4040
impl Qux for ::Foo {}
4141
impl Qux for Wobble {}
4242
impl ::Bark for Wobble {}

0 commit comments

Comments
 (0)