diff options
| author | bors <bors@rust-lang.org> | 2020-07-16 03:16:07 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2020-07-16 03:16:07 +0000 |
| commit | e2e29de5e8a2908260d54182638241ff086a26c2 (patch) | |
| tree | e44d40c0247410d83ffa8a34aa0becdca30b9418 /src/libcore | |
| parent | 7e11379f3b4c376fbb9a6c4d44f3286ccc28d149 (diff) | |
| parent | 0bde1c3ae5b75eb07338ecf26e797c2f1c436518 (diff) | |
Auto merge of #74375 - Manishearth:rollup-10vbpdh, r=Manishearth
Rollup of 14 pull requests Successful merges: - #72973 (RISC-V GNU/Linux as host platform) - #73918 (Clean up E0715 explanation) - #73959 (Clean up E0716 explanation) - #74119 (Remove `Compiler::compile()`.) - #74196 (Add option to collapse automatically implementors) - #74218 (Add margin after doc search results) - #74276 (improve DiscriminantKind handling) - #74291 (Added docs for `From<c_int>` for `ExitStatus`) - #74294 (Update cross-compilation README) - #74337 (Handle case of incomplete local ty more gracefully) - #74344 (Remove string comparison and use diagnostic item instead) - #74347 (Initialize default providers only once) - #74353 (Edit docs for rustc_middle::dep_graph::dep_node) - #74374 (Add a 1.45 release note on lto vs. embed-bitcode) Failed merges: - #74251 (Teach bootstrap about target files vs target triples) r? @ghost
Diffstat (limited to 'src/libcore')
| -rw-r--r-- | src/libcore/marker.rs | 1 | ||||
| -rw-r--r-- | src/libcore/option.rs | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/src/libcore/marker.rs b/src/libcore/marker.rs index 6ddd41a26f1..56dddee7b77 100644 --- a/src/libcore/marker.rs +++ b/src/libcore/marker.rs @@ -693,6 +693,7 @@ mod impls { pub trait DiscriminantKind { /// The type of the discriminant, which must satisfy the trait /// bounds required by `mem::Discriminant`. + #[cfg_attr(not(bootstrap), lang = "discriminant_type")] type Discriminant: Clone + Copy + Debug + Eq + PartialEq + Hash + Send + Sync + Unpin; } diff --git a/src/libcore/option.rs b/src/libcore/option.rs index 7aca6af3de6..a27e8d2a724 100644 --- a/src/libcore/option.rs +++ b/src/libcore/option.rs @@ -1681,6 +1681,7 @@ impl<A, V: FromIterator<A>> FromIterator<Option<A>> for Option<V> { /// to allow `x?` (where `x` is an `Option<T>`) to be converted into your error type, you can /// implement `impl From<NoneError>` for `YourErrorType`. In that case, `x?` within a function that /// returns `Result<_, YourErrorType>` will translate a `None` value into an `Err` result. +#[rustc_diagnostic_item = "none_error"] #[unstable(feature = "try_trait", issue = "42327")] #[derive(Clone, Copy, PartialEq, PartialOrd, Eq, Ord, Debug, Hash)] pub struct NoneError; |
