We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8da6239 commit 3537451Copy full SHA for 3537451
compiler/rustc_lint/src/context.rs
@@ -709,6 +709,12 @@ impl<'tcx> LateContext<'tcx> {
709
}
710
711
/// Gets the absolute path of `def_id` as a vector of `Symbol`.
712
+ /// Note that this is kinda expensive because it has to
713
+ /// travel the tree and pretty-print. Use sparingly (or find a
714
+ /// way to only get the segments you're interested in, e.g. via
715
+ /// [`TyCtxt::crate_name`]).
716
+ ///
717
+ /// FIXME: It would be great if this could be optimized.
718
///
719
/// # Examples
720
0 commit comments