Ralf Jung
78deacc2ec
make redundant StorageLive UB
2020-12-11 13:18:44 +01:00
oli
84fe7cf24e
Also generate StorageDead
in constants
2020-12-09 10:59:10 +00:00
Bastian Kauschke
2bf93bd852
compiler: fold by value
2020-11-16 22:34:57 +01:00
Tomasz Miąsko
8a8ee1a3ed
inliner: Use substs_for_mir_body
...
Changes from 68965 extended the kind of instances that are being
inlined. For some of those, the `instance_mir` returns a MIR body that
is already expressed in terms of the types found in substitution array,
and doesn't need further substitution.
Use `substs_for_mir_body` to take that into account.
2020-11-06 00:00:00 +00:00
Mara Bos
5ffccc4dfa
Rollup merge of #78742 - vn-ki:fix-issue-78655, r=oli-obk
...
make intern_const_alloc_recursive return error
fix #78655
r? ``@oli-obk``
2020-11-05 10:29:59 +01:00
Vishnunarayan K I
bd7229daf0
make intern_const_alloc_recursive return error fix #78655
2020-11-04 23:22:14 +05:30
oli
abacaf2aef
u128
truncation and sign extension are not just interpreter related
2020-11-04 13:41:58 +00:00
Bastian Kauschke
8160bfa39c
query_name_of_opt_const_arg -> query_name_opt_const_arg
2020-10-05 08:49:21 +02:00
Bastian Kauschke
536674fb69
cleanup WithOptConstParam queries
2020-10-04 23:22:08 +02:00
Oliver Scherer
8f9472cc9e
Only mention that a stack frame is being popped when starting to do so
2020-10-01 08:32:24 +02:00
Oliver Scherer
43c181bac4
Use tracing
spans to trace the entire MIR interp stack
2020-09-28 20:07:57 +02:00
Bastian Kauschke
39245400c5
fix InterpCx resolve
2020-09-21 12:09:08 +02:00
Oliver Scherer
888afd50d9
Unify the names of const eval queries and their return types
2020-09-19 10:36:36 +02:00
Oliver Scherer
69a6be73e6
Rename const eval queries to reflect the validation changes
2020-09-19 10:36:36 +02:00
Oliver Scherer
dd9702a059
Do not call the const_eval
query in mir interpretation except for caching of nulary intrinsics
2020-09-19 10:36:36 +02:00
Oliver Scherer
2d7ac728e4
Stop using the const_eval
query for initializers of statics
...
As a side effect, we now represent most promoteds as `ConstValue::Scalar` again. This is useful because all implict promoteds are just references anyway and most explicit promoteds are numeric arguments to `asm!` or SIMD instructions.
2020-09-19 10:36:36 +02:00
LeSeulArtichaut
3e14b684dd
Change ty.kind to a method
2020-09-04 17:47:51 +02:00
mark
9e5f7d5631
mv compiler to compiler/
2020-08-30 18:45:07 +03:00