summary refs log tree commit diff
path: root/src/librustc_mir/monomorphize
AgeCommit message (Collapse)AuthorLines
2018-07-29Remove unused `mut`sMatthew Jasper-1/+1
2018-07-27SimplifyShotaro Yamada-6/+4
2018-07-26Auto merge of #52735 - Mark-Simulacrum:rollup, r=Mark-Simulacrumbors-3/+1
Rollup of 16 pull requests Successful merges: - #52558 (Add tests for ICEs which no longer repro) - #52610 (Clarify what a task is) - #52617 (Don't match on region kinds when reporting NLL errors) - #52635 (Fix #[linkage] propagation though generic functions) - #52647 (Suggest to take and ignore args while closure args count mismatching) - #52649 (Point spans to inner elements of format strings) - #52654 (Format linker args in a way that works for gcc and ld) - #52667 (update the stdsimd submodule) - #52674 (Impl Executor for Box<E: Executor>) - #52690 (ARM: expose `rclass` and `dsp` target features) - #52692 (Improve readability in a few sorts) - #52695 (Hide some lints which are not quite right the way they are reported to the user) - #52718 (State default capacity for BufReader/BufWriter) - #52721 (std::ops::Try impl for std::task::Poll) - #52723 (rustc: Register crates under their real names) - #52734 (sparc ABI issue - structure returning from function is returned in 64bit registers (with tests)) Failed merges: - #52678 ([NLL] Use better spans in some errors) r? @ghost
2018-07-25Improve readability in a few sortsljedrz-3/+1
2018-07-25parameterize `BitVector` and `BitMatrix` by their index typesNiko Matsakis-1/+1
2018-07-16rustc: Use link_section, not wasm_custom_sectionAlex Crichton-30/+1
This commit transitions definitions of custom sections on the wasm target from the unstable `#[wasm_custom_section]` attribute to the already-stable-for-other-targets `#[link_section]` attribute. Mostly the same restrictions apply as before, except that this now applies only to statics. Closes #51088
2018-07-16ItemKindcsmoe-19/+19
2018-07-16Revert "Clean up CodegenUnit name generation."Michael Woerister-22/+46
This reverts commit 2c5cd9ce53d2d25041db0cb02b40ba460ffa8908.
2018-07-11Clean up CodegenUnit name generation.Michael Woerister-46/+22
2018-07-10Upgrade to LLVM's master branch (LLVM 7)Alex Crichton-4/+31
This commit upgrades the main LLVM submodule to LLVM's current master branch. The LLD submodule is updated in tandem as well as compiler-builtins. Along the way support was also added for LLVM 7's new features. This primarily includes the support for custom section concatenation natively in LLD so we now add wasm custom sections in LLVM IR rather than having custom support in rustc itself for doing so. Some other miscellaneous changes are: * We now pass `--gc-sections` to `wasm-ld` * The optimization level is now passed to `wasm-ld` * A `--stack-first` option is passed to LLD to have stack overflow always cause a trap instead of corrupting static data * The wasm target for LLVM switched to `wasm32-unknown-unknown`. * The syntax for aligned pointers has changed in LLVM IR and tests are updated to reflect this. * The `thumbv6m-none-eabi` target is disabled due to an [LLVM bug][llbug] Nowadays we've been mostly only upgrading whenever there's a major release of LLVM but enough changes have been happening on the wasm target that there's been growing motivation for quite some time now to upgrade out version of LLD. To upgrade LLD, however, we need to upgrade LLVM to avoid needing to build yet another version of LLVM on the builders. The revision of LLVM in use here is arbitrarily chosen. We will likely need to continue to update it over time if and when we discover bugs. Once LLVM 7 is fully released we can switch to that channel as well. [llbug]: https://bugs.llvm.org/show_bug.cgi?id=37382
2018-07-03Deduplicate error reports for staticsOliver Schneider-9/+2
2018-06-28Rollup merge of #51636 - oli-obk:const_diagnostics, r=eddybMark Rousskov-16/+12
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-28Auto merge of #51687 - japaric:gh51671, r=alexcrichtonbors-0/+1
translate / export weak lang items see #51671 for details fixes #51671 fixes #51342 r? @michaelwoerister or @alexcrichton
2018-06-28Merge `ConstVal` and `ConstValue`Oliver Schneider-8/+7
2018-06-28Move everything over from `middle::const_val` to `mir::interpret`Oliver Schneider-1/+1
2018-06-28Move the Lrc outside the error type and name the fieldsOliver Schneider-1/+1
2018-06-28Eliminate old CTFE's `ErrKind`Oliver Schneider-8/+5
2018-06-28Use `Ident`s for associated item definitions in HIRVadim Petrochenkov-3/+3
Remove emulation of hygiene with gensyms
2018-06-21translate / export weak lang itemsJorge Aparicio-0/+1
see #51671 for details fixes #51671 fixes #51342
2018-06-20Refactor generic parameters in rustdoc/cleanvarkor-6/+1
2018-06-20Remove specific parameter iterators from hir::Genericsvarkor-2/+5
2018-06-20Make method and variable names more consistentvarkor-1/+0
2018-06-20Rename "parameter" to "arg"varkor-0/+1
2018-06-19Use MTRef and MTLock to avoid a RefCellJohn Kåre Alsaker-18/+24
2018-06-19Parallelize trans item collectionJohn Kåre Alsaker-18/+24
2018-06-13Various cleanupsOliver Schneider-1/+1
2018-06-07Add existential type definitonsOliver Schneider-0/+1
2018-06-05Properly report transitive errorsOliver Schneider-1/+1
2018-06-05Referring to erroneous constants in promoteds must abort the buildOliver Schneider-2/+14
2018-06-05Refactor the const eval diagnostic APIOliver Schneider-2/+8
2018-05-26Add `Ident::as_str` helperVadim Petrochenkov-1/+1
2018-05-24Rename ByVal(Pair) to Scalar(Pair)Oliver Schneider-4/+4
2018-05-24Rename PrimVal to ScalarOliver Schneider-5/+5
2018-05-22Introduce AllocType which indicates what AllocIds point toJohn Kåre Alsaker-17/+21
2018-05-21rustc: move TypeParamDef's fields into GenericParamDefKind::Type.Eduard-Mihai Burtescu-1/+1
2018-05-21rustc: don't call Kind::from directly, use .into() instead.Eduard-Mihai Burtescu-2/+2
2018-05-21rustc: make mk_substs_trait take &[Kind] instead of &[Ty].Eduard-Mihai Burtescu-6/+2
2018-05-19Go through an allocation when accessing fields of constantsOliver Schneider-1/+1
2018-05-17Rename trans to codegen everywhere.Irina Popa-86/+86
2018-05-15Add mk_param_from_defvarkor-1/+1
2018-05-15Use Kind instead of UnpackedKind in Substs methodsvarkor-5/+3
2018-05-15Refactor Substs methods on generic parametersvarkor-6/+12
2018-05-15Rename param_counts to own_countsvarkor-1/+1
2018-05-15Use GenericParamCount instead of FxHashMapvarkor-1/+1
2018-05-15Generalise more cases of explicit iteration of specific kindsvarkor-1/+1
2018-05-15Rename `has_type_parameters` to `requires_monomorphization`varkor-1/+1
2018-05-15Prefer iterator to vecvarkor-1/+1
2018-05-15Reduce parent_params to parent_countvarkor-1/+1
2018-05-15Consolidate ty::Genericsvarkor-2/+2
2018-05-11Introduce ConstValue and use it instead of miri's Value for constant valuesJohn Kåre Alsaker-16/+10