summary refs log tree commit diff
path: root/src/librustc/util
AgeCommit message (Collapse)AuthorLines
2018-07-29Remove unused `mut`sMatthew Jasper-1/+1
2018-07-29Auto merge of #52767 - ljedrz:avoid_format, r=petrochenkovbors-1/+1
Prefer to_string() to format!() Simple benchmarks suggest in some cases it can be faster by even 37%: ``` test converting_f64_long ... bench: 339 ns/iter (+/- 199) test converting_f64_short ... bench: 136 ns/iter (+/- 34) test converting_i32_long ... bench: 87 ns/iter (+/- 16) test converting_i32_short ... bench: 87 ns/iter (+/- 49) test converting_str ... bench: 54 ns/iter (+/- 15) test formatting_f64_long ... bench: 349 ns/iter (+/- 176) test formatting_f64_short ... bench: 145 ns/iter (+/- 14) test formatting_i32_long ... bench: 98 ns/iter (+/- 14) test formatting_i32_short ... bench: 93 ns/iter (+/- 15) test formatting_str ... bench: 86 ns/iter (+/- 23) ```
2018-07-29Auto merge of #52764 - sinkuu:cleanup, r=nikomatsakisbors-2/+1
Misc cleanups
2018-07-27Use str::repeatShotaro Yamada-2/+1
2018-07-27Improved mechanism for naming regions in non-annotated types.David Wood-5/+35
2018-07-27Prefer to_string() to format!()ljedrz-1/+1
2018-07-18Implement existential typesOliver Schneider-0/+15
2018-07-07Move time_graph.rs to rustc/utilbjorn3-0/+278
2018-06-30Auto merge of #51806 - oli-obk:lowering_cleanups1, r=cramertjbors-2/+1
Lowering cleanups [1/N]
2018-06-28Rollup merge of #51636 - oli-obk:const_diagnostics, r=eddybMark Rousskov-5/+5
Refactor error reporting of constants cc @eddyb This PR should not change any behaviour. It solely simplifies the internal handling of the errors
2018-06-28Merge `ConstVal` and `ConstValue`Oliver Schneider-5/+5
2018-06-28Move everything over from `middle::const_val` to `mir::interpret`Oliver Schneider-1/+1
2018-06-28Use `Ident`s for associated item definitions in HIRVadim Petrochenkov-2/+2
Remove emulation of hygiene with gensyms
2018-06-27Generate `DefId`s for impl Trait in the def_collectorOliver Schneider-2/+1
2018-06-23add `dyn` to display of dynamic (trait) type namesZack M. Davis-2/+6
The `dyn Trait` syntax was stabilized in 199ee327. Resolves #49277.
2018-06-20Refactor generic parameters in rustdoc/cleanvarkor-1/+1
2018-06-20Remove all traces of lifetimes() and types() methodsvarkor-6/+4
2018-06-20Rename DefPathData::LifetimeDef to LifetimeParamvarkor-1/+1
2018-06-18Auto merge of #51248 - fabric-and-ink:newtype_index_debrujin, r=nikomatsakisbors-1/+1
Declare DebruijnIndex via newtype_index macro Part of #49887 Declare `DebruijnIndex` via the `newtype_index` macro.
2018-06-14Declare DebruijnIndex via newtype_index macroFabian Drinck-1/+1
2018-06-07Add existential type definitonsOliver Schneider-1/+2
2018-05-29Auto merge of #50475 - csmoe:debr, r=nikomatsakisbors-1/+1
Refactor DebruijnIndex to be 0-based Fixes #49813
2018-05-28stop invoking `DebruijnIndex::new` directlyNiko Matsakis-1/+1
Co-authored-by: csmoe <35686186+csmoe@users.noreply.github.com>
2018-05-28in which `NodeMap` and friends are macrotized!Zack M. Davis-17/+12
2018-05-28operate on `HirId` in `hir::Pat::each_binding`, and consequences of thatZack M. Davis-1/+2
Changing the `each_binding` utility method to take the `HirId` of a binding pattern rather than its `NodeId` seems like a modest first step in support of the `HirId`ification initiative #50928. (The inspiration for choosing this in particular came from the present author's previous work on diagnostics issued during liveness analysis, which is the most greatly affected module in this change.)
2018-05-21rustc: move TypeParamDef's fields into GenericParamDefKind::Type.Eduard-Mihai Burtescu-2/+4
2018-05-19rustc: introduce {ast,hir}::AnonConst to consolidate so-called "embedded ↵Eduard-Mihai Burtescu-2/+1
constants".
2018-05-17Rename trans to codegen everywhere.Irina Popa-2/+2
2018-05-15Review refactoringvarkor-17/+15
2018-05-15Rename param_counts to own_countsvarkor-9/+9
2018-05-15Lift pure_wrt_drop to GenericParamDefvarkor-2/+2
2018-05-15Refactor generic params loopsvarkor-3/+5
2018-05-15Pull common parameters into GenericParamDefvarkor-22/+19
This leads to a lot of simplifications, as most code doesn't actually need to know about the specific lifetime/type data; rather, it's concerned with properties like name, index and def_id.
2018-05-15Inline get_typevarkor-2/+7
2018-05-15Use GenericParamCount instead of FxHashMapvarkor-11/+11
2018-05-15Eliminate ty::Generics::types()varkor-10/+15
And with one final incanation, the specific kind iterators were banished from ty::Generics, never to be seen again!
2018-05-15Generalise more cases of explicit iteration of specific kindsvarkor-2/+2
2018-05-15Generalise cases of explicit iteration of specific kindsvarkor-14/+16
2018-05-15Rename TypeParameterDef -> TypeParamDef and RegionParameterDef -> RegionParamDefvarkor-4/+4
2018-05-15Prefer iterator to vecvarkor-6/+6
2018-05-15Consolidate ty::Genericsvarkor-7/+7
2018-05-11Introduce ConstValue and use it instead of miri's Value for constant valuesJohn Kåre Alsaker-7/+3
2018-05-08Insert fields from TypeAndMut into TyRef to allow layout optimizationJohn Kåre Alsaker-2/+2
2018-05-08Store the GeneratorInterior in the new GeneratorSubstsJohn Kåre Alsaker-10/+3
2018-05-08Store generator movability outside GeneratorInteriorJohn Kåre Alsaker-2/+2
2018-05-05Misc tweaksJohn Kåre Alsaker-0/+11
2018-05-02change skolemizations to use universe indexSean Griffin-2/+2
This is sort of confusing "side step". All it does is to change the representation of a skolemized region. but the source of that universe index is not the inference context, which is what we eventually want, but rather an internal counter in the region inference context. We'll patch that up later. But doing this now ought to help with confusing diffs later.
2018-04-27Auto merge of #50102 - Zoxc:query-nomacro, r=michaelwoeristerbors-1/+7
Move query code outside macros and store query jobs separately from query results Based on https://github.com/rust-lang/rust/pull/50067 r? @michaelwoerister
2018-04-27Move query functions out from the define_maps! macroJohn Kåre Alsaker-1/+7
2018-04-27Rename InternedString to LocalInternedString and introduce a new thread-safe ↵John Kåre Alsaker-1/+1
InternedString