summary refs log tree commit diff
path: root/src/librustc_mir/transform/const_prop.rs
AgeCommit message (Expand)AuthorLines
2018-08-25Remove an overly pedantic and wrong assertionOliver Schneider-5/+0
2018-07-29Sanity-check all constantsOliver Schneider-32/+36
2018-07-25Hide some lints which are not quite right the way they are reported to the userOliver Schneider-11/+93
2018-07-23Promoteds are statics and statics have a place, not just a valueOliver Schneider-42/+37
2018-07-18Const-propagate castsOliver Schneider-14/+34
2018-06-28Turn the use of erroneous constants into errors againOliver Schneider-4/+17
2018-06-28Don't const propagate the body of constantsOliver Schneider-1/+4
2018-06-28Merge `ConstVal` and `ConstValue`Oliver Schneider-43/+6
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/+2
2018-06-28Eliminate old CTFE's `ErrKind`Oliver Schneider-2/+2
2018-06-05Add source information the const propagation of placesOliver Schneider-4/+5
2018-06-05Refactor the const eval diagnostic APIOliver Schneider-37/+64
2018-06-05Propagate uses of constants correctly so that array index checks workFabian Zaiser-10/+0
2018-06-04Simplify value field accessOliver Schneider-3/+3
2018-06-02Correctly access ScalarPair fields during const evalOliver Schneider-19/+5
2018-05-30rustc: rename mir::SourceScopeInfo to mir::SourceScopeLocalData.Eduard-Mihai Burtescu-2/+2
2018-05-30rustc: rename mir::VisibilityScope to mir::SourceScope.Eduard-Mihai Burtescu-1/+1
2018-05-24Get rid of `scalar_size`Oliver Schneider-2/+7
2018-05-24primval -> scalar renameOliver Schneider-3/+3
2018-05-24change `Value::Bytes` to `Value::Bits`Oliver Schneider-6/+9
2018-05-24Rename ByVal(Pair) to Scalar(Pair)Oliver Schneider-9/+9
2018-05-24Rename PrimVal to ScalarOliver Schneider-6/+6
2018-05-15Rename `has_type_parameters` to `requires_monomorphization`varkor-3/+3
2018-05-15Fix generics type parameter handling in mirivarkor-4/+3
2018-05-11Introduce ConstValue and use it instead of miri's Value for constant valuesJohn Kåre Alsaker-47/+81
2018-04-30Unify MIR assert messages and const eval errorsOliver Schneider-5/+7
2018-04-30Merge ConstMathError into EvalErrorKindOliver Schneider-1/+1
2018-04-26rustc_target: move LayoutOf's type parameter to an associated type.Irina Popa-1/+2
2018-04-15Only warn on erroneous promoted constantsOliver Schneider-2/+2
2018-03-08simplify constant value pair field accessOliver Schneider-6/+1
2018-03-08Unify the const folding errorsOliver Schneider-31/+111
2018-03-08Generator assertions are unconditionally triggeredOliver Schneider-4/+6
2018-03-08Don't use the undefined bytes of PrimVal::BytesOliver Schneider-3/+2
2018-03-08Unregress error spans in constant errorsOliver Schneider-1/+1
2018-03-08Tidy fixOliver Schneider-4/+2
2018-03-08Update testsOliver Schneider-1/+1
2018-03-08Report all errors other than those about insufficient type informationOliver Schneider-2/+4
2018-03-08Compute the ParamEnv only once and use it to call tcx.const_evalOliver Schneider-9/+25
2018-03-08Can only const prop temporariesOliver Schneider-1/+6
2018-03-08Simplify const propagator by removing unused code pathsOliver Schneider-71/+52
2018-03-08Rename OptimizationFinder and don't propagate any borrowsOliver Schneider-38/+12
2018-03-08Simplify const prop checks through PlaceContextOliver Schneider-53/+51
2018-03-08Figure out const propgatable locals in a single passOliver Schneider-28/+30
2018-03-08Update testsOliver Schneider-3/+4
2018-03-08Only report bitshift lints on bitshift opsOliver Schneider-14/+16
2018-03-08Use IndexVec instead of FxHashMapOliver Schneider-24/+19
2018-03-08Merge const linting pass into const propOliver Schneider-1/+23
2018-03-08Remove single field struct by just using the fieldOliver Schneider-9/+4
2018-03-08Remove the fragile const propagator and just do lintingOliver Schneider-123/+3