Rust is a programming language that uses a concept of ownership to guarantee memory safety without the use of a garbage collector. However, some error messages related to ownership can be difficult to understand and fix, particularly those that depend on value lifetimes. To help developers fix lifetime-related errors, we developed REVIS, a VSCode extension that visualizes lifetime-related Rust compiler errors. We describe the design and implementation of the VSCode extension, along with a preliminary evaluation of its efficacy for student learners of Rust. Although the number of participants was too low to enable evaluation of the efficacy of REVIS, we gathered data regarding the prevalence and time to fix the compiler errors that the participants encountered.
翻译:Rust是一种利用所有权概念来保证内存安全且无需垃圾回收器的编程语言。然而,部分与所有权相关的错误信息(尤其是依赖值生命周期的错误)难以理解与修复。为帮助开发者修复生命周期相关的错误,我们开发了REVIS——一款可视化Rust编译器生命周期错误的VSCode扩展。本文描述了该VSCode扩展的设计与实现,并对其在Rust学习学生中的有效性进行了初步评估。虽然参与者数量过少无法有效评估REVIS的实际功效,但我们收集了关于参与者遇到的编译器错误的普遍性及修复时长数据。