diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2014-08-05 16:40:04 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2014-08-07 08:54:38 -0700 |
| commit | 1f760d5d1a448c08ff4b66cfa8d35d39a5d667c0 (patch) | |
| tree | 9befa0d5628cafad50e44dbc28e494dbf3b45487 /src/librustdoc/clean/mod.rs | |
| parent | b09a02b41588b2348fcce89c37c4a2cdc614d350 (diff) | |
| download | rust-1f760d5d1a448c08ff4b66cfa8d35d39a5d667c0.tar.gz rust-1f760d5d1a448c08ff4b66cfa8d35d39a5d667c0.zip | |
Rename `Share` to `Sync`
This leaves the `Share` trait at `std::kinds` via a `#[deprecated]` `pub use` statement, but the `NoShare` struct is no longer part of `std::kinds::marker` due to #12660 (the build cannot bootstrap otherwise). All code referencing the `Share` trait should now reference the `Sync` trait, and all code referencing the `NoShare` type should now reference the `NoSync` type. The functionality and meaning of this trait have not changed, only the naming. Closes #16281 [breaking-change]
Diffstat (limited to 'src/librustdoc/clean/mod.rs')
| -rw-r--r-- | src/librustdoc/clean/mod.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/librustdoc/clean/mod.rs b/src/librustdoc/clean/mod.rs index 7eecae84d1d..d714c2c3946 100644 --- a/src/librustdoc/clean/mod.rs +++ b/src/librustdoc/clean/mod.rs @@ -535,9 +535,9 @@ impl Clean<TyParamBound> for ty::BuiltinBound { ty::BoundCopy => (tcx.lang_items.copy_trait().unwrap(), external_path("Copy", &empty)), - ty::BoundShare => - (tcx.lang_items.share_trait().unwrap(), - external_path("Share", &empty)), + ty::BoundSync => + (tcx.lang_items.sync_trait().unwrap(), + external_path("Sync", &empty)), }; let fqn = csearch::get_item_path(tcx, did); let fqn = fqn.move_iter().map(|i| i.to_string()).collect(); |
