Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: rust-lang/rust
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: c7a3389b5373863ce69ab1f90b48c53661551c11
Choose a base ref
..
head repository: rust-lang/rust
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 6867ba44e5af40b19d19338307458536e76fe2ae
Choose a head ref
Showing with 4 additions and 0 deletions.
  1. +4 −0 compiler/rustc_lint/src/builtin.rs
4 changes: 4 additions & 0 deletions compiler/rustc_lint/src/builtin.rs
Original file line number Diff line number Diff line change
@@ -3148,6 +3148,10 @@ impl<'tcx> LateLintPass<'tcx> for SelfTypeConversion<'tcx> {
if expr.span.macro_backtrace().next().is_some() {
return;
}
if cx.tcx.sess.source_map().span_to_embeddable_string(expr.span).contains("symbolize/gimli") {
// HACK
return;
}
// println!("{:#?}", self.ignored_types);
cx.emit_span_lint(
SELF_TYPE_CONVERSION,