- 16 7月, 2018 3 次提交
-
-
由 Michael Woerister 提交于
This reverts commit 94b32adb.
-
由 Michael Woerister 提交于
This reverts commit dd3f445e.
-
由 Ralf Jung 提交于
-
- 15 7月, 2018 4 次提交
-
-
由 Ralf Jung 提交于
-
由 Ralf Jung 提交于
-
由 Meade Kincke 提交于
Removed the promotable field from CheckCrateVisitor and replaced it with the structs Promotable and NotPromotable.
-
由 Vadim Petrochenkov 提交于
-
- 14 7月, 2018 6 次提交
-
-
由 Vadim Petrochenkov 提交于
-
由 QuietMisdreavus 提交于
-
由 Richard Diamond 提交于
Technically, there are requirements imposed by the LLVM `AMDGPUTargetMachine` on functions with this ABI (eg, the return type must be void), but I'm unsure exactly where this should be enforced.
-
由 Oliver Schneider 提交于
-
由 Jethro Beekman 提交于
-
由 Alex Crichton 提交于
The syntactical expansion of `#[proc_macro]` and related attributes currently contains absolute paths which conflicts with a lint for the 2018 edition, causing issues like #52214. This commit puts a band-aid on the issue by ensuring that procedural macros can also migrate to the 2018 edition for now by tweaking the expansion based on what features are activated. A more long-term solution would probably tweak the edition hygiene of spans, but this should do the trick for now. Closes #52214
-
- 13 7月, 2018 20 次提交
-
-
由 Robin Kruppe 提交于
closes #52345
-
由 ashtneoi 提交于
-
由 ashtneoi 提交于
Also teach rustc_borrowck not to show useless help messages like "use a mutable reference instead: `x`".
-
由 ashtneoi 提交于
-
由 csmoe 提交于
-
由 csmoe 提交于
-
由 csmoe 提交于
-
由 csmoe 提交于
-
由 csmoe 提交于
-
由 ashtneoi 提交于
-
由 ashtneoi 提交于
-
由 ashtneoi 提交于
Specifically, `&self` -> `&mut self` and explicit `ref` -> `ref mut`. Implicit `ref` isn't handled yet and causes an ICE.
-
由 ashtneoi 提交于
-
由 Niko Matsakis 提交于
The strategy is this: - we compute SCCs once all outlives constraints are known - we allocate a set of values **per region** for storing liveness - we allocate a set of values **per SCC** for storing the final values - when we add a liveness constraint to the region R, we also add it to the final value of the SCC to which R belongs - then we can apply the constraints by just walking the DAG for the SCCs and union'ing the children (which have their liveness constraints within) There are a few intermediate refactorings that I really ought to have broken out into their own commits: - reverse the constraint graph so that `R1: R2` means `R1 -> R2` and not `R2 -> R1`. This fits better with the SCC computation and new style of inference (`->` now means "take value from" and not "push value into") - this does affect some of the UI tests, since they traverse the graph, but mostly the artificial ones and they don't necessarily seem worse - put some things (constraint set, etc) into `Rc`. This lets us root them to permit mutation and iteration. It also guarantees they don't change, which is critical to the correctness of the algorithm. - Generalize various helpers that previously operated only on points to work on any sort of region element.
-
由 kennytm 提交于
-
由 kennytm 提交于
Fix #45222.
-
由 Vadim Petrochenkov 提交于
-
由 Alex Crichton 提交于
This commit adds a lint to the compiler to warn against the `#[macro_use]` directive as part of the `rust_2018_idioms` lint. This lint is turned off by default and is only enabled when the `use_extern_macros` feature is also enabled. The lint here isn't fully fleshed out as it's just a simple warning rather than suggestions of how to actually import the macro, but hopefully it's a good base to start from! cc #52043
-
由 Taylor Cramer 提交于
-
由 varkor 提交于
-
- 12 7月, 2018 6 次提交
-
-
由 Michael Woerister 提交于
-
由 Michael Woerister 提交于
-
由 Mike Hommey 提交于
Fixes #52097
-
由 Mike Hommey 提交于
They highlight how types are displayed in those cases, and will show how the current output is altered by the next patch.
-
由 Tinco Andringa 提交于
-
由 Alex Crichton 提交于
... and perform the same verification for #[proc_macro_attribute], currently neither of these attributes take any arguments. Closes #52273
-
- 11 7月, 2018 1 次提交
-
-
由 Michael Woerister 提交于
-