Skip to content

Commit

Permalink
fix logic bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Esteban Küber committed Jul 22, 2018
1 parent 93b2bb0 commit 915ff0b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libsyntax_ext/format.rs
Expand Up @@ -698,8 +698,8 @@ pub fn expand_format_args_nl<'cx>(ecx: &'cx mut ExtCtxt,

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

0 comments on commit 915ff0b

Please sign in to comment.