commit | 09ca866738711331609811da2d8399531bda66c5 | [log] [tgz] |
---|---|---|
author | Nicholas Nethercote <n.nethercote@gmail.com> | Wed Feb 21 14:23:46 2024 +1100 |
committer | Nicholas Nethercote <n.nethercote@gmail.com> | Wed Feb 21 17:02:30 2024 +1100 |
tree | 5daced701d7f71e06bac2bc1bb37a70bb1268f76 | |
parent | bb594538fc6e84213a6b8d5e165442570aa48923 [diff] |
Remove an `unchecked_error_guaranteed` call. If we abort immediately after complaining about the obsolete `impl Trait for ..` syntax, then we avoid reaching HIR lowering. This means we can use `TyKind::Dummy` instead of `TyKind::Err`.
This is the main source code repository for Rust. It contains the compiler, standard library, and documentation.
Note: this README is for users rather than contributors. If you wish to contribute to the compiler, you should read CONTRIBUTING.md instead.
Read “Installation” from The Book.
If you really want to install from source (though this is not recommended), see INSTALL.md.
See https://www.rust-lang.org/community for a list of chat platforms and forums.
See CONTRIBUTING.md.
Rust is primarily distributed under the terms of both the MIT license and the Apache License (Version 2.0), with portions covered by various BSD-like licenses.
See LICENSE-APACHE, LICENSE-MIT, and COPYRIGHT for details.
The Rust Foundation owns and protects the Rust and Cargo trademarks and logos (the “Rust Trademarks”).
If you want to use these names or brands, please read the media guide.
Third-party logos may be subject to third-party copyrights and trademarks. See Licenses for details.