diff options
| author | Malo Jaffré <jaffre.malo@gmail.com> | 2017-12-31 17:17:01 +0100 |
|---|---|---|
| committer | Malo Jaffré <jaffre.malo@gmail.com> | 2018-01-01 14:44:12 +0100 |
| commit | cbb32a94181d359ca16659b3e74303e945e8ea92 (patch) | |
| tree | 785a92dda4d9ec7b385d05d81db60a8a615cd5a7 /src/libsyntax | |
| parent | 8395798d1aa33bb6ee74d05825bb775a75a9b70e (diff) | |
| download | rust-cbb32a94181d359ca16659b3e74303e945e8ea92.tar.gz rust-cbb32a94181d359ca16659b3e74303e945e8ea92.zip | |
Fix docs for future pulldown migration
Diffstat (limited to 'src/libsyntax')
| -rw-r--r-- | src/libsyntax/ast.rs | 4 | ||||
| -rw-r--r-- | src/libsyntax/codemap.rs | 1 | ||||
| -rw-r--r-- | src/libsyntax/ext/base.rs | 3 | ||||
| -rw-r--r-- | src/libsyntax/feature_gate.rs | 4 |
4 files changed, 7 insertions, 5 deletions
diff --git a/src/libsyntax/ast.rs b/src/libsyntax/ast.rs index e0f14c04c6c..15682b2d459 100644 --- a/src/libsyntax/ast.rs +++ b/src/libsyntax/ast.rs @@ -1543,7 +1543,7 @@ pub enum TraitObjectSyntax { /// Inline assembly dialect. /// -/// E.g. `"intel"` as in `asm!("mov eax, 2" : "={eax}"(result) : : : "intel")`` +/// E.g. `"intel"` as in `asm!("mov eax, 2" : "={eax}"(result) : : : "intel")` #[derive(Clone, PartialEq, Eq, RustcEncodable, RustcDecodable, Hash, Debug, Copy)] pub enum AsmDialect { Att, @@ -1552,7 +1552,7 @@ pub enum AsmDialect { /// Inline assembly. /// -/// E.g. `"={eax}"(result)` as in `asm!("mov eax, 2" : "={eax}"(result) : : : "intel")`` +/// E.g. `"={eax}"(result)` as in `asm!("mov eax, 2" : "={eax}"(result) : : : "intel")` #[derive(Clone, PartialEq, Eq, RustcEncodable, RustcDecodable, Hash, Debug)] pub struct InlineAsmOutput { pub constraint: Symbol, diff --git a/src/libsyntax/codemap.rs b/src/libsyntax/codemap.rs index 2f3e2b66113..129defd2093 100644 --- a/src/libsyntax/codemap.rs +++ b/src/libsyntax/codemap.rs @@ -391,6 +391,7 @@ impl CodeMap { /// Returns `Some(span)`, a union of the lhs and rhs span. The lhs must precede the rhs. If /// there are gaps between lhs and rhs, the resulting union will cross these gaps. /// For this to work, the spans have to be: + /// /// * the ctxt of both spans much match /// * the lhs span needs to end on the same line the rhs span begins /// * the lhs span must start at or before the rhs span diff --git a/src/libsyntax/ext/base.rs b/src/libsyntax/ext/base.rs index be71d6e038c..0d3be28ffef 100644 --- a/src/libsyntax/ext/base.rs +++ b/src/libsyntax/ext/base.rs @@ -776,7 +776,8 @@ impl<'a> ExtCtxt<'a> { /// Emit `msg` attached to `sp`, and stop compilation immediately. /// /// `span_err` should be strongly preferred where-ever possible: - /// this should *only* be used when + /// this should *only* be used when: + /// /// - continuing has a high risk of flow-on errors (e.g. errors in /// declaring a macro would cause all uses of that macro to /// complain about "undefined macro"), or diff --git a/src/libsyntax/feature_gate.rs b/src/libsyntax/feature_gate.rs index c5de0da0979..e5ef9393e7b 100644 --- a/src/libsyntax/feature_gate.rs +++ b/src/libsyntax/feature_gate.rs @@ -63,9 +63,9 @@ macro_rules! declare_features { /// A set of features to be used by later passes. pub struct Features { - /// #![feature] attrs for stable language features, for error reporting + /// `#![feature]` attrs for stable language features, for error reporting pub declared_stable_lang_features: Vec<(Symbol, Span)>, - /// #![feature] attrs for non-language (library) features + /// `#![feature]` attrs for non-language (library) features pub declared_lib_features: Vec<(Symbol, Span)>, $(pub $feature: bool),+ } |
