about summary refs log tree commit diff
path: root/src/libsyntax
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2019-10-08 23:31:19 +0200
committerGitHub <noreply@github.com>2019-10-08 23:31:19 +0200
commitfc068222d06ac3ff656c4c9ef2b98428c1c4537b (patch)
tree549c8b1517f37a1fb2c80cd8786404a5bad1d6bb /src/libsyntax
parent2748a9fd93dd1a00a4521f4f16de5befbf77f6cd (diff)
parente068cec13e2a63dba29d40f0130527d980f83f7c (diff)
downloadrust-fc068222d06ac3ff656c4c9ef2b98428c1c4537b.tar.gz
rust-fc068222d06ac3ff656c4c9ef2b98428c1c4537b.zip
Rollup merge of #64284 - Mark-Simulacrum:include-warn, r=petrochenkov
Warn if include macro fails to include entire file

This currently introduces an error, mainly because that was just simpler, and I'm not entirely certain if we can introduce a lint without an RFC and such.

This is primarily to get feedback on the approach and overall aim -- in particular, do we think this is helpful? If so, we probably will need lang-team sign off and decide if it should be an error (as currently introduced by this PR), a lint, or a warning.

r? @petrochenkov

cc https://github.com/rust-lang/rust/issues/35560
Diffstat (limited to 'src/libsyntax')
-rw-r--r--src/libsyntax/early_buffered_lints.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libsyntax/early_buffered_lints.rs b/src/libsyntax/early_buffered_lints.rs
index 36c1da29299..5cc953b9066 100644
--- a/src/libsyntax/early_buffered_lints.rs
+++ b/src/libsyntax/early_buffered_lints.rs
@@ -11,6 +11,7 @@ use syntax_pos::MultiSpan;
 pub enum BufferedEarlyLintId {
     IllFormedAttributeInput,
     MetaVariableMisuse,
+    IncompleteInclude,
 }
 
 /// Stores buffered lint info which can later be passed to `librustc`.