- 27 3月, 2020 8 次提交
-
-
由 Dylan MacKenzie 提交于
-
由 Dylan MacKenzie 提交于
-
由 Dylan MacKenzie 提交于
-
由 Dylan MacKenzie 提交于
-
由 Dylan MacKenzie 提交于
-
由 Dylan MacKenzie 提交于
-
由 Dylan MacKenzie 提交于
-
由 Dylan MacKenzie 提交于
-
- 26 3月, 2020 32 次提交
-
-
由 bors 提交于
Rollup of 5 pull requests Successful merges: - #68004 (permit negative impls for non-auto traits) - #70385 (Miri nits: comment and var name improvement) - #70411 (Fix for #62691: use the largest niche across all fields) - #70417 (parser: recover on `...` as a pattern, suggesting `..`) - #70424 (simplify match stmt) Failed merges: r? @ghost
-
由 Mazdak Farrokhzad 提交于
simplify match stmt We actually have a surprising amount of ```rust match expr { $($p:pat)|+ => true, _ => false, } ``` While I would prefer this to be replaced with `matches!`, most cases are fairly readable anyway so we can just let them be for now.
-
由 Mazdak Farrokhzad 提交于
parser: recover on `...` as a pattern, suggesting `..` Fixes #70388 My first PR to rust. So please let me know if I'm doing something wrong.
-
由 Mazdak Farrokhzad 提交于
Fix for #62691: use the largest niche across all fields fixes #62691 (The second commit is a small optimization but it makes the code less pretty and i don't know if it is worth it.)
-
由 Mazdak Farrokhzad 提交于
Miri nits: comment and var name improvement r? @EddyB
-
由 Mazdak Farrokhzad 提交于
permit negative impls for non-auto traits This is a prototype impl that extends `impl !Trait` beyond auto traits. It is not integrated with coherence or anything else, and hence only serves to prevent downstream impls (but not to allow downstream crates to rely on the absence of such impls for coherence purposes). Fixes https://github.com/rust-lang/rust/issues/66544 TODO: - [x] need a test that you can't rely on negative impls for coherence purposes - [x] test that negative impls cannot specialize positive ones - [x] test that positive impls cannot specialize negative ones - [x] extend negative impl to `Clone` in order to fully fix #66544 - [x] and maybe make `CoerceUnsized` unsafe? -- that problem is now split out into https://github.com/rust-lang/rust/issues/68015 - [x] introduce feature flag and prepare a write-up - [x] improve diagnostics?
-
由 Olivier Goffart 提交于
-
由 Niko Matsakis 提交于
-
由 Niko Matsakis 提交于
-
由 Niko Matsakis 提交于
-
由 Niko Matsakis 提交于
-
由 Niko Matsakis 提交于
-
由 Niko Matsakis 提交于
-
由 Niko Matsakis 提交于
-
由 Niko Matsakis 提交于
-
由 Niko Matsakis 提交于
-
由 Niko Matsakis 提交于
-
由 Niko Matsakis 提交于
-
由 Niko Matsakis 提交于
They used to be covered by `optin_builtin_traits` but negative impls are now applicable to all traits, not just auto traits. This also adds docs in the unstable book for the current state of auto traits.
-
由 Niko Matsakis 提交于
-
由 Niko Matsakis 提交于
-
由 Bastian Kauschke 提交于
-
由 Rakshith Ravi 提交于
Added tests and stderr output
-
由 bors 提交于
update miri Usually I'd wait until https://github.com/rust-lang/rust/pull/70226 lands which will break Miri again, but... the queue is empty (!), so whatever.^^ r? @ghost Cc @oli-obk Fixes https://github.com/rust-lang/rust/issues/70346
-
由 Ralf Jung 提交于
-
由 bors 提交于
Rollup of 6 pull requests Successful merges: - #69866 (Rename `def_span` to `guess_head_span`) - #69878 (Tweak chained operators diagnostic) - #70375 (avoid catching InterpError) - #70386 (typeck: minor pattern typing improvements) - #70389 (borrowck: prefer "value" over "`_`" in diagnostics) - #70395 (Update cargo.) Failed merges: r? @ghost
-
由 Mazdak Farrokhzad 提交于
Update cargo. 8 commits in 7019b3ed3d539db7429d10a343b69be8c426b576..8a0d4d9c9abc74fd670353094387d62028b40ae9 2020-03-17 21:02:00 +0000 to 2020-03-24 17:57:04 +0000 - Re-implement proc-macro feature decoupling. (rust-lang/cargo#8028) - Remove unused transitive dependencies: miniz_oxide, adler32 (rust-lang/cargo#8023) - Fix bug with -Zfeatures=dev_dep and `check --profile=test`. (rust-lang/cargo#8027) - Remove Config from CompileOptions. (rust-lang/cargo#8021) - Add `rustless.org` to documented blocklist. (rust-lang/cargo#7922) - Print colored warnings when build script panics (rust-lang/cargo#8017) - Do not supply --crate-version flag to rustdoc if present in RUSTDOCFLAGS (rust-lang/cargo#8014) - Add proc-macro to index, and new feature resolver. (rust-lang/cargo#8003)
-
由 Mazdak Farrokhzad 提交于
borrowck: prefer "value" over "`_`" in diagnostics Fixes https://github.com/rust-lang/rust/issues/67565. r? @pnkfelix @matthewjasper cc @mark-i-m
-
由 Mazdak Farrokhzad 提交于
typeck: minor pattern typing improvements r? @estebank
-
由 Mazdak Farrokhzad 提交于
avoid catching InterpError Avoid raising and then capturing `InterpError` for the definedness check. Cc https://github.com/rust-lang/rust/issues/69297 r? @oli-obk
-
由 Mazdak Farrokhzad 提交于
Tweak chained operators diagnostic Use more selective spans Improve suggestion output Be more selective when displaying suggestions Silence some knock-down type errors r? @Centril
-
由 Mazdak Farrokhzad 提交于
Rename `def_span` to `guess_head_span` r? @EddyB
-