-
Notifications
You must be signed in to change notification settings - Fork 12.5k
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 11 pull requests #59293
Rollup of 11 pull requests #59293
Commits on Jan 22, 2019
-
Configuration menu - View commit details
-
Copy full SHA for 6fb5b73 - Browse repository at this point
Copy the full SHA 6fb5b73View commit details
Commits on Feb 3, 2019
-
Configuration menu - View commit details
-
Copy full SHA for ea9e2c4 - Browse repository at this point
Copy the full SHA ea9e2c4View commit details
Commits on Feb 27, 2019
-
Configuration menu - View commit details
-
Copy full SHA for 988b3d5 - Browse repository at this point
Copy the full SHA 988b3d5View commit details -
Remove copy paste error in char tests
Co-Authored-By: xfix <konrad@borowski.pw>
Configuration menu - View commit details
-
Copy full SHA for 911a633 - Browse repository at this point
Copy the full SHA 911a633View commit details
Commits on Feb 28, 2019
-
Configuration menu - View commit details
-
Copy full SHA for c5fe405 - Browse repository at this point
Copy the full SHA c5fe405View commit details
Commits on Mar 5, 2019
-
Configuration menu - View commit details
-
Copy full SHA for b91ab62 - Browse repository at this point
Copy the full SHA b91ab62View commit details
Commits on Mar 11, 2019
-
Configuration menu - View commit details
-
Copy full SHA for b9d12ed - Browse repository at this point
Copy the full SHA b9d12edView commit details
Commits on Mar 13, 2019
-
Configuration menu - View commit details
-
Copy full SHA for 27abd52 - Browse repository at this point
Copy the full SHA 27abd52View commit details -
test that wildcard type
_
is not duplicated by `type Foo<X> = (X, X……);` and potentially instantiated at different types. (Updated to reflect changes in diagnostic output and compiletest infrastructure.)
Configuration menu - View commit details
-
Copy full SHA for 4e5692d - Browse repository at this point
Copy the full SHA 4e5692dView commit details
Commits on Mar 17, 2019
-
Configuration menu - View commit details
-
Copy full SHA for 98b2672 - Browse repository at this point
Copy the full SHA 98b2672View commit details
Commits on Mar 18, 2019
-
Replaced self-reflective explicit types with clearer
Self
or `Self:……:…` in stdlib docs
Configuration menu - View commit details
-
Copy full SHA for 698bbe5 - Browse repository at this point
Copy the full SHA 698bbe5View commit details -
The use-case of `todo!()` macro is to be a much easier to type alternative to `unimplemented!()` macro.
Configuration menu - View commit details
-
Copy full SHA for 9d408d9 - Browse repository at this point
Copy the full SHA 9d408d9View commit details -
Configuration menu - View commit details
-
Copy full SHA for de4be2c - Browse repository at this point
Copy the full SHA de4be2cView commit details
Commits on Mar 19, 2019
-
Update since annotation for ExactSizeIterator for ToUppercase/Lowercase
This functionality was added in 1.35.0, not 1.34.0.
Configuration menu - View commit details
-
Copy full SHA for 8f261a6 - Browse repository at this point
Copy the full SHA 8f261a6View commit details -
Configuration menu - View commit details
-
Copy full SHA for ab41023 - Browse repository at this point
Copy the full SHA ab41023View commit details -
Rollup merge of rust-lang#56348 - matklad:todo-macro, r=withoutboats
Add todo!() macro The primary use-case of `todo!()` macro is to be a much easier to type alternative to `unimplemented!()` macro. EDIT: hide unpopular proposal about re-purposing unimplemented <details> However, instead of just replacing `unimplemented!()`, it gives it a more nuanced meaning: a thing which is intentionally left unimplemented and which should not be called at runtime. Usually, you'd like to prevent such cases statically, but sometimes you, for example, have to implement a trait only some methods of which are applicable. There are examples in the wild of code doing this thing, and in this case, the current message of `unimplemented`, "not *yet* implemented" is slightly misleading. With the addition of TODO, you have three nuanced choices for a `!`-returning macro (in addition to a good-old panic we all love): * todo!() * unreachable!() * unimplemented!() Here's a rough guideline what each one means: - `todo`: use it during development, as a "hole" or placeholder. It might be a good idea to add a pre-commit hook which checks that `todo` is not accidentally committed. - `unreachable!()`: use it when your code can statically guarantee that some situation can not happen. If you use a library and hit `unreachable!()` in the library's code, it's definitely a bug in the library. It's OK to have `unreachable!()` in the code base, although, if possible, it's better to replace it with compiler-verified exhaustive checks. - `unimplemented!()`: use it when the type checker forces you to handle some situation, but there's a contract that a callee must not actually call the code. If you use a library and hit `unimplemented!()`, it's probably a bug in your code, though it *could* be a bug in the library (or library docs) as well. It is ok-ish to see an `unimplemented!()` in real code, but it usually signifies a clunky, eyebrow-rising API. </details>
Configuration menu - View commit details
-
Copy full SHA for d4dd860 - Browse repository at this point
Copy the full SHA d4dd860View commit details -
Rollup merge of rust-lang#57729 - pnkfelix:issue-55748-pat-types-are-…
…constraints-on-bindings-too, r=nikomatsakis extra testing of how NLL handles wildcard type `_` test that wildcard type `_` is not duplicated by `type Foo<X> = (X, X);` and potentially instantiated at different types when used in type ascriptions in let bindings. (NLL's handling of this for the type ascription *expression form* is currently broken, or at least differs from what AST-borrowck does. I'll file a separate bug about that. Its not something critical to address since that expression is guarded by `#![feature(type_ascription)]`.) cc rust-lang#55748
Configuration menu - View commit details
-
Copy full SHA for c1975db - Browse repository at this point
Copy the full SHA c1975dbView commit details -
Rollup merge of rust-lang#57847 - clarcharr:dbg_no_params, r=Centril
dbg!() without parameters Fixes rust-lang#57845.
Configuration menu - View commit details
-
Copy full SHA for d4ef74b - Browse repository at this point
Copy the full SHA d4ef74bView commit details -
Rollup merge of rust-lang#58778 - xfix:exact_size_case_mapping_iter, …
…r=SimonSapin Implement ExactSizeIterator for ToLowercase and ToUppercase
Configuration menu - View commit details
-
Copy full SHA for fff8586 - Browse repository at this point
Copy the full SHA fff8586View commit details -
Rollup merge of rust-lang#58812 - jonhoo:floor_v_trunc, r=alexcrichton
Clarify distinction between floor() and trunc() `floor()` rounds towards `-INF`, `trunc()` rounds towards 0. This PR clarifies this in the examples.
Configuration menu - View commit details
-
Copy full SHA for 5abd9c7 - Browse repository at this point
Copy the full SHA 5abd9c7View commit details -
Rollup merge of rust-lang#58939 - taeguk:fix-doc-about-pin, r=rkruppe
Fix a tiny error in documentation of std::pin. `new_unmoved` must be `mut` for passing to `std::mem::swap`.
Configuration menu - View commit details
-
Copy full SHA for 61ff887 - Browse repository at this point
Copy the full SHA 61ff887View commit details -
Rollup merge of rust-lang#59116 - estebank:comma-sugg, r=petrochenkov
Be more discerning on when to attempt suggesting a comma in a macro invocation Fix rust-lang#58796.
Configuration menu - View commit details
-
Copy full SHA for 8ebe2ac - Browse repository at this point
Copy the full SHA 8ebe2acView commit details -
Rollup merge of rust-lang#59252 - lcnr:mailmap, r=Centril
add self to mailmap
Configuration menu - View commit details
-
Copy full SHA for 05e8051 - Browse repository at this point
Copy the full SHA 05e8051View commit details -
Rollup merge of rust-lang#59275 - regexident:docs-self, r=joshtriplett
Replaced self-reflective explicit types with clearer `Self` or `Self::…` in stdlib docs Many docs examples use explicit types instead of the semantically more clear `Self`/`Self::…` aliases. By using the latter it's clear that the value's type depends on either `Self`, or an associated type of `Self`, instead of some constant type. It's also more consistent (and I'd argue correct), as the current docs aren't really consistent in this, as can be seen from the diff. This is a best effort PR, as I was basically going through the docs manually, looking for offending examples. I'm sure I missed a few. Gotta start somewhere.
Configuration menu - View commit details
-
Copy full SHA for 1ec1c5d - Browse repository at this point
Copy the full SHA 1ec1c5dView commit details -
Rollup merge of rust-lang#59280 - joshlf:sandbox/joshlf/stabilize-ref…
…cell-map-split, r=cramertj,Centril Stabilize refcell_map_split feature Closes rust-lang#51476.
Configuration menu - View commit details
-
Copy full SHA for a3581ac - Browse repository at this point
Copy the full SHA a3581acView commit details -
Rollup merge of rust-lang#59290 - oli-obk:trivial_move_prop, r=davidtwco
Run branch cleanup after copy prop This is preliminary work for rust-lang#59288 (comment) which gets rid of `if` in the HIR. cc @rust-lang/wg-mir-opt @Centril
Configuration menu - View commit details
-
Copy full SHA for 7f7829f - Browse repository at this point
Copy the full SHA 7f7829fView commit details