Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Remove some unnecessary file names | Florian Diebold | 2020-07-12 | 1 | -3/+0 |
| | |||||
* | Add test for #4281 | Florian Diebold | 2020-07-12 | 1 | -0/+23 |
| | | | | Fixes #4281. | ||||
* | Search more efficiently for int/float impls | Florian Diebold | 2020-07-12 | 3 | -18/+118 |
| | |||||
* | Adapt trait object coercion tests to the status quo | Florian Diebold | 2020-07-12 | 1 | -4/+51 |
| | |||||
* | Use Chalk built-in representation for array types | Florian Diebold | 2020-07-12 | 1 | -7/+36 |
| | |||||
* | Remove built-in Unsize impls | Florian Diebold | 2020-07-12 | 4 | -235/+6 |
| | | | | They exist in Chalk now. | ||||
* | Upgrade Chalk | Florian Diebold | 2020-07-12 | 1 | -2/+3 |
| | |||||
* | Enable Chalk tracing in hir_ty tests | Florian Diebold | 2020-07-12 | 5 | -66/+56 |
| | |||||
* | Upgrade Chalk | Florian Diebold | 2020-07-12 | 5 | -13/+63 |
| | |||||
* | infer: Add type inference support for Union types | Otavio Salvador | 2020-07-11 | 2 | -2/+32 |
| | | | | | | | | This adds the type inference to Union types and add a small test case for it, ensuring it keeps working in future. Fixes: #5277 Signed-off-by: Otavio Salvador <[email protected]> | ||||
* | arg count mismatch: handle tuple ctors | Jonas Schievink | 2020-07-09 | 1 | -17/+34 |
| | |||||
* | Address review comments | Jonas Schievink | 2020-07-09 | 2 | -40/+28 |
| | |||||
* | Add tests | Jonas Schievink | 2020-07-09 | 1 | -0/+129 |
| | |||||
* | Fix diagnostic for method calls | Jonas Schievink | 2020-07-09 | 1 | -3/+12 |
| | |||||
* | Correctly pluralize message | Jonas Schievink | 2020-07-09 | 1 | -1/+2 |
| | |||||
* | Don't emit diagnostic if there are type errors | Jonas Schievink | 2020-07-09 | 1 | -0/+7 |
| | |||||
* | Add argument count mismatch diagnostic | Jonas Schievink | 2020-07-09 | 2 | -5/+92 |
| | |||||
*-. | Merge #5235 #5236 #5241 | bors[bot] | 2020-07-07 | 4 | -9/+6 |
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 5235: Don't ping people in PRs r=matklad a=lnicola 5236: Disable ES module interop r=matklad a=lnicola 5241: Clippy perf warnings r=matklad a=kjeremy Removes redundant clones Co-authored-by: Laurențiu Nicola <[email protected]> Co-authored-by: Aleksey Kladov <[email protected]> Co-authored-by: kjeremy <[email protected]> | ||||
| | * | Clippy perf warnings | kjeremy | 2020-07-06 | 4 | -9/+6 |
| |/ | | | | | | | Removes redundant clones | ||||
* / | Switch to fully dynamically dispatched salsa | Aleksey Kladov | 2020-07-07 | 5 | -22/+18 |
|/ | | | | This improves compile times quite a bit | ||||
* | Fix inference of indexing argument (partly) | Florian Diebold | 2020-07-03 | 2 | -8/+48 |
| | | | | | | | | We need to add the `T: Index<Arg>` obligation to be resolved later as well, otherwise we can't make inferences about `Arg` later based on the `Index` impls. This still doesn't fix indexing with integer variables though; there's a further problem with Chalk floundering because of the variable, I think. | ||||
* | Merge #5149 | bors[bot] | 2020-07-01 | 7 | -66/+135 |
|\ | | | | | | | | | | | | | | | | | | | 5149: Implement Chalk variable kinds r=flodiebold a=flodiebold This means we need to keep track of the kinds (general/int/float) of variables in `Canonical`, which requires some more ceremony. (It also exposes some places where we're not really dealing with canonicalization correctly -- another thing to be cleaned up when we switch to using Chalk's types directly.) Should fix the last remaining issue of #2534. Co-authored-by: Florian Diebold <[email protected]> | ||||
| * | Implement Chalk variable kinds | Florian Diebold | 2020-07-01 | 7 | -66/+135 |
| | | | | | | | | | | | | | | | | | | This means we need to keep track of the kinds (general/int/float) of variables in `Canonical`, which requires some more ceremony. (It also exposes some places where we're not really dealing with canonicalization correctly -- another thing to be cleaned up when we switch to using Chalk's types directly.) Should fix the last remaining issue of #2534. | ||||
* | | ItemTree: Lower fields despite invalid type | Jonas Schievink | 2020-07-01 | 1 | -0/+24 |
| | | |||||
* | | Split `CrateImplDefs` in inherent and trait impls | Jonas Schievink | 2020-07-01 | 3 | -105/+110 |
| | | | | | | | | | | | | This makes the intention of inherent vs. trait impls somewhat more clear and also fixes (?) an issue where trait impls with an unresolved trait were added as inherent impls instead (hence the test changes). | ||||
* | | Don't recursively call `impls_from_deps` | Jonas Schievink | 2020-07-01 | 1 | -11/+2 |
| | | | | | | | | | | It creates a big map and duplicates lots of impls that are then left lying around | ||||
* | | Use dynamic dispatch in AstDiagnostic | Laurențiu Nicola | 2020-07-01 | 1 | -5/+5 |
|/ | |||||
* | Better factoring | Aleksey Kladov | 2020-06-30 | 2 | -9/+18 |
| | |||||
* | Update the rest of the tests | Aleksey Kladov | 2020-06-29 | 7 | -438/+297 |
| | |||||
* | (T): make typification tests more data driven | Aleksey Kladov | 2020-06-29 | 4 | -133/+103 |
| | |||||
* | Merge #5124 | bors[bot] | 2020-06-29 | 4 | -18/+92 |
|\ | | | | | | | | | | | | | | | 5124: (Partially) fix handling of type params depending on type params r=matklad a=flodiebold If the first type parameter gets inferred, that's still not handled correctly; it'll require some more refactoring: E.g. if we have `Thing<T, F=fn() -> T>` and then instantiate `Thing<_>`, that gets turned into `Thing<_, fn() -> _>` before the `_` is instantiated into a type variable -- so afterwards, we have two type variables without any connection to each other. Co-authored-by: Florian Diebold <[email protected]> | ||||
| * | (Partially) fix handling of type params depending on type params | Florian Diebold | 2020-06-29 | 4 | -18/+92 |
| | | | | | | | | | | | | | | | | If the first type parameter gets inferred, that's still not handled correctly; it'll require some more refactoring: E.g. if we have `Thing<T, F=fn() -> T>` and then instantiate `Thing<_>`, that gets turned into `Thing<_, fn() -> _>` before the `_` is instantiated into a type variable -- so afterwards, we have two type variables without any connection to each other. | ||||
* | | Merge #5105 | bors[bot] | 2020-06-28 | 2 | -13/+3 |
|\ \ | | | | | | | | | | | | | | | | | | | | | | 5105: Simlify with matches!() r=matklad a=Veetaha Co-authored-by: Veetaha <[email protected]> | ||||
| * | | Simlify with matches!() | Veetaha | 2020-06-28 | 2 | -13/+3 |
| |/ | |||||
* / | Update Chalk to released version | Florian Diebold | 2020-06-28 | 1 | -2/+2 |
|/ | |||||
* | Simplify unsafe expr collection match | Paul Daniel Faria | 2020-06-27 | 1 | -4/+3 |
| | |||||
* | Improve perf of finding unsafe exprs | Paul Daniel Faria | 2020-06-27 | 1 | -49/+39 |
| | |||||
* | Remove unneeded code, filename from tests, fix rebasing issues | Paul Daniel Faria | 2020-06-27 | 2 | -17/+5 |
| | |||||
* | Remove track_parent and parent_map, replace with simple walk in missign ↵ | Paul Daniel Faria | 2020-06-27 | 1 | -19/+23 |
| | | | | unsafe validator | ||||
* | unsafe: Clean up, improve tracking, add debug_assert | Paul Daniel Faria | 2020-06-27 | 2 | -72/+74 |
| | | | | | | Move unsafe_expressions to unsafe_validation.rs, replace vec tracking of child exprs with inline macro, add debug assert to ensure tracked children match walked children exactly | ||||
* | Add HighlightTag::Operator, use it for unsafe deref. Move unsafe validation ↵ | Paul Daniel Faria | 2020-06-27 | 4 | -48/+69 |
| | | | | to its own file | ||||
* | Track expr parents during lowering, use parent map when checking if unsafe ↵ | Paul Daniel Faria | 2020-06-27 | 2 | -12/+12 |
| | | | | exprs are within unsafe blocks | ||||
* | Address review comments, have MissingUnsafe diagnostic point to each unsafe ↵ | Paul Daniel Faria | 2020-06-27 | 3 | -25/+19 |
| | | | | use, update tests | ||||
* | Rename Expr::UnsafeBlock to Expr::Unsafe | Paul Daniel Faria | 2020-06-27 | 2 | -2/+2 |
| | |||||
* | Track unsafe blocks, don't trigger missing unsafe diagnostic when unsafe ↵ | Paul Daniel Faria | 2020-06-27 | 4 | -16/+72 |
| | | | | exprs within unsafe block | ||||
* | Add missing self param to test | Paul Daniel Faria | 2020-06-27 | 1 | -1/+1 |
| | |||||
* | Remove UnnecessaryUnsafe diagnostic, Fix Expr::Call unsafe analysis | Paul Daniel Faria | 2020-06-27 | 3 | -69/+21 |
| | |||||
* | Add tests covering unsafe blocks, more attempts to get call expr tests passing | Paul Daniel Faria | 2020-06-27 | 2 | -1/+86 |
| | |||||
* | Move diagnostics back into expr, add tests for diagnostics, fix logic to ↵ | Paul Daniel Faria | 2020-06-27 | 4 | -20/+154 |
| | | | | account for derefs of raw ptrs | ||||
* | Add unsafe diagnostics and unsafe highlighting | Paul Daniel Faria | 2020-06-27 | 2 | -1/+81 |
| |