1
Fork 0
rust/compiler/rustc_resolve/src
Matthias Krüger a3637032db unused-lifetimes: don't warn about lifetimes originating from expanded code
previously, we would warn like this:

````
warning: lifetime parameter `'s` never used
 --> /tmp/unusedlif/code.rs:6:62
  |
5 | #[derive(Clone)]
  |          - help: elide the unused lifetime
6 | struct ShimMethod4<T: Trait2 + 'static>(pub &'static dyn for<'s> Fn(&'s mut T::As));
  |                                                              ^^
  |
  = note: requested on the command line with `-W unused-lifetimes`
````

Fixes #104432
2023-02-03 21:18:34 +01:00
..
diagnostics Implement the unused_macro_rules lint 2022-05-05 19:13:00 +02:00
late unused-lifetimes: don't warn about lifetimes originating from expanded code 2023-02-03 21:18:34 +01:00
build_reduced_graph.rs Rename rust_2015 => is_rust_2015 2023-02-02 08:17:13 +00:00
check_unused.rs Use UnordMap instead of FxHashMap in define_id_collections!(). 2023-01-19 10:40:47 +01:00
def_collector.rs rustc_ast_lowering: Stop lowering imports into multiple items 2022-12-01 18:51:20 +03:00
diagnostics.rs Rename rust_2015 => is_rust_2015 2023-02-02 08:17:13 +00:00
effective_visibilities.rs Fold Definitions into the untracked data 2022-12-09 14:59:39 +00:00
errors.rs migrating rustc_resolve to SessionDiagnostic. work in progress. start 2022-11-13 19:39:26 +05:30
ident.rs Rename rust_2015 => is_rust_2015 2023-02-02 08:17:13 +00:00
imports.rs review comment 2023-01-09 18:07:34 +00:00
late.rs Rename rust_2015 => is_rust_2015 2023-02-02 08:17:13 +00:00
lib.rs Revert "Make PROC_MACRO_DERIVE_RESOLUTION_FALLBACK a hard error" 2023-01-20 17:13:55 -05:00
macros.rs Move the untracked cstore and source_span into a struct 2022-12-09 14:53:24 +00:00