c8e10e386a
Fix naming conventions for new lints We actually have an RFC from Oct 2014 specifying naming conventions for lints that is still relevant - https://github.com/rust-lang/rfcs/blob/master/text/0344-conventions-galore.md#lints. Unfortunately, human memory doesn't work for such prolonged periods of time, so a number of recently added edition-related lints don't follow the conventions. This PR fixes names for those lints. Unstable lints, simply renamed: - `unused_lifetime` -> `unused_lifetimes` - `absolute_path_not_starting_with_crate` -> `absolute_paths_not_starting_with_crate` - `unnecessary_extern_crate` -> `unnecessary_extern_crates` New lints stabilized in the last couple of releases, registered as renamed (old names still work with a warning): - `single_use_lifetime` -> `single_use_lifetimes` - `elided_lifetime_in_path` -> `elided_lifetimes_in_paths` - `bare_trait_object` -> `bare_trait_objects` - `unstable_name_collision` -> `unstable_name_collisions` - `unused_doc_comment` -> `unused_doc_comments` NOT changed, too old to rename: - `const_err` -> `const_errors` - `unused_allocation` -> `unused_allocations` NOT changed, deprecation lints, no need to rename, they are going to be removed anyway: - `invalid_type_param_default` -> `invalid_type_param_defaults` - `missing_fragment_specifier` -> `missing_fragment_specifiers` - `tyvar_behind_raw_pointer` -> `tyvars_behind_raw_pointer` - `illegal_floating_point_literal_pattern` -> `illegal_floating_point_literal_patterns` |
||
---|---|---|
.. | ||
bootstrap | ||
build_helper | ||
ci | ||
dlmalloc@c99638dc2e | ||
doc | ||
etc | ||
grammar | ||
jemalloc@1f5a28755e | ||
liballoc | ||
liballoc_jemalloc | ||
liballoc_system | ||
libarena | ||
libbacktrace | ||
libcompiler_builtins@4cfd7101eb | ||
libcore | ||
libfmt_macros | ||
libgraphviz | ||
liblibc@a7e78a78e1 | ||
libpanic_abort | ||
libpanic_unwind | ||
libproc_macro | ||
libprofiler_builtins | ||
librustc | ||
librustc_allocator | ||
librustc_apfloat | ||
librustc_asan | ||
librustc_borrowck | ||
librustc_codegen_llvm | ||
librustc_codegen_utils | ||
librustc_cratesio_shim | ||
librustc_data_structures | ||
librustc_driver | ||
librustc_errors | ||
librustc_incremental | ||
librustc_lint | ||
librustc_llvm | ||
librustc_lsan | ||
librustc_metadata | ||
librustc_mir | ||
librustc_msan | ||
librustc_passes | ||
librustc_platform_intrinsics | ||
librustc_plugin | ||
librustc_privacy | ||
librustc_resolve | ||
librustc_save_analysis | ||
librustc_target | ||
librustc_traits | ||
librustc_tsan | ||
librustc_typeck | ||
librustdoc | ||
libserialize | ||
libstd | ||
libstd_unicode | ||
libsyntax | ||
libsyntax_ext | ||
libsyntax_pos | ||
libterm | ||
libtest | ||
libunwind | ||
llvm@9ad4b7e8d7 | ||
llvm-emscripten@2717444753 | ||
rtstartup | ||
rustc | ||
rustllvm | ||
stdsimd@a19ca1cd91 | ||
test | ||
tools | ||
Cargo.lock | ||
Cargo.toml | ||
README.md | ||
stage0.txt |
This directory contains the source code of the rust project, including:
rustc
and its testslibstd
- Various submodules for tools, like rustdoc, rls, etc.
For more information on how various parts of the compiler work, see the rustc guide.
Their is also useful content in the following READMEs, which are gradually being moved over to the guide:
- https://github.com/rust-lang/rust/tree/master/src/librustc/ty/maps
- https://github.com/rust-lang/rust/tree/master/src/librustc/dep_graph
- https://github.com/rust-lang/rust/blob/master/src/librustc/infer/region_constraints
- https://github.com/rust-lang/rust/tree/master/src/librustc/infer/higher_ranked
- https://github.com/rust-lang/rust/tree/master/src/librustc/infer/lexical_region_resolve