about summary refs log tree commit diff
path: root/src/librustc_passes
AgeCommit message (Collapse)AuthorLines
2019-02-07Fix ast_validation printing of const genericsvarkor-7/+13
2019-02-07Validate generic parameter and argument order in ast_validationvarkor-16/+112
Co-Authored-By: Gabriel Smith <yodaldevoid@users.noreply.github.com>
2019-02-07Rollup merge of #58185 - GuillaumeGomez:images-url, r=SimonSapinGuillaume Gomez-3/+1
Remove images' url to make it work even without internet connection Needed for local std docs mainly. cc @SimonSapin r? @QuietMisdreavus
2019-02-07Remove images' url to make it work even without internet connectionGuillaume Gomez-3/+1
2019-02-07Auto merge of #58010 - Zoxc:parallel-passes, r=michaelwoeristerbors-1/+0
Move privacy checking later in the pipeline and make some passes run in parallel r? @michaelwoerister
2019-01-30Fix #57730John Kåre Alsaker-1/+1
2019-01-30Move privacy checking later in the pipeline and make some passes run in parallelJohn Kåre Alsaker-1/+0
2019-01-29Add an ensure() method to TyCtxt used to ensure queries are runJohn Kåre Alsaker-2/+1
2019-01-28Conditionally skip two passes if their related attributes were not foundJohn Kåre Alsaker-3/+21
2019-01-26remove `_with_applicability` from suggestion fnsAndy Russell-3/+3
2019-01-25distinguish "no data" from "heterogeneous" for ABI purposesNiko Matsakis-0/+133
Also, add a testing infrastructure and tests that lets us dump layout.
2019-01-24Rollup merge of #57730 - Zoxc:combined-ast-validator, r=cramertjMazdak Farrokhzad-144/+106
Merge visitors in AST validation Cuts runtime for AST validation on `syntex_syntax` from 31.5 ms to 17 ms.
2019-01-21Differentiate between closure and function bodiesOliver Scherer-0/+1
2019-01-19Address some commentsJohn Kåre Alsaker-12/+7
2019-01-18Merge visitors in AST validationJohn Kåre Alsaker-144/+111
2019-01-17Remove `hir::StmtKind::Decl`.Nicholas Nethercote-20/+11
It's a level of indirection that hurts far more than it helps. The code is simpler without it. (This commit cuts more than 120 lines of code.) In particular, this commit removes some unnecessary `Span`s within `DeclKind` that were always identical to those in the enclosing `Stmt`, and some unnecessary allocations via `P`.
2019-01-17Make `hir::Stmt` a separate struct.Nicholas Nethercote-4/+4
Benefits: - It lets us move the `NodeId` field out of every `hir::StmtKind` variant `NodeId` to a more sensible spot. - It eliminates sadness in `Stmt::fmt`. - It makes `hir::Stmt` match `ast::Stmt`.
2019-01-13Auto merge of #51487 - Zoxc:incr-passes, r=michaelwoeristerbors-13/+22
Make more passes incremental r? @michaelwoerister
2019-01-11Address commentsJohn Kåre Alsaker-2/+2
2019-01-11Make more passes incrementalJohn Kåre Alsaker-13/+22
2019-01-08Consolidate equality constraints error messagevarkor-2/+3
2018-12-27Do not abort compilation if expansion produces errorsVadim Petrochenkov-30/+0
Fix a number of uncovered deficiencies in diagnostics
2018-12-27AST/HIR: Introduce `ExprKind::Err` for better error recovery in the front-endVadim Petrochenkov-1/+2
2018-12-25Remove licensesMark Rousskov-59/+0
2018-12-23Fix recursion limitsJohn Kåre Alsaker-0/+2
2018-12-16Rollup merge of #56343 - yui-knk:remove_mir_stats_mod, r=nikomatsakisMazdak Farrokhzad-257/+0
Remove not used mod `mir_stats` mod has not been used since c1ff10464dc6b685f871d2365e3d8a39de324ba9.
2018-12-07Various minor/cosmetic improvements to codeAlexander Regueiro-3/+3
2018-12-06Use a function to access the Hir map to be able to turn it into a query laterJohn Kåre Alsaker-11/+11
2018-11-29Remove not used modyui-knk-257/+0
`mir_stats` mod has not been used since c1ff10464dc6b685f871d2365e3d8a39de324ba9.
2018-11-25Auto merge of #55959 - matthewjasper:remove-end-region, r=nikomatsakisbors-1/+0
Cleanup from lexical MIR borrowck removal Lexical MIR borrowck was removed months ago now, and `EndRegion`s are no longer used for MIRI verification. * Remove `rustc::mir::StatementKind::EndRegion` and the `-Zemit_end_regions` flag * Use `RegionVid` instead of `Region` in BorrowSet * Rewrite drop generation to create fewer goto terminators. r? @nikomatsakis
2018-11-21rustc: remove {FxHash,Node,DefId,HirId,ItemLocal}{Map,Set} "constructor" fns.Eduard-Mihai Burtescu-2/+2
2018-11-18Remove mir::StatementKind::EndRegionMatthew Jasper-1/+0
Since lexical MIR borrow check is gone, and validation no longer uses these, they can be removed.
2018-11-15Rollup merge of #55901 - euclio:speling, r=petrochenkovPietro Albini-1/+1
fix various typos in doc comments
2018-11-15Auto merge of #55716 - RalfJung:escape-to-raw, r=oli-obkbors-0/+1
Add escape-to-raw MIR statement Add a new MIR "ghost state statement": Escaping a ptr to permit raw accesses. ~~This includes #55549, [click here](https://github.com/RalfJung/rust/compare/miri-visitor...RalfJung:escape-to-raw) for just the new commits.~~
2018-11-13fix various typos in doc commentsAndy Russell-1/+1
2018-11-07no more action on ref or cast, but add new MIR statement for escaping a ptr ↵Ralf Jung-0/+1
to raw
2018-11-07Rollup merge of #55734 - teresy:shorthand-fields, r=davidtwcokennytm-1/+1
refactor: use shorthand fields refactor: use shorthand for single fields everywhere (excluding tests).
2018-11-06refactor: use shorthand fieldsteresy-1/+1
2018-11-03Extended elaboration for trait aliases to include arbitrary bounds.Alexander Regueiro-19/+0
2018-10-29Emit Retag statements, kill Validate statementsRalf Jung-1/+1
Also "rename" -Zmir-emit-validate to -Zmir-emit-retag, which is just a boolean (yes or no).
2018-10-27Auto merge of #55150 - ↵bors-0/+1
pnkfelix:issues-47215-54797-fix-ice-from-moving-out-of-thread-local-under-ast-borrowck, r=nikomatsakis Do not allow moving out of thread local under ast borrowck AST borrowck failed to prevent moving out of a thread-local static. This was broken. And it also (sometimes?) caused an ICE during drop elaboration. Fix #47215 Fix #54797
2018-10-26Remove `PlaceContext` from API of `mir::Visitor::visit_projection_elem`.Felix S. Klock II-2/+1
It is unused, and would not make sense to maintain in the commits later in this PR.
2018-10-23fix typos in various placesMatthias Krüger-8/+8
2018-10-19Deprecate the `FxHashMap()` and `FxHashSet()` constructor function hackOliver Scherer-4/+4
2018-10-17AST-borrowck: add separate mem category for thread-locals, as they are not ↵Felix S. Klock II-0/+1
quite rvalues (and of course they are not quite statics either). Namely, they *do* have a restricted region (like rvalues), but they also cannot be moved out of (like statics).
2018-10-03Only promote calls to `#[rustc_promotable]` const fnsOliver Schneider-48/+13
2018-09-30do not promote comparing function pointersRalf Jung-1/+1
2018-09-27Bump to 1.31.0 and bootstrap from 1.30 betaJosh Stone-1/+1
2018-09-22Auto merge of #54188 - lqd:fallout-53695, r=nikomatsakisbors-1/+1
NLL: disallow creation of immediately unusable variables Fix #53695 Original description follows ---- This WIP PR is for discussing the impact of fixing #53695 by injecting a fake read in let patterns. (Travis will fail, at least the `mir-opt` suite is failing in its current state)
2018-09-18Refactor 'ReadForMatch' into 'FakeRead' and add the cause of the fake readRemy Rakic-1/+1