Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 293695f

Browse filesBrowse files
committed
Ignore the into in cargo/crates/crates-io/lib.rs and cargo
1 parent d420b82 commit 293695f
Copy full SHA for 293695f

File tree

Expand file treeCollapse file tree

1 file changed

+18
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+18
-1
lines changed

‎compiler/rustc_lint/src/builtin.rs

Copy file name to clipboardExpand all lines: compiler/rustc_lint/src/builtin.rs
+18-1Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3146,12 +3146,29 @@ impl<'tcx> LateLintPass<'tcx> for SelfTypeConversion<'tcx> {
31463146
tracing::info!("not into_fn {:?}", cx.tcx.get_diagnostic_item(sym::into_fn));
31473147
return;
31483148
}
3149-
tracing::info!(?def_id);
31503149
tracing::info!(?expr);
31513150
if expr.span.macro_backtrace().next().is_some() {
31523151
return;
31533152
}
31543153
if cx.tcx.sess.source_map().span_to_embeddable_string(expr.span).contains("symbolize/gimli")
3154+
|| cx
3155+
.tcx
3156+
.sess
3157+
.source_map()
3158+
.span_to_embeddable_string(expr.span)
3159+
.contains("crates/crates-io")
3160+
|| cx
3161+
.tcx
3162+
.sess
3163+
.source_map()
3164+
.span_to_embeddable_string(expr.span)
3165+
.contains("core/shell")
3166+
|| cx
3167+
.tcx
3168+
.sess
3169+
.source_map()
3170+
.span_to_embeddable_string(expr.span)
3171+
.contains("git/known_hosts")
31553172
{
31563173
// HACK
31573174
return;

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.