Skip to content

Commit e820389

Browse files
committed
instantly_dangling_pointer: add some FIXMEs
1 parent 4280bc5 commit e820389

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

compiler/rustc_lint/src/dangling.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ fn is_temporary_rvalue(expr: &Expr<'_>) -> bool {
112112
ExprKind::Struct(_, _, _) => true,
113113
// These are 'static
114114
ExprKind::Lit(_) => false,
115-
// False negatives are possible, but arrays get promoted to 'static way too often.
115+
// FIXME: False negatives are possible, but arrays get promoted to 'static way too often.
116116
ExprKind::Array(_) => false,
117117

118118
// These typecheck to `!`

compiler/rustc_lint/src/lints.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1129,6 +1129,7 @@ pub struct IgnoredUnlessCrateSpecified<'a> {
11291129
#[diag(lint_instantly_dangling)]
11301130
#[note]
11311131
#[help]
1132+
// FIXME: use #[primary_span]
11321133
pub struct InstantlyDangling {
11331134
pub callee: Symbol,
11341135
pub ty: String,

0 commit comments

Comments
 (0)