about summary refs log tree commit diff
path: root/src/librustc
AgeCommit message (Collapse)AuthorLines
2019-10-17Inline and remove `iterate_until_fixed_point()`.Nicholas Nethercote-39/+28
The commit also removes the debug statement, because they annoyed me. This change wins another 1% on `unicode_normalization`, at least partly because it no longer needs to increment `iteration`.
2019-10-16Auto merge of #63756 - Zoxc:sharded-dep-graph-1, r=nikomatsakisbors-60/+72
Use more fine grained locks for the dep graph Split out from https://github.com/rust-lang/rust/pull/61845. r? @michaelwoerister cc @aturon
2019-10-17Use a `BitSet` in `LexicalResolver::iterate_until_fixed_point()`.Nicholas Nethercote-5/+18
This wins 3% on `unicode_normalization`.
2019-10-16Deduplicate code for formatting `RangeEnd`Esteban Küber-0/+9
2019-10-16Move overlapping patterns to its own lintEsteban Küber-0/+7
2019-10-16Check if there are any delayed_span_bugs and abort incremental compilation ↵Quentin Boyer-0/+3
in this case
2019-10-16move syntax::ext to new crate syntax_expandMazdak Farrokhzad-13/+14
2019-10-16Make use of the return value of `HashSet::insert`Shotaro Yamada-2/+1
2019-10-15Rollup merge of #65444 - spastorino:as-ref-for-list, r=Mark-SimulacrumTyler Mandry-0/+7
Implement AsRef<[T]> for List<T> r? @Mark-Simulacrum
2019-10-15Rollup merge of #65389 - ecstatic-morse:zero-sized-array-no-drop, r=eddybTyler Mandry-0/+3
Return `false` from `needs_drop` for all zero-sized arrays. Resolves #65348. This changes the result of the `needs_drop` query from `true` to `false` for types such as `[Box<i32>; 0]`. I believe this change to be sound because a zero-sized array can never actually hold a value. This is an elegant way of resolving #65348 and #64945, but obviously it has much broader implications.
2019-10-15Rollup merge of #65307 - Phosphorus15:master, r=varkorTyler Mandry-4/+8
Try fix incorrect "explicit lifetime name needed" This pr is trying to fixes #65285 .
2019-10-15Rollup merge of #65293 - tmandry:turbo-expander, r=matthewjasperTyler Mandry-4/+17
Optimize `try_expand_impl_trait_type` A lot of time was being spent expanding some large `impl Future` types in fuchsia. This PR takes the number of types being visited in one expansion from >3 billion to about a thousand, and eliminates the compile time regression in https://github.com/rust-lang/rust/issues/65147 (in fact, compile times are better than they were before). Thanks to @Mark-Simulacrum for helping identify the issue and to @matthewjasper for suggesting this change. Fixes #65147. r? @matthewjasper,@nikomatsakis
2019-10-15Rollup merge of #64623 - matthewjasper:underscore-imports, r=petrochenkovTyler Mandry-1/+1
Remove last uses of gensyms Underscore bindings now use unique `SyntaxContext`s to avoid collisions. This was the last use of gensyms in the compiler, so this PR also removes them. closes #49300 cc #60869 r? @petrochenkov
2019-10-15Rollup merge of #64603 - gilescope:unused-lifetime-warning, r=matthewjasperTyler Mandry-1/+7
Reducing spurious unused lifetime warnings. Fixes #61115, fixes #64493.
2019-10-15Fix comparison after rebaseEsteban Küber-1/+1
2019-10-15Do not suggest restriction on spans originating in macrosEsteban Küber-14/+17
2019-10-15review commentsEsteban Küber-59/+51
2019-10-15Remove trailing whitespaceEsteban Küber-1/+1
2019-10-15Remove useless `help`Esteban Küber-10/+1
2019-10-15Deduplicate some code and apply review commentsEsteban Küber-102/+93
2019-10-15Suggest associated bound restrictions in `impl`sEsteban Küber-0/+24
2019-10-15Handle missing projection restrictionEsteban Küber-9/+40
2019-10-15Consider trait aliasesEsteban Küber-0/+3
2019-10-15Handle `Self` restriction neededEsteban Küber-0/+28
2019-10-15Handle more cases involving `impl` and `trait`Esteban Küber-67/+80
2019-10-15Handle more casesEsteban Küber-1/+10
2019-10-15Use structured suggestion for restricting boundsEsteban Küber-2/+95
When a trait bound is not met and restricting a type parameter would make the restriction hold, use a structured suggestion pointing at an appropriate place (type param in param list or `where` clause). Account for opaque parameters where instead of suggesting extending the `where` clause, we suggest appending the new restriction: `fn foo(impl Trait + UnmetTrait)`.
2019-10-15Remove some mentions of gensymsMatthew Jasper-1/+1
2019-10-15Implement AsRef<[T]> for List<T>Santiago Pastorino-0/+7
2019-10-15Avoid unused lifetime warning for lifetimes introduced when desugering async.Giles Cope-1/+7
2019-10-15Slides path lifetime to the lifetime resolverphosphorus-4/+8
add test to for the fix add descriptive text for the fix simplified code logics update descriptive comments update to cope with the tidyness requirement merged commit suggestions Co-Authored-By: varkor <github@varkor.com> truncated redundant comments update to cope with tidy-check
2019-10-15Rollup merge of #65376 - Centril:syntax-extractions-1, r=petrochenkovMazdak Farrokhzad-7/+8
syntax: misc extractions Part of https://github.com/rust-lang/rust/pull/65324. r? @petrochenkov
2019-10-15syntax::parse::sess -> syntax::sessMazdak Farrokhzad-7/+8
2019-10-15Stabilize proc macros generating `macro_rules` itemsVadim Petrochenkov-1/+1
2019-10-14Rollup merge of #65398 - estebank:capitalization-only, r=varkorTyler Mandry-1/+2
Bring attention to suggestions when the only difference is capitalization CC #65386.
2019-10-14Rollup merge of #65260 - nnethercote:optimize-LexicalResolve-expansion, ↵Tyler Mandry-10/+16
r=nikomatsakis Optimize `LexicalResolve::expansion`. A win for `unicode_normalization`. r? @nikomatsakis
2019-10-14Rollup merge of #65170 - petrochenkov:cload, r=eddybTyler Mandry-4/+14
rustc_metadata: Privatize private code and remove dead code Also some minor cleanup and documentation improvements. r? @eddyb
2019-10-14Only expand types that contain projectionsTyler Mandry-1/+3
2019-10-14Add expanded type cache to OpaqueTypeExpanderTyler Mandry-3/+14
2019-10-14Use more fine grained locks for the dep graphJohn Kåre Alsaker-60/+72
2019-10-14Auto merge of #64987 - oli-obk:code_reuse_prevents_bugs, r=eddybbors-9/+7
Compute the layout of uninhabited structs fixes #64506 r? @eddyb
2019-10-14rustc_metadata: Remove resolutions for extern crate items from `CStore`Vadim Petrochenkov-4/+8
Use a more traditional scheme with providing them as a resolver output
2019-10-14rustc_metadata: Use `CrateSource` where appropriateVadim Petrochenkov-0/+6
2019-10-14Auto merge of #65399 - Centril:rollup-6lzj0w5, r=Centrilbors-190/+331
Rollup of 7 pull requests Successful merges: - #65215 (Add long error explanation for E0697) - #65292 (Print lifetimes with backticks) - #65362 (syntax: consolidate function parsing in item.rs) - #65363 (Remove implicit dependencies on syntax::pprust) - #65379 (refactor session::config::build_session_options_and_crate_config) - #65392 (Move `Nonterminal::to_tokenstream` to parser & don't rely directly on parser in lowering) - #65395 (Add some tests for fixed ICEs) Failed merges: r? @ghost
2019-10-14Rollup merge of #65392 - Centril:nt-to-tt, r=Mark-SimulacrumMazdak Farrokhzad-2/+12
Move `Nonterminal::to_tokenstream` to parser & don't rely directly on parser in lowering Split out from https://github.com/rust-lang/rust/pull/65324. r? @petrochenkov
2019-10-14Rollup merge of #65379 - Centril:refactor-bso_and_cc, r=petrochenkovMazdak Farrokhzad-183/+296
refactor session::config::build_session_options_and_crate_config I'm not exactly sure what happened in https://github.com/rust-lang/rust/pull/65361#issuecomment-541420179 so in an effort to bisect the error I'm extracting out the first commit so it can hopefully land (I suspect the error is in the 2nd-3rd commits.) r? @petrochenkov (I'll r=you when the PR builder is happy)
2019-10-14Rollup merge of #65363 - Centril:less-pprust, r=Mark-SimulacrumMazdak Farrokhzad-1/+2
Remove implicit dependencies on syntax::pprust Part of https://github.com/rust-lang/rust/pull/65324. The main goal here is to facilitate the eventual move of pprust out from libsyntax and because an AST definition typically should not depend on its pretty printer. r? @estebank
2019-10-14Rollup merge of #65292 - JohnTitor:add-backticks, r=varkor,CentrilMazdak Farrokhzad-3/+3
Print lifetimes with backticks Fixes #65287 r? @varkor
2019-10-14Rollup merge of #65215 - JohnTitor:long-explanation-e0697, r=GuillaumeGomezMazdak Farrokhzad-1/+18
Add long error explanation for E0697 Part of #61137 r? @GuillaumeGomez
2019-10-13Bring attention to suggestions when the only difference is capitalizationEsteban Küber-1/+2