summary refs log tree commit diff
path: root/src/librustc_interface/passes.rs
AgeCommit message (Collapse)AuthorLines
2020-06-01Split payload of FileName::Real to track both real and virutalized paths.Felix S. Klock II-4/+7
Such splits arise from metadata refs into libstd. This way, we can (in a follow on commit) continue to emit the virtual name into things like the like the StableSourceFileId that ends up in incremetnal build artifacts, while still using the devirtualized file path when we want to access the file. Note that this commit is intended to be a refactoring; the actual fix to the bug in question is in a follow-on commit.
2020-04-10librustc_middle: return LocalDefId instead of DefId in body_owner_def_idmarmeladema-3/+3
2020-04-02use direct import for ErrorReportedMazdak Farrokhzad-2/+1
2020-03-31more clippy fixesMatthias Krüger-1/+1
use is_empty() instead of len comparison (clippy::len_zero) use if let instead of while let loop that never loops (clippy::never_loop) remove redundant returns (clippy::needless_return) remove redundant closures (clippy::redundant_closure) use if let instead of match and wildcard pattern (clippy::single_match) don't repeat field names redundantly (clippy::redundant_field_names)
2020-03-30rustc -> rustc_middle part 2Mazdak Farrokhzad-8/+8
2020-03-25Rollup merge of #70373 - Centril:canon-imports, r=Mark-SimulacrumMazdak Farrokhzad-1/+1
normalize some imports & prefer direct ones r? @Mark-Simulacrum
2020-03-24normalize some imports, prefer direct ones.Mazdak Farrokhzad-1/+1
2020-03-24{rustc::hir::map -> rustc_passes}::hir_id_validatorMazdak Farrokhzad-1/+1
2020-03-23Auto merge of #70296 - Centril:rollup-wvfmb3n, r=Centrilbors-1/+1
Rollup of 9 pull requests Successful merges: - #69251 (#[track_caller] in traits) - #69880 (miri engine: turn error sanity checks into assertions) - #70207 (Use getentropy(2) on macos) - #70227 (Only display definition when suggesting a typo) - #70236 (resolve: Avoid "self-confirming" import resolutions in one more case) - #70248 (parser: simplify & remove unused field) - #70249 (handle ConstKind::Unresolved after monomorphizing) - #70269 (remove redundant closures (clippy::redundant_closure)) - #70270 (Clean up E0449 explanation) Failed merges: r? @ghost
2020-03-22remove redundant closures (clippy::redundant_closure)Matthias Krüger-1/+1
2020-03-21dep_graph.assert_ignored() -> rustc_interfaceMazdak Farrokhzad-1/+5
2020-03-21separate out an arena for HIRMazdak Farrokhzad-1/+1
2020-03-21Rollup merge of #69497 - Zoxc:ast-fragment-error, r=petrochenkovDylan DPC-2/+11
Don't unwind when hitting the macro expansion recursion limit This removes one use of `FatalError.raise()`. r? @petrochenkov
2020-03-19Refactorings to begin getting rid of rustc_codegen_utilsMark Mansi-11/+7
2020-03-19Don't unwind when hitting the macro expansion recursion limitJohn Kåre Alsaker-2/+11
2020-03-18Rollup merge of #69920 - Centril:hir-cleanup, r=ZoxcMazdak Farrokhzad-5/+5
Remove some imports to the rustc crate - When we have `NestedVisitorMap::None`, we use `type Map = dyn intravisit::Map<'v>;` instead of the actual map. This doesn't actually result in dynamic dispatch (in the future we may want to use an associated type default to simplify the code). - Use `rustc_session::` imports instead of `rustc::{session, lint}`. r? @Zoxc
2020-03-18fix pre-expansion linting infraMazdak Farrokhzad-9/+14
2020-03-16use direct imports for `rustc::{lint, session}`.Mazdak Farrokhzad-5/+5
2020-03-14Fix HIR map validationJohn Kåre Alsaker-0/+2
2020-03-14Index HIR after creating TyCtxtJohn Kåre Alsaker-6/+4
2020-03-14Clean up the collectorJohn Kåre Alsaker-1/+2
2020-03-14Collect the new mapsJohn Kåre Alsaker-1/+1
2020-03-14Make downstream crates compile.Camille GILLOT-1/+1
2020-03-05Add a new test to reach const_limit setting, although with wrong WARNINGs yetChristoph Schmidler-1/+1
rename feature to const_eval_limit
2020-02-29Rename `syntax` to `rustc_ast` in source codeVadim Petrochenkov-2/+2
2020-02-19Split query stats into its own fileJohn Kåre Alsaker-2/+2
2020-02-16Other crates.Camille GILLOT-1/+1
2020-02-06Remove the `Forest` typeJohn Kåre Alsaker-6/+6
2020-02-04remove redundant imports (clippy::single_component_path_imports)Matthias Krüger-4/+0
2020-02-02Rollup merge of #68460 - sinkuu:emit_mir_buffered, r=Mark-SimulacrumYuki Okushi-2/+2
Use BufWriter for emitting MIR I noticed that `--emit=mir` takes long time on a large crate. https://github.com/rust-lang/rust/pull/64344 seem to have fixed `-Zdump-mir`, but not `--emit=mir`.
2020-02-01{syntax -> rustc_ast_passes}::node_countMazdak Farrokhzad-2/+1
2020-02-01Use BufWriterShotaro Yamada-2/+2
2020-01-17Rollup merge of #67791 - Zoxc:lift-interning, r=eddybDylan DPC-3/+1
Implement Lift using interners instead of in_arena r? @eddyb cc @cjgillot
2020-01-16Rollup merge of #67780 - cjgillot:passes-ty, r=ZoxcDylan DPC-0/+1
Move some queries from rustc::ty to librustc_ty. cc #65031
2020-01-13Do not forget to provide queries.Camille GILLOT-0/+1
2020-01-12Auto merge of #67901 - matthewjasper:split-mir-build, r=nagisabors-0/+2
Split MIR building into its own crate This moves `rustc_mir::{build, hair, lints}` to `rustc_mir_build`. The new crate only has a `provide` function as it's public API. Based on #67898 cc @Centril @rust-lang/compiler r? @oli-obk
2020-01-12Split `rustc_mir::{build, hair, lints}` into their own crateMatthew Jasper-0/+2
2020-01-11Use Arena for interningJohn Kåre Alsaker-3/+1
2020-01-11move rustc::lint::{context, passes} to rustc_lint.Mazdak Farrokhzad-6/+7
Also do some cleanup of the interface.
2020-01-11Rollup merge of #68043 - Zoxc:missing-timers, r=wesleywiserMazdak Farrokhzad-14/+18
Add some missing timers Based on https://github.com/rust-lang/rust/pull/67988 r? @wesleywiser
2020-01-11{syntax -> rustc_ast_passes}::show_spanMazdak Farrokhzad-1/+1
2020-01-11{syntax -> rustc_ast_passes}::feature_gateMazdak Farrokhzad-1/+1
2020-01-11ast_validation -> new crate rustc_ast_passesMazdak Farrokhzad-2/+2
2020-01-11buffered lint infra -> rustc_sessionMazdak Farrokhzad-3/+2
2020-01-09Tweak timersJohn Kåre Alsaker-25/+17
2020-01-09Label unmarked timeJohn Kåre Alsaker-31/+43
2020-01-09Change -Z time event naming scheme and make them generic activitiesJohn Kåre Alsaker-66/+55
2020-01-08Remove `-Z continue-parse-after-error`Vadim Petrochenkov-3/+0
2020-01-05Remove rustc_hir reexports in rustc::hir.Mazdak Farrokhzad-7/+7
2020-01-05Use self profile infrastructure for -Z time and -Z time-passesJohn Kåre Alsaker-53/+46