| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2021-05-06 | use CheckInAllocMsg::PointerArithmeticTest for ptr_offset error | Ralf Jung | -0/+3 | |
| 2021-05-04 | Remove `rustc_middle::mir::interpret::CheckInAllocMsg::NullPointerTest` | hyd-dev | -5/+0 | |
| 2021-05-02 | Change 'NULL' to 'null' | Brent Kerby | -2/+2 | |
| 2021-04-19 | fix few typos | klensy | -1/+1 | |
| 2021-04-08 | Fix outdated crate names in compiler docs | pierwill | -1/+1 | |
| Changes `librustc_X` to `rustc_X`, only in documentation comments. Plain code comments are left unchanged. Also fix incorrect file paths. | ||||
| 2021-03-27 | Remove (lots of) dead code | Joshua Nelson | -10/+0 | |
| Found with https://github.com/est31/warnalyzer. Dubious changes: - Is anyone else using rustc_apfloat? I feel weird completely deleting x87 support. - Maybe some of the dead code in rustc_data_structures, in case someone wants to use it in the future? - Don't change rustc_serialize I plan to scrap most of the json module in the near future (see https://github.com/rust-lang/compiler-team/issues/418) and fixing the tests needed more work than I expected. TODO: check if any of the comments on the deleted code should be kept. | ||||
| 2021-03-20 | update `const_eval_resolve` | lcnr | -6/+4 | |
| 2021-03-18 | Remove unwrap_none/expect_none from compiler/. | Mara Bos | -1/+1 | |
| 2021-03-15 | Do not expose fallible `to_int` operation on `Scalar`. | Oli Scherer | -17/+15 | |
| Any use of it has been shown to be a bug in the past. | ||||
| 2021-03-15 | s/ConstantSource/ConstantKind/ | Oli Scherer | -8/+0 | |
| 2021-03-12 | Replace a custom lift method with a Lift impl | Oli Scherer | -3/+6 | |
| 2021-03-12 | Prepare mir::Constant for ty::Const only supporting valtrees | Oli Scherer | -0/+18 | |
| 2021-03-12 | Add convenience conversion methods for ScalarInt | Oli Scherer | -8/+23 | |
| 2021-03-12 | Add fallible Scalar to ScalarInt conversion method | Oli Scherer | -13/+15 | |
| 2021-03-12 | Implement valtree | Oli Scherer | -1/+1 | |
| valtree is a version of constants that is inherently safe to be used within types. This is in contrast to ty::Const which can have different representations of the same value. These representation differences can show up in hashing or equality comparisons, breaking type equality of otherwise equal types. valtrees do not have this problem. | ||||
| 2021-03-06 | Change x64 size checks to not apply to x32. | Harald van Dijk | -5/+5 | |
| Rust contains various size checks conditional on target_arch = "x86_64", but these checks were never intended to apply to x86_64-unknown-linux-gnux32. Add target_pointer_width = "64" to the conditions. | ||||
| 2021-02-25 | Auto merge of #82338 - RalfJung:interp-error-allocs, r=oli-obk | bors | -15/+10 | |
| all InterpError allocate now, so adjust alloc-error-check Cc https://github.com/rust-lang/rust/pull/82116#discussion_r578310770 r? `@oli-obk` | ||||
| 2021-02-21 | remove redundant return value Ok(()) of clear_relocations() | Matthias Krüger | -10/+3 | |
| 2021-02-20 | all InterpError allocate now, so adjust alloc-error-check | Ralf Jung | -15/+10 | |
| 2021-02-17 | Reduce size of InterpErrorInfo to 8 bytes | Tomasz Miąsko | -6/+22 | |
| 2021-02-14 | param_env debugs are instrumental to rustc's success | Ellen | -1/+1 | |
| 2021-02-13 | debug!("paramenv={}paramenv={}paramenv={}paramenv={}") | Ellen | -0/+1 | |
| 2021-02-02 | Fix out of date `Scalar` documentation | Jake Hughes | -1/+1 | |
| Scalars can represent integers up to u128, but the docs state otherwise. | ||||
| 2021-01-30 | Rollup merge of #80959 - jhpratt:unsigned_abs-stabilization, r=m-ou-se | Yuki Okushi | -11/+2 | |
| Stabilize `unsigned_abs` Resolves #74913. This PR stabilizes the `i*::unsigned_abs()` method, which returns the absolute value of an integer _as its unsigned equivalent_. This has the advantage that it does not overflow on `i*::MIN`. I have gone ahead and used this in a couple locations throughout the repository. | ||||
| 2021-01-26 | Auto merge of #80692 - Aaron1011:feature/query-result-debug, r=estebank | bors | -1/+1 | |
| Enforce that query results implement Debug Currently, we require that query keys implement `Debug`, but we do not do the same for query values. This can make incremental compilation bugs difficult to debug - there isn't a good place to print out the result loaded from disk. This PR adds `Debug` bounds to several query-related functions, allowing us to debug-print the query value when an 'unstable fingerprint' error occurs. This required adding `#[derive(Debug)]` to a fairly large number of types - hopefully, this doesn't have much of an impact on compiler bootstrapping times. | ||||
| 2021-01-21 | mir: Improve size_of handling when arg is unsized | Ömer Sinan Ağacan | -0/+3 | |
| 2021-01-16 | Enforce that query results implement Debug | Aaron Hill | -1/+1 | |
| 2021-01-13 | Use unsigned_abs throughout repository | Jacob Pratt | -11/+2 | |
| 2020-12-09 | Extra assertions in eval_body_using_ecx to disallow queries for | Tunahan Karlibas | -1/+0 | |
| functions that does allocations | ||||
| 2020-11-16 | words | lcnr | -1/+1 | |
| 2020-11-16 | compiler: fold by value | Bastian Kauschke | -1/+1 | |
| 2020-11-05 | Rollup merge of #78742 - vn-ki:fix-issue-78655, r=oli-obk | Mara Bos | -3/+9 | |
| make intern_const_alloc_recursive return error fix #78655 r? ``@oli-obk`` | ||||
| 2020-11-04 | make intern_const_alloc_recursive return error fix #78655 | Vishnunarayan K I | -3/+9 | |
| 2020-11-04 | `u128` truncation and sign extension are not just interpreter related | oli | -37/+4 | |
| 2020-11-04 | Move ZST constant to the top of the impl block | oli | -2/+2 | |
| 2020-11-04 | Do not raise interp errors from the scalar int module | oli | -2/+8 | |
| 2020-11-04 | Add helper for getting an `int` out of a `Scalar` | oli | -0/+8 | |
| 2020-11-04 | Replace `Scalar::zst` with a `Scalar::ZST` constant | oli | -4/+1 | |
| 2020-11-04 | No need for a `zst` constructor method when we can have a constant | oli | -1/+1 | |
| 2020-11-04 | s/Scalar::Raw/Scalar::Int | oli | -22/+22 | |
| 2020-11-04 | Split the "raw integer bytes" part out of `Scalar` | Oliver Scherer | -87/+22 | |
| 2020-10-14 | Remove unused code from rustc_middle | est31 | -9/+0 | |
| 2020-10-13 | Replace absolute paths with relative ones | est31 | -3/+3 | |
| Modern compilers allow reaching external crates like std or core via relative paths in modules outside of lib.rs and main.rs. | ||||
| 2020-10-06 | Rollup merge of #76995 - LingMan:middle_matches, r=varkor | Yuki Okushi | -12/+6 | |
| Reduce boilerplate with the matches! macro Replaces simple bool `match`es of the form match $expr { $pattern => true _ => false } and their inverse with invocations of the matches! macro. Limited to rustc_middle for now to get my feet wet. | ||||
| 2020-09-24 | Auto merge of #77006 - oli-obk:🐌_const_queries, r=Mark-Simulacrum | bors | -1/+1 | |
| Cache `eval_to_allocation_raw` on disk https://github.com/rust-lang/rust/pull/74949#issuecomment-695833161 regressed the performance on these queries, this PR gets the perf back. | ||||
| 2020-09-23 | Rollup merge of #76939 - lcnr:const-evaluatable-cont, r=oli-obk | Dylan DPC | -0/+6 | |
| emit errors during AbstractConst building There changes are currently still untested, so I don't expect this to pass CI :laughing: It seems to me like this is the direction we want to go in, though we didn't have too much of a discussion about this. r? @oli-obk | ||||
| 2020-09-21 | review | Bastian Kauschke | -0/+6 | |
| 2020-09-21 | Cache `eval_to_allocation_raw` on disk | Oliver Scherer | -1/+1 | |
| 2020-09-21 | Reduce boilerplate with the matches! macro | LingMan | -12/+6 | |
| Replaces simple bool `match`es of the form match $expr { $pattern => true _ => false } and their inverse with invocations of the matches! macro. | ||||
| 2020-09-20 | Rollup merge of #76891 - lcnr:less-ref, r=ecstatic-morse | Ralf Jung | -9/+9 | |
| don't take `TyCtxt` by reference small cleanup | ||||
