Skip to content

Commit a6ab049

Browse files
committed
Auto merge of #41762 - frewsxcv:rollup, r=frewsxcv
Rollup of 4 pull requests - Successful merges: #41741, #41746, #41749, #41754 - Failed merges:
2 parents 50b9858 + 3cd7f37 commit a6ab049

File tree

4 files changed

+9
-18
lines changed

4 files changed

+9
-18
lines changed

src/libcore/option.rs

+6-6
Original file line numberDiff line numberDiff line change
@@ -66,14 +66,14 @@
6666
//! not ([`None`]).
6767
//!
6868
//! ```
69-
//! let optional: Option<Box<i32>> = None;
70-
//! check_optional(&optional);
69+
//! let optional = None;
70+
//! check_optional(optional);
7171
//!
72-
//! let optional: Option<Box<i32>> = Some(Box::new(9000));
73-
//! check_optional(&optional);
72+
//! let optional = Some(Box::new(9000));
73+
//! check_optional(optional);
7474
//!
75-
//! fn check_optional(optional: &Option<Box<i32>>) {
76-
//! match *optional {
75+
//! fn check_optional(optional: Option<Box<i32>>) {
76+
//! match optional {
7777
//! Some(ref p) => println!("has value {}", p),
7878
//! None => println!("has no value"),
7979
//! }

src/librustc/ty/context.rs

-10
Original file line numberDiff line numberDiff line change
@@ -482,14 +482,6 @@ pub struct GlobalCtxt<'tcx> {
482482
/// about.
483483
pub used_mut_nodes: RefCell<NodeSet>,
484484

485-
/// The set of external nominal types whose implementations have been read.
486-
/// This is used for lazy resolution of methods.
487-
pub populated_external_types: RefCell<DefIdSet>,
488-
489-
/// The set of external primitive types whose implementations have been read.
490-
/// FIXME(arielb1): why is this separate from populated_external_types?
491-
pub populated_external_primitive_impls: RefCell<DefIdSet>,
492-
493485
/// Maps any item's def-id to its stability index.
494486
pub stability: RefCell<stability::Index<'tcx>>,
495487

@@ -767,8 +759,6 @@ impl<'a, 'gcx, 'tcx> TyCtxt<'a, 'gcx, 'tcx> {
767759
lang_items: lang_items,
768760
used_unsafe: RefCell::new(NodeSet()),
769761
used_mut_nodes: RefCell::new(NodeSet()),
770-
populated_external_types: RefCell::new(DefIdSet()),
771-
populated_external_primitive_impls: RefCell::new(DefIdSet()),
772762
stability: RefCell::new(stability),
773763
selection_cache: traits::SelectionCache::new(),
774764
evaluation_cache: traits::EvaluationCache::new(),

src/libstd/thread/mod.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
//! let res = child.join();
6767
//! ```
6868
//!
69-
//! The [`join`] method returns a [`Result`] containing [`Ok`] of the final
69+
//! The [`join`] method returns a [`thread::Result`] containing [`Ok`] of the final
7070
//! value produced by the child thread, or [`Err`] of the value given to
7171
//! a call to [`panic!`] if the child panicked.
7272
//!
@@ -159,6 +159,7 @@
159159
//! [`panic!`]: ../../std/macro.panic.html
160160
//! [`Builder`]: ../../std/thread/struct.Builder.html
161161
//! [`thread::current`]: ../../std/thread/fn.current.html
162+
//! [`thread::Result`]: ../../std/thread/type.Result.html
162163
//! [`Thread`]: ../../std/thread/struct.Thread.html
163164
//! [`park`]: ../../std/thread/fn.park.html
164165
//! [`unpark`]: ../../std/thread/struct.Thread.html#method.unpark

src/libsyntax/parse/lexer/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ fn mk_sp(lo: BytePos, hi: BytePos) -> Span {
7373
}
7474

7575
impl<'a> StringReader<'a> {
76-
fn next_token(&mut self) -> TokenAndSpan where Self: Sized {
76+
fn next_token(&mut self) -> TokenAndSpan {
7777
let res = self.try_next_token();
7878
self.unwrap_or_abort(res)
7979
}

0 commit comments

Comments
 (0)