- 25 8月, 2018 3 次提交
-
-
由 Niko Matsakis 提交于
-
由 Niko Matsakis 提交于
-
由 Niko Matsakis 提交于
-
- 24 8月, 2018 10 次提交
-
-
由 bors 提交于
Stabilize 'attr_literals' feature. RFC Issue: rust-lang/rfcs#1559 Tracking Issue: rust-lang/rust#34981 Reference PR: https://github.com/rust-lang-nursery/reference/pull/388.
-
由 bors 提交于
Address two regressions Remove assert checking that expansion data is immutable until I have time to investigate why it's firing, cc https://github.com/rust-lang/rust/issues/52363 Turn the error for module-relative access to macro-expanded `macro_export` macros into a deprecation lint, closes https://github.com/rust-lang/rust/issues/53495
-
由 Sergio Benitez 提交于
-
由 Vadim Petrochenkov 提交于
Turn the error for module-relative access to macro-expanded `macro_export` macros into a deprecation lint
-
由 Vadim Petrochenkov 提交于
-
由 Vadim Petrochenkov 提交于
This reverts commit b15785b6.
-
由 bors 提交于
Update clippy r? @oli-obk @Manishearth
-
由 flip1995 提交于
-
由 bors 提交于
Auto merge of #53588 - tristanburgess:52985_diagnostics_no_concrete_type_behind_existential_type, r=oli-obk 52985 diagnostics no concrete type behind existential type @oli-obk FYI. See below for new cycle error generated. ```rust error[E0391]: cycle detected when processing `Foo` --> /dev/staging/existential_type_no_concrete_type_nouse_potential.rs:3:1 | 3 | existential type Foo: Copy; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ | note: ...which requires processing `bar`... --> /dev/staging/existential_type_no_concrete_type_nouse_potential.rs:6:23 | 6 | fn bar(x: Foo) -> Foo { | _______________________^ 7 | | x 8 | | } | |_^ = note: ...which again requires processing `Foo`, completing the cycle error: aborting due to previous error For more information about this error, try `rustc --explain E0391`. ```
-
由 bors 提交于
Fix unsoundness for VecDeque See individual commit for more details. r? @RalfJung. Fixes https://github.com/rust-lang/rust/issues/53566, fixes https://github.com/rust-lang/rust/issues/53529
-
- 23 8月, 2018 15 次提交
-
-
由 bors 提交于
Use optimized SmallVec implementation This PR replaces current SmallVec implementation with the one from the Servo project. Closes https://github.com/rust-lang/rust/issues/51640 r? @Mark-Simulacrum
-
由 flip1995 提交于
-
由 bors 提交于
Implement try block expressions I noticed that `try` wasn't a keyword yet in Rust 2018, so... ~~Fixes https://github.com/rust-lang/rust/issues/52604~~ That was fixed by PR https://github.com/rust-lang/rust/pull/53135 cc https://github.com/rust-lang/rust/issues/31436 https://github.com/rust-lang/rust/issues/50412
-
由 bors 提交于
Stabilize a few secondary macro features - `tool_attributes` - closes https://github.com/rust-lang/rust/issues/44690 - `proc_macro_path_invoc` - this feature was created due to issues with tool attributes (https://github.com/rust-lang/rust/issues/51277), those issues are now fixed (https://github.com/rust-lang/rust/pull/52841) - partially `proc_macro_gen` - this feature was created due to issue https://github.com/rust-lang/rust/issues/50504, the issue is now fixed (https://github.com/rust-lang/rust/pull/51952), so proc macros can generate modules. They still can't generate `macro_rules` items though due to unclear hygiene interactions.
-
由 Igor Gutorov 提交于
-
由 bors 提交于
Feature gate where clauses on associated type impls Fixes #52913. This doesn't address the core problem, which is tracked by https://github.com/rust-lang/rust/issues/47206. However, it fixes the stable-to-stable regression: you now have to enable `#![feature(generic_associated_types)]` to trigger the weird behaviour.
-
由 bors 提交于
Merge `IdxSet` and `IdxSetBuf` Because it simplifies things. @r? nikomatsakis
-
由 Tristan Burgess 提交于
-
由 Tristan Burgess 提交于
- Original cycle error diagnostics PR'd against this issue caught panic-causing error while resolving std::mem::transmute calls - Now, catch invalid use case of not providing a concrete sized type behind existential type in definining use case. - Update relevant test to reflect this new error 52985: revert normalize query changes - PR 53588 invalidates 53316, causing a correct cycle error to occur with a good span. - Don't need to revert the whole merge as the test files are still fine, just need to revert the normalize query changes. - It should now be correct that infinite recursion detected during normalize query type folding is a bug, should have been caught earlier (when resolving the existential type's defining use cases). 52985: code review impl - Only cause cycle error if anonymous type resolves to anonymous type that has the same def id (is the same type) as the original (parent) type. - Add test case to cover this case for existential types. 52985: remove Ty prefix from TyAnon - To align with changes per commit 6f637da5
-
由 Vadim Petrochenkov 提交于
`tool_attributes`, `proc_macro_path_invoc`, partially `proc_macro_gen`
-
由 bors 提交于
Allow panicking with string literal messages inside constants r? @EddyB cc https://github.com/rust-lang/rust/issues/51999 we can't implement things like `panic!("foo: {}", x)` right now because we can't call trait methods (most notably `Display::fmt`) inside constants. Also most of these impls probably have loops and conditions, so it's messy anyway. But hey `panic!("foo")` works at least. cc @japaric got any test ideas for `#![no_std]`?
-
由 bors 提交于
Rollup of 10 pull requests Successful merges: - #53418 (Mark some suggestions as MachineApplicable) - #53431 (Moved some feature gate ui tests to correct location) - #53442 (Update version of rls-data used with save-analysis) - #53504 (Set applicability for more suggestions.) - #53541 (Fix missing impl trait display as ret type) - #53544 (Point at the trait argument when using unboxed closure) - #53558 (Normalize source line and column numbers.) - #53562 (Lament the invincibility of the Turbofish) - #53574 (Suggest direct raw-pointer dereference) - #53585 (Remove super old comment on function that parses items) Failed merges: - #53472 (Use FxHash{Map,Set} instead of the default Hash{Map,Set} everywhere in rustc.) - #53563 (use String::new() instead of String::from(""), "".to_string(), "".to_owned() or "".into()) r? @ghost
-
由 Oliver Schneider 提交于
-
由 Oliver Schneider 提交于
-
- 22 8月, 2018 12 次提交
-
-
由 Guillaume Gomez 提交于
Remove super old comment on function that parses items This comment was added more than 5 years ago in ab03c1e4. As far as anyone reading this comment today needs to know, the function has never parsed items from inside an extern crate.
-
由 Guillaume Gomez 提交于
Suggest direct raw-pointer dereference People often come looking for some kind of `as_ref_unchecked` method on raw pointers that would give them `&T` and not `Option<&T>` when they are sure the pointer is not NULL. There's no such method, but taking a reference of the dereferenced pointer accomplishes the same thing. Therefore, suggest using that, at the `as_ref` site ‒ it's a place people are likely going to look into.
-
由 Guillaume Gomez 提交于
Lament the invincibility of the Turbofish Here a test case is added to ensure that any others attempting to drive the Turbofish to extinction have second thoughts. Previously the [entire test suite would succeed](https://github.com/rust-lang/rust/pull/53511) if generic arguments were accepted without disambiguation, making for [confusing and heartbreaking circumstances](https://github.com/rust-lang/rfcs/pull/2527).
-
由 Guillaume Gomez 提交于
Normalize source line and column numbers. Fixes #53547. r? @EddyB
-
由 Guillaume Gomez 提交于
Point at the trait argument when using unboxed closure Fix #53534. r? @varkor
-
由 Guillaume Gomez 提交于
Fix missing impl trait display as ret type I need to convert a `TraitPredicate` into a `TraitBound` to get the returned impl trait. So far, didn't find how or even if it was the good way to do it. cc @EddyB @oli-obk (since you're the one behind the change apparently
😉 ) -
由 Guillaume Gomez 提交于
Set applicability for more suggestions. Converts a couple more calls to `span_suggestion_with_applicability` (#50723). To be on the safe side, I marked suggestions that depend on the intent of the user or that are potentially lossy conversions as MaybeIncorrect. r? @estebank
-
由 Guillaume Gomez 提交于
Update version of rls-data used with save-analysis This part 1/3 for fixing rust-lang/rust#53440.
-
由 Guillaume Gomez 提交于
Moved some feature gate ui tests to correct location None
-
由 Guillaume Gomez 提交于
Mark some suggestions as MachineApplicable I think the following suggestions should be safe to mark as `MachineApplicable`. r? @estebank
-
由 bors 提交于
fix array drop glue: properly turn raw ptr into reference Discovered while working on https://github.com/rust-lang/rust/pull/53424: The generated drop glue uses an assignment `ptr = cur` where `ptr` is a reference and `cur` a raw pointer. This is not well-formed MIR. Do we have MIR sanity checks that run on the drop glue and should have caught this? r? @EddyB
-
由 varkor 提交于
-