- 25 4月, 2019 1 次提交
-
-
由 Guillaume Gomez 提交于
-
- 23 4月, 2019 20 次提交
-
-
由 bors 提交于
Suggest dereferencing when `Deref` is implemented. Fixes #59819. r? @oli-obk cc @estebank
-
由 bors 提交于
Remove `visit_subpats` parameter from `check_pat` The core idea is to keep track of current ID directly in `EllipsisInclusiveRangePatterns` struct and early return in `check_pat` based on it. Fixes https://github.com/rust-lang/rust/issues/60043. r? @varkor
-
由 bors 提交于
Don't stop evaluating due to errors before borrow checking r? @oli-obk Fix #60005. Follow up to #59903. Blocked on #53708, fixing the ICE in `src/test/ui/consts/match_ice.rs`.
-
由 bors 提交于
Disallow double trailing newlines in tidy This wasn't done previously in https://github.com/rust-lang/rust/pull/47064#issuecomment-354533010 as it affected too many files, but I think it's best to fix it now so that the number of files with double trailing newlines doesn't keep increasing. r? kennytm
-
由 bors 提交于
Fix sync_all on macos/ios `sync_all` should flush all metadata in macos/ios, so it should call `fcntl` with the `F_FULLFSYNC` flag as `sync_data` does. Note that without this `sync_data` performs more flushes than `sync_all` on macos/ios.
-
由 bors 提交于
upgrade rustdoc's pulldown-cmark to 0.4.1 Fixes #59194.
-
由 bors 提交于
Continue evaluating after item-type checking Fix #30999. r? @oli-obk
-
由 Tomas Koutsky 提交于
-
由 Esteban Küber 提交于
-
由 Esteban Küber 提交于
-
由 Esteban Küber 提交于
-
由 Esteban Küber 提交于
-
由 Esteban Küber 提交于
-
由 varkor 提交于
-
由 Esteban Küber 提交于
-
由 David Wood 提交于
This commit makes the suggestion to dereference when a type implements `Deref` only apply if the dereference would succeed (ie. the type is `Copy`, otherwise a borrow check error would occur).
-
由 bors 提交于
Add a tidy check for leading newlines This is fairly uncommon, but it can slip through when refactoring (as evidenced by the files with leading newlines here).
-
由 varkor 提交于
-
由 varkor 提交于
-
由 varkor 提交于
-
- 22 4月, 2019 12 次提交
-
-
由 varkor 提交于
-
由 varkor 提交于
-
由 Andy Russell 提交于
-
由 bors 提交于
Enable NLL migrate mode on the 2015 edition ## What is in this PR? * Remove the `-Zborrowck=ast` flag option from rustc. * The default in the 2015 edition is now `-Zborrowck=migrate`. * The 2018 edition default is unchanged: it's still `-Zborrowck=migrate`. * Enable two-phase borrows (currently toggled via the `-Ztwo-phase-borrows` flag) on all editions. * Remove most dead code that handled these options. * Update tests for the above changes. ## What is *not* in this PR? These are left for future PRs * Use `-Zborrowck=mir` in NLL compare mode tests (#56993) * Remove the `-Zborrowck=compare` option (#59193) * Remove the `-Ztwo-phase-borrows` flag. It's kept, as a flag that does nothing so that perf.rlo has time to stop using it (cc @Mark-Simulacrum) * Remove MIR typeck as its own MIR pass - it's now run by NLL. * Enabling `-Zborrowck=mir` by default (#58781) * Replace `allow_bind_by_move_patterns_with_guards` and `check_for_mutation_in_guard_via_ast_walk` with just using the feature gate. (#59192) Soundness issues that are fixed by NLL will stay open until full NLL is emitting hard errors. However, these diagnostics and completeness issues can now be closed: Closes #18330 Closes #22323 Closes #23591 Closes #26736 Closes #27487 Closes #28092 Closes #28970 Closes #29733 Closes #30104 Closes #38915 Closes #39908 Closes #43407 Closes #47524 Closes #48540 Closes #49073 Closes #52614 Closes #55085 Closes #56093 Closes #56496 Closes #57804 cc #43234 r? @pnkfelix cc @rust-lang/lang cc @rust-lang/wg-compiler-nll
-
由 Matthew Jasper 提交于
-
由 bors 提交于
Deny rust_2018_idioms globally cc https://github.com/rust-lang/rust/issues/58099#issuecomment-484921194
-
由 bors 提交于
save-analysis: Use serde instead of libserialize to dump JSON data This breaks the save-analysis infrastructure (which also includes `rls-{analysis, data, span}` crates) from depending on rustc_serialize and so we can start moving them to being supported on stable without implementing `Decodable` et al. by hand for data structures defined there. Notable benefits: - we drop the awkward raw byte `PathBuf` [serialization](https://gist.github.com/Xanewok/f4fe8564d0dc0c3ab1dbc244279ff895) (until now (de)serialized as `&[u8]`) - [faster](https://github.com/serde-rs/json-benchmark) (hopefully noticeable for inner crate dependencies for the RLS workloads) - we can easily explore the binary serialization backend (which we planned to do for save-analysis anyway) ~This should be merged together with an update to RLS (https://github.com/rust-lang/rls/pull/1435), which technically could be included right now because we can use the bundled `rls-analysis` here directly, however I'd prefer to publish this to crates.io first (https://github.com/rust-lang/rls/pull/1434, cc @nrc) and use the published version, instead.~ Includes https://github.com/rust-lang/rls/pull/1436. @matklad @nikomatsakis This is also important for the potential RLS 1.0 - 2.0 bridge we talked about on Zulip today
-
由 bors 提交于
Update Clippy Fixes fallout from https://github.com/rust-lang/rust/pull/60124. Closes #60154. r? @oli-obk cc @matthiaskrgr
-
由 Igor Matuszewski 提交于
Fixes fallout from https://github.com/rust-lang/rust/pull/60124. Closes #60154.
-
由 Matthew Jasper 提交于
This also fully stabilizes two-phase borrows on all editions
-
由 David Wood 提交于
This commit suggests dereferencing a type when it implements `Deref` with the correct `Output` associated type.
-
由 David Wood 提交于
This commit adds a test that demonstrates the current behaviour where suggestions to add a dereference aren't given for non-references.
-
- 21 4月, 2019 7 次提交
-
-
由 Igor Matuszewski 提交于
-
由 bors 提交于
Remove mutability from `Def::Static` Querify `TyCtxt::is_static`. Use `Mutability` instead of bool in foreign statics in AST/HIR. cc https://github.com/rust-lang/rust/pull/60110 r? @EddyB
-
由 Vadim Petrochenkov 提交于
-
由 Vadim Petrochenkov 提交于
-
由 Vadim Petrochenkov 提交于
Add `TyCtxt::is_mutable_static`
-
由 Vadim Petrochenkov 提交于
-
由 Igor Matuszewski 提交于
This also bumps RLS version to 1.36. The updated rls-* packages use serde but *not* serde_derive thanks to manual proc macro expansion. This is a hack, since rustc cannot handle crates.io proc macros (duplicated in tools) when cross-compiling, so that's the best we can do in order to support serde_json in save-analysis.
-