Slanterns

Results 8 issues of Slanterns

This repo is great for Atom users, but in my opinion, to make ide-rust work more like a real IDE, it should have the ability of build a rust project...

```rust fn main() { let mut i = 0; let p1 = &mut i; *p1 = 1; let x = i; } ``` ```rust fn main() { let mut i...

书中为 `pointer: NonZero`, 然而现有(Nightly 2020/1/9)实现已更改为: ```rust #[rustc_layout_scalar_valid_range_start(1)] pub struct Unique { pointer: *const T, _marker: PhantomData, } ``` 注意上文出现的 rustc_attr, 现在应该是靠这个保证非0从而进行优化。 类似的,现在 rust 提供了 core::ptr::NonNull: ```rust #[rustc_layout_scalar_valid_range_start(1)] #[rustc_nonnull_optimization_guaranteed] pub struct...

匹配时所用的 C、D 是否应当修改为 E::C 和 E::D?(以及A和B)

版本: `Build_201910032106` 在一个大约有 4000 个文件的文件夹内进行试验: ``` 2019年10月14日 00:52:43 - 产生了异常。 异常提示信息:引发类型为“System.OutOfMemoryException”的异常。 异常堆栈信息: 在 System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) 在 System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)...

BUG!!!

### Code ```Rust #![feature(generic_const_exprs)] fn bb() {} fn b() { bb::(); } fn main() {} ``` https://play.rust-lang.org/?version=nightly&mode=debug&edition=2021&gist=6c33a1495d719fbc2d8efe30177c3ca4 ### Current output ```Shell help: try adding a `where` bound using this expression:...

A-diagnostics
T-compiler
A-const-generics
F-generic_const_exprs
const-generics-bad-diagnostics

The master branch seems no longer compatible with LNgen because of the missing `close_XXX_wrt_XXX_rec` in the generated file.

VSCode 1.70.0 has moved `workbench.html` to a new folder, and we'll see an error when reloading vibrancy. ![Snipaste_2022-08-05_03-13-49](https://user-images.githubusercontent.com/10987206/182935856-61033559-df3d-4168-92f4-5b657aace1a4.jpg) This commit replaces the path to the updated one. Tested and works...