- 24 3月, 2019 1 次提交
-
-
由 bors 提交于
HirIdification: kill off NodeId stragglers The final stages of HirIdification (#57578). This PR, along with https://github.com/rust-lang/rust/pull/59042, should finalize the HirIdification process (at least the more straightforward bits). - replace `NodeId` with `HirId` in `trait_impls` - remove all `NodeId`s from `borrowck` - remove all `NodeId`s from `typeck` - remove all `NodeId`s from `mir` - remove `trait_auto_impl` (unused) I would be cool to also remove `NodeId` from `hir::def::Def`, `middle::privacy::AccessLevel` and `hir::ItemId`, but I don't know if this is feasible. I'll be happy to do more if I've missed anything.
-
- 23 3月, 2019 23 次提交
-
-
由 bors 提交于
middle: replace NodeId with HirId in AccessLevels Pushing the limits of HirIdification (#57578). Replaces `NodeId` with `HirId` in `middle::privacy::AccessLevels`. Actually this time I was more successful and cracked it; I probably tried to HirIdify too much at once when I attempted it last time ^^. r? @Zoxc
-
由 bors 提交于
syntax: Better recovery for `$ty::AssocItem` and `ty!()::AssocItem` This PR improves on https://github.com/rust-lang/rust/pull/46788 covering a few missing cases. Fixes https://github.com/rust-lang/rust/issues/52307 Fixes https://github.com/rust-lang/rust/issues/53776 r? @estebank
-
由 bors 提交于
Elide object safety errors on non-existent trait function Fix #58734. r? @zackmdavis
-
由 bors 提交于
Rollup of 18 pull requests Successful merges: - #59106 (Add peer_addr function to UdpSocket) - #59170 (Add const generics to rustdoc) - #59172 (Update and clean up several parts of CONTRIBUTING.md) - #59190 (consistent naming for Rhs type parameter in libcore/ops) - #59236 (Rename miri component to miri-preview) - #59266 (Do not complain about non-existing fields after parse recovery) - #59273 (some small HIR doc improvements) - #59291 (Make Option<ThreadId> no larger than ThreadId, with NonZeroU64) - #59297 (convert field/method confusion help to suggestions) - #59304 (Move some bench tests back from libtest) - #59309 (Add messages for different verbosity levels. Output copy actions.) - #59321 (Unify E0109, E0110 and E0111) - #59322 (Tweak incorrect escaped char diagnostic) - #59323 (use suggestions for "enum instead of variant" error) - #59327 (Add NAN test to docs) - #59329 (cleanup: Remove compile-fail-fulldeps directory again) - #59347 (Move one test from run-make-fulldeps to ui) - #59360 (Add tracking issue number for `seek_convenience`) Failed merges: r? @ghost
-
由 Mazdak Farrokhzad 提交于
Add tracking issue number for `seek_convenience` We forgot to do that in #58422
-
由 Mazdak Farrokhzad 提交于
Move one test from run-make-fulldeps to ui The test was written when `--extern` without path didn't exist.
-
由 Mazdak Farrokhzad 提交于
cleanup: Remove compile-fail-fulldeps directory again It was already removed once in https://github.com/rust-lang/rust/pull/56444, but was partially resurrected by rebase of some other PR.
-
由 Mazdak Farrokhzad 提交于
Add NAN test to docs Documents and tests NAN behavior for the new (f32, f64)::clamp function.
-
由 Mazdak Farrokhzad 提交于
use suggestions for "enum instead of variant" error
-
由 Mazdak Farrokhzad 提交于
Tweak incorrect escaped char diagnostic
-
由 Mazdak Farrokhzad 提交于
Unify E0109, E0110 and E0111 Error messages should no longer be restricted to specific generic kinds.
-
由 Mazdak Farrokhzad 提交于
Add messages for different verbosity levels. Output copy actions.
-
由 Mazdak Farrokhzad 提交于
Move some bench tests back from libtest It doesn't make much sense to test these on rust-lang/libtest since they exercise the `#[bench]` macro which is part of rust-lang/rust. This PR moves these tests back here. r? @alexcrichton
-
由 Mazdak Farrokhzad 提交于
convert field/method confusion help to suggestions
-
由 Mazdak Farrokhzad 提交于
Make Option<ThreadId> no larger than ThreadId, with NonZeroU64
-
由 Mazdak Farrokhzad 提交于
some small HIR doc improvements
-
由 Mazdak Farrokhzad 提交于
Do not complain about non-existing fields after parse recovery When failing to parse struct-like enum variants, the ADT gets recorded as having no fields. Record that we have actually recovered during parsing of this variant to avoid complaing about non-existing fields when actually using it. Fix #57361.
-
由 Mazdak Farrokhzad 提交于
Rename miri component to miri-preview It should fix installation via `rustup` and indicates it's not stable yet.
-
由 Mazdak Farrokhzad 提交于
consistent naming for Rhs type parameter in libcore/ops Rename RHS type parameter occurrences RHS->Rhs to make it consistent throughout files and follow naming conventions.
-
由 Mazdak Farrokhzad 提交于
Update and clean up several parts of CONTRIBUTING.md
-
由 Mazdak Farrokhzad 提交于
Add const generics to rustdoc Split out from #53645. This work is a collaborative effort with @yodaldevoid. The `FIXME`s are waiting on a refactor to `LazyConst`. I'll address these in a follow up, but I thought it would be better to implement the rest now to avoid bitrot. r? @QuietMisdreavus
-
由 Mazdak Farrokhzad 提交于
Add peer_addr function to UdpSocket Fixes #59104 This is my first pull request to Rust, so opening early for some feedback. My biggest question is: where do I add tests? Any comments very much appreciated!
-
由 bors 提交于
Unify OsString/OsStr for byte-based implementations As requested in #57860 r? @joshtriplett
-
- 22 3月, 2019 12 次提交
-
-
由 bors 提交于
FreeBSD 10.x is EOL, in FreeBSD 11 and later, ss_sp is actually a void* …d* [1] dragonflybsd still uses c_char [2] [1] https://svnweb.freebsd.org/base/releng/11.2/sys/sys/signal.h?revision=334459&view=markup#l438 [2] https://github.com/DragonFlyBSD/DragonFlyBSD/blob/master/sys/sys/signal.h#L339
-
由 Mateusz Mikuła 提交于
It should fix installation via rustup and indicates it's not stable yet
-
由 bors 提交于
When encountering `||{}()`, suggest the likely intended `(||{})()` Fix #55851.
-
由 Lukas Kalbertodt 提交于
-
由 bors 提交于
Refactor tools/build-mainfest I saw some duplication in https://github.com/rust-lang/rust/pull/58990 and got an itch... Will likely need to be rebased when that lands. Hopefully the PR should have zero semantic changes... r? @alexcrichton
-
由 bors 提交于
Recover from missing comma between enum variants and from bad `pub` kw Fix #56579. Fix #56473.
-
由 bors 提交于
Point at coercion reason for `if` expressions without else clause if caused by return type ``` error[E0317]: if may be missing an else clause --> $DIR/if-without-else-as-fn-expr.rs:2:5 | LL | fn foo(bar: usize) -> usize { | ----- found `usize` because of this return type LL | / if bar % 5 == 0 { LL | | return 3; LL | | } | |_____^ expected (), found usize | = note: expected type `()` found type `usize` = note: `if` expressions without `else` must evaluate to `()` ``` Fix #25228.
-
由 Jethro Beekman 提交于
-
由 Vadim Petrochenkov 提交于
-
由 bors 提交于
hygiene: Fix identifier comparison in impl overlap check Fixes https://github.com/rust-lang/rust/issues/58942
-
由 Vadim Petrochenkov 提交于
-
由 MikaelUrankar 提交于
-
- 21 3月, 2019 4 次提交
-
-
由 MikaelUrankar 提交于
dragonflybsd still uses c_char [2] [1] https://svnweb.freebsd.org/base/releng/11.2/sys/sys/signal.h?revision=334459&view=markup#l438 [2] https://github.com/DragonFlyBSD/DragonFlyBSD/blob/master/sys/sys/signal.h#L339
-
由 Andy Russell 提交于
-
由 bors 提交于
Add provided methods `Seek::{stream_len, stream_position}` This adds two new, provided methods to the `io::Seek` trait: - `fn stream_len(&mut self) -> Result<u64>` - `fn stream_position(&mut self) -> Result<u64>` Both are added for convenience and to improve readability in user code. Reading `file.stream_len()` is much better than to manually seek two or three times. Similarly, `file.stream_position()` is much more clear than `file.seek(SeekFrom::Current(0))`. You can find prior discussions [in this internals thread](https://internals.rust-lang.org/t/pre-rfc-idea-extend-io-seek-with-convenience-methods-with-e-g-stream-len/9262). I think I addressed all concerns in that thread. I already wrote three RFCs to add a small new API to libstd but I noticed that many public changes to libstd happen without an RFC. So I figured I can try opening a PR directly without going through RFCs first. After all, we do have rfcbot here too. If you think this change is too big to merge without an RFC, I can still close this PR and write an RFC.
-
由 bors 提交于
Add default keyword handling in rustdoc Fixes #58898. r? @QuietMisdreavus
-