about summary refs log tree commit diff
path: root/src/librustc/util
AgeCommit message (Collapse)AuthorLines
2019-01-07Fix and optimize query profilingJohn Kåre Alsaker-7/+9
2019-01-07std: Force `Instant::now()` to be monotonicAlex Crichton-15/+2
This commit is an attempt to force `Instant::now` to be monotonic through any means possible. We tried relying on OS/hardware/clock implementations, but those seem buggy enough that we can't rely on them in practice. This commit implements the same hammer Firefox recently implemented (noted in #56612) which is to just keep whatever the lastest `Instant::now()` return value was in memory, returning that instead of the OS looks like it's moving backwards. Closes #48514 Closes #49281 cc #51648 cc #56560 Closes #56612 Closes #56940
2019-01-05Auto merge of #56837 - arielb1:nonprincipal-trait-objects, r=nikomatsakisbors-13/+35
Add support for trait-objects without a principal The hard-error version of #56481 - should be merged after we do something about the `traitobject` crate. Fixes #33140. Fixes #57057. r? @nikomatsakis
2019-01-04Auto merge of #56723 - oli-obk:lazy_const, r=nikomatsakisbors-5/+4
Don't emit `Unevaluated` from `const_eval` cc @eddyb @RalfJung
2019-01-04alphabetize marker traits when printedAriel Ben-Yehuda-2/+15
This makes sure they are printed in a compiler-version-independent order, avoiding ui test instability.
2019-01-04fix ppauxAriel Ben-Yehuda-1/+8
2019-01-04add support for principal-less trait object typesAriel Ben-Yehuda-10/+12
should be a pure refactoring.
2019-01-03Display `impl Sized` correctlyMatthew Jasper-0/+2
It used to display as just `impl`
2019-01-02pacify the mercilous tidyNiko Matsakis-7/+9
2019-01-02refactor highlighting to take any RegionKind, making it more generalNiko Matsakis-66/+84
2019-01-02add the ability to highlight placeholdersNiko Matsakis-2/+81
2019-01-02generalize region highlights into a structNiko Matsakis-45/+79
2019-01-02make `get_highlight_region_for_regionvid` only affect re-vidNiko Matsakis-4/+9
In NLL, ReVid is all there is, but I might want to repurpose.
2019-01-01Move the `Unevaluated` constant arm upwards in the type structureOliver Scherer-5/+4
2019-01-01Address review commentsVadim Petrochenkov-0/+3
Say "trait" instead of "type" in diagnostics for `dyn Trait`
2018-12-25Remove licensesMark Rousskov-70/+0
2018-12-10[self-profiler] Add column for percent of total timeWesley Wiser-4/+9
2018-12-07Various minor/cosmetic improvements to codeAlexander Regueiro-1/+1
2018-12-07Auto merge of #56502 - Zoxc:hir-func, r=eddybbors-8/+8
Use a function to access the Hir map to be able to turn it into a query later r? @eddyb
2018-12-07Rollup merge of #56555 - Mark-Simulacrum:stderr-profile, r=wesleywiserkennytm-3/+3
Send textual profile data to stderr, not stdout This makes it possible to run with RUSTFLAGS="-Zself-profile" without having to redirect compiler output; otherwise Cargo will error out due to non-empty compiler stdout. r? @wesleywiser
2018-12-06Use a function to access the Hir map to be able to turn it into a query laterJohn Kåre Alsaker-8/+8
2018-12-05Send textual profile data to stderr, not stdoutMark Rousskov-3/+3
This makes it possible to run with RUSTFLAGS="-Zself-profile" without having to redirect compiler output; otherwise Cargo will error out due to non-empty compiler stdout.
2018-12-04cleanup: remove static lifetimes from constsljedrz-1/+1
2018-11-30proc_macro: introduce a "bridge" between clients (proc macros) and servers ↵Eduard-Mihai Burtescu-8/+5
(compiler front-ends).
2018-11-25Make JSON output from -Zprofile-json validMark Rousskov-1/+1
2018-11-25Rollup merge of #56170 - wesleywiser:fix_self_profiler_windows, r=estebankPietro Albini-2/+15
Fix self profiler ICE on Windows Fixes #51648
2018-11-24[Windows] Work around non-monotonic clocks in the self-profilerWesley Wiser-2/+15
On Windows, the high-resolution timestamp api doesn't seem to always be monotonic. This can cause panics when the self-profiler uses the `Instant` api to find elapsed time. Work around this by detecting the case where now is less than the start time and just use 0 elapsed ticks as the measurement. Fixes #51648
2018-11-24Move `BoundTy` debruijn index to the `TyKind` enum variantscalexm-3/+3
2018-11-24Introduce `TyKind::Placeholder` variantscalexm-1/+4
2018-11-24Distinguish between placeholder kindsscalexm-1/+1
2018-11-24Rollup merge of #56091 - wesleywiser:fix_self_profiler_json, r=petrochenkovkennytm-2/+13
Fix json output in the self-profiler Fix missing ',' array element separators and convert NaN's to 0. cc @Mark-Simulacrum
2018-11-21rustc: remove {FxHash,Node,DefId,HirId,ItemLocal}{Map,Set} "constructor" fns.Eduard-Mihai Burtescu-4/+0
2018-11-19Fix json output in the self-profilerWesley Wiser-2/+13
Fix missing ',' array element separators and convert NaN's to 0.
2018-11-14capture_disjoint_fields(rust-lang#53488)Blitzerr-2/+2
Refactoring out the HirId of the UpvarId in another struct.
2018-11-13Bypass ppaux for `Outlives` predicatesscalexm-2/+2
2018-11-03Remove `ReCanonical` in favor of `ReLateBound`scalexm-7/+0
2018-11-03Rename `BoundTy` field `level` -> `index`scalexm-2/+2
2018-11-03Move `BoundTy` to `ty::TyKind`scalexm-3/+14
2018-10-26Impl items have genericsOliver Scherer-11/+3
2018-10-20Rename InferTy::CanonicalTy to BoundTy and add DebruijnIndex to variant typeFabian Drinck-2/+2
2018-10-19Prefer `Default::default` over `FxHash*::default` in struct constructorsOliver Scherer-3/+3
2018-10-19Deprecate the `FxHashMap()` and `FxHashSet()` constructor function hackOliver Scherer-3/+3
2018-10-13Check the invariant for `principal` inside the methodOliver Scherer-10/+10
2018-10-04extend NLL universe code to have >1 placeholder within one universeNiko Matsakis-3/+3
2018-10-04rename skolemized to placeholderNiko Matsakis-3/+3
2018-10-03Introduce `TyKind::UnnormalizedProjection`scalexm-1/+6
2018-09-29don't elide lifetimes in paths in librustc/Zack M. Davis-28/+28
This seemed like a good way to kick the tires on the elided-lifetimes-in-paths lint (#52069)—seems to work! This was also pretty tedious—it sure would be nice if `cargo fix` worked on this codebase (#53896)!
2018-09-23Renamed ppaux highlight region hook.David Wood-6/+7
Changed `highlight_region_with_region` function(s) to `highlight_region_with_bound_region` to be more specific and less ambigious.
2018-09-23Improve borrow errors for closures.David Wood-7/+44
Adds improved messages for closures where returned type does not match the inferred return lifetime of the closure.
2018-09-15Make rustc::middle::region::Scope's fields publicMarshall Bowers-1/+1