Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rollup of 12 pull requests #62635

Merged
merged 35 commits into from
Jul 13, 2019
Merged
Changes from 1 commit
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
145385e
Add messages to Option and Result must_use for is_*
czipperz Jul 6, 2019
9b0623d
Wrap line
czipperz Jul 6, 2019
e12d682
path-type examples for single-use lifetime in fn argument UI test
zackmdavis Jul 6, 2019
acc4e56
in which we suggest anonymizing single-use lifetimes in paths
zackmdavis Jul 6, 2019
1948140
Added a test for coherence when a generic type param has a default va…
ohadravid Jun 4, 2019
37942c4
Add test for #49919
JohnTitor Jul 11, 2019
baa9efb
rustc_mir: follow FalseUnwind's real_target edge in qualify_consts.
eddyb Jul 1, 2019
ab3adf3
Replace unsafe_destructor_blind_to_params with may_dangle
tesuji Jul 10, 2019
d4fcbb4
document that crate refers to the project root
ngoldbaum Jul 11, 2019
8347917
Remove feature gate `dropck_parametricity` completely
tesuji Jul 11, 2019
6082497
move mem::uninitialized deprecation back by 1 release, to 1.39
RalfJung Jul 11, 2019
c9f7a3d
Emit dropped unemitted errors to aid in ICE debugging
estebank Jul 11, 2019
cc481a4
Correctly break out of recovery loop
estebank Jul 12, 2019
1574c2d
align async-await.rs and await-macro.rs with one another
delan Jul 12, 2019
0f66ce6
test E0133 when calling free/impl `async unsafe fn` in safe code
delan Jul 12, 2019
beb2435
test `unsafe fn` and `async unsafe fn` calls in `async` in `unsafe`
delan Jul 12, 2019
e65c1c4
remove unused #![feature(async_closure)]
delan Jul 12, 2019
60f480d
test E0133 when calling free/impl `async unsafe fn` in `async fn`
delan Jul 12, 2019
d023e47
remove redundant async_closure test in async-await.rs
delan Jul 12, 2019
5f8d0a1
test `unsafe fn` and `async unsafe fn` calls in `unsafe { async || }`
delan Jul 12, 2019
00e0d87
Turn `indirect_structural_match` lint on explicitly in ui tests.
pnkfelix Jul 12, 2019
44d27ba
Change `indirect_structural_match` lint to allow-by-default.
pnkfelix Jul 12, 2019
8c5f690
add test case
estebank Jul 12, 2019
74ac956
Rollup merge of #61535 - ohadravid:test-generic-with-default-assiocia…
Centril Jul 12, 2019
9ffeb26
Rollup merge of #62274 - eddyb:const-false-unwind, r=pnkfelix
Centril Jul 12, 2019
f169b15
Rollup merge of #62431 - czipperz:add-messages-to-must-use-is_-method…
Centril Jul 12, 2019
e706438
Rollup merge of #62453 - zackmdavis:single_path, r=estebank
Centril Jul 12, 2019
d70ea7c
Rollup merge of #62568 - lzutao:replace_may_dangle, r=matthewjasper
Centril Jul 12, 2019
992bcd0
Rollup merge of #62578 - JohnTitor:add-test-for-49919, r=alexcrichton
Centril Jul 12, 2019
a4252fe
Rollup merge of #62595 - ngoldbaum:path-clarity-doc, r=Centril
Centril Jul 12, 2019
d69e958
Rollup merge of #62599 - RalfJung:uninit, r=cramertj
Centril Jul 12, 2019
d709e8d
Rollup merge of #62605 - estebank:emit-dropped-err, r=pnkfelix
Centril Jul 12, 2019
a7f1649
Rollup merge of #62607 - estebank:this-mem-is-out-of-control, r=petro…
Centril Jul 12, 2019
b1d6163
Rollup merge of #62608 - delan:async-unsafe-fn-tests, r=Centril
Centril Jul 12, 2019
fe4e32a
Rollup merge of #62623 - pnkfelix:issue-62614-downgrade-indirect-stru…
Centril Jul 12, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Wrap line
  • Loading branch information
czipperz committed Jul 6, 2019
commit 9b0623d51f5c9754e63107b50373ff1294c28c61
3 changes: 2 additions & 1 deletion src/libcore/option.rs
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,8 @@ impl<T> Option<T> {
/// ```
///
/// [`None`]: #variant.None
#[must_use = "if you intended to assert that this doesn't have a value, consider `.and_then(|| panic!(\"`Option` had a value when expected `None`\"))` instead"]
#[must_use = "if you intended to assert that this doesn't have a value, consider \
`.and_then(|| panic!(\"`Option` had a value when expected `None`\"))` instead"]
#[inline]
#[stable(feature = "rust1", since = "1.0.0")]
pub fn is_none(&self) -> bool {
Expand Down