summary refs log tree commit diff
path: root/src/libsyntax/parse/mod.rs
diff options
context:
space:
mode:
authorJeffrey Seyfried <jeffrey.seyfried@gmail.com>2016-08-28 10:32:45 +0000
committerJeffrey Seyfried <jeffrey.seyfried@gmail.com>2016-08-28 10:32:52 +0000
commitbd38e890ee5c9e35bbc8874edf8547515bf57b37 (patch)
tree53ebce1753ec4e9ecdaa2b92fd0138005f57f5e5 /src/libsyntax/parse/mod.rs
parent37f30173a017c7c5fdfb98697daa087fa5ce50c7 (diff)
parente46b09a1f9051a65544dee08f4d8d749d474d586 (diff)
downloadrust-bd38e890ee5c9e35bbc8874edf8547515bf57b37.tar.gz
rust-bd38e890ee5c9e35bbc8874edf8547515bf57b37.zip
Rollup merge of #35480 - KiChjang:e0379-bonus, r=nikomatsakis
Move E0379 check from typeck to ast validation

Part of #35233.
Extension of #35338, #35364.
Fixes #35404.
Diffstat (limited to 'src/libsyntax/parse/mod.rs')
-rw-r--r--src/libsyntax/parse/mod.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/libsyntax/parse/mod.rs b/src/libsyntax/parse/mod.rs
index eb59a8e24d3..8272aa7b440 100644
--- a/src/libsyntax/parse/mod.rs
+++ b/src/libsyntax/parse/mod.rs
@@ -937,7 +937,10 @@ mod tests {
                                 variadic: false
                             }),
                                     ast::Unsafety::Normal,
-                                    ast::Constness::NotConst,
+                                    Spanned {
+                                        span: sp(0,2),
+                                        node: ast::Constness::NotConst,
+                                    },
                                     Abi::Rust,
                                     ast::Generics{ // no idea on either of these:
                                         lifetimes: Vec::new(),