summary refs log tree commit diff
path: root/src/librustc/util
AgeCommit message (Collapse)AuthorLines
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
2018-09-14Auto merge of #54032 - oli-obk:layout_scalar_ranges, r=eddybbors-12/+15
Add forever unstable attribute to allow specifying arbitrary scalar ranges r? @eddyb for the first commit and @nikomatsakis for the second one
2018-09-11renamed is_nil to is_unitkenta7777-1/+1
2018-09-11Revert "renamed is_nil to is_unit"kenta7777-1/+1
This reverts commit 6f685ffad42a2d12dd1fad5ccb0471e7fa260826.
2018-09-11Simplify Scope/ScopeData to have less chance of introducing UB or size increasesOliver Schneider-12/+15
2018-09-10renamed is_nil to is_unitkenta7777-1/+1
2018-09-08Auto merge of #53705 - ms2300:tmp, r=oli-obkbors-3/+3
#53576 Renaming TyAnon -> TyOpaque Fixes #53576
2018-09-07make field always private, add `From` implsNiko Matsakis-1/+0
2018-09-05Changing TyAnon -> TyOpaque and relevant functionsms2300-3/+3
2018-08-30Rollup merge of #53786 - frewsxcv:frewsxcv-bad-style, r=ManishearthPietro Albini-2/+2
Replace usages of 'bad_style' with 'nonstandard_style'. `bad_style` is being deprecated in favor of `nonstandard_style`: - https://github.com/rust-lang/rust/issues/41646
2018-08-29Replace usages of 'bad_style' with 'nonstandard_style'.Corey Farwell-2/+2
`bad_style` is being deprecated in favor of `nonstandard_style`: - https://github.com/rust-lang/rust/issues/41646
2018-08-28Use FxHash{Map,Set} instead of the default Hash{Map,Set} everywhere in rustc.Eduard-Mihai Burtescu-3/+3
2018-08-23use String::new() instead of String::from(""), "".to_string(), "".to_owned() ↵Matthias Krüger-2/+2
or "".into()
2018-08-22Remove Ty prefix from Ty{Bool|Char|Int|Uint|Float|Str}varkor-9/+9
2018-08-22Remove Ty prefix from Ty{Foreign|Param}varkor-4/+4
2018-08-22Remove Ty prefix from ↵varkor-24/+24
Ty{Adt|Array|Slice|RawPtr|Ref|FnDef|FnPtr|Dynamic|Closure|Generator|GeneratorWitness|Never|Tuple|Projection|Anon|Infer|Error}
2018-08-22Rename ty::TyVariants to ty::TyKindvarkor-1/+1
2018-08-22Rename ty::Slice to ty::Listvarkor-3/+3
2018-08-19Add Default for GenericParamCountvarkor-4/+1
2018-08-09Move span_bug and bug helper functions to utilMark Rousskov-0/+51
2018-08-09Move path2cstr to rustc_fs_utilMark Rousskov-15/+0
2018-08-09Move rustc::util::fs into separate (new) crateMark Rousskov-111/+0
2018-08-02Generate self-profiler types with macrosWesley Wiser-130/+91
2018-08-02Fix tidyWesley Wiser-12/+25