Skip to content

Commit 915ff0b

Browse files
author
Esteban Küber
committed
fix logic bug
1 parent 93b2bb0 commit 915ff0b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/libsyntax_ext/format.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -698,8 +698,8 @@ pub fn expand_format_args_nl<'cx>(ecx: &'cx mut ExtCtxt,
698698

699699
// For some reason, the only one that actually works for `println` is the first check
700700
if !sp.allows_unstable() // the enclosing span is marked as `#[allow_insternal_unsable]`
701-
|| !ecx.ecfg.enable_allow_internal_unstable() // NOTE: when is this enabled?
702-
|| !ecx.ecfg.enable_format_args_nl() // enabled using `#[feature(format_args_nl]`
701+
&& !ecx.ecfg.enable_allow_internal_unstable() // NOTE: when is this enabled?
702+
&& !ecx.ecfg.enable_format_args_nl() // enabled using `#[feature(format_args_nl]`
703703
{
704704
feature_gate::emit_feature_err(&ecx.parse_sess,
705705
"format_args_nl",

src/test/ui/feature-gate-format_args_nl.rs

Whitespace-only changes.

0 commit comments

Comments
 (0)