[][src]Module syntax::util::parser

⚙️ This is an internal compiler API. (rustc_private)

This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.

Enums

AssocOpInternal

Associative operator with precedence.

ExprPrecedenceInternal
FixityInternal

Constants

PREC_CLOSUREInternal
PREC_FORCE_PARENInternal
PREC_JUMPInternal
PREC_PARENInternal
PREC_POSTFIXInternal
PREC_PREFIXInternal
PREC_RANGEInternal
PREC_RESETInternal

Functions

contains_exterior_struct_litInternal

Expressions that syntactically contain an "exterior" struct literal i.e., not surrounded by any parens or other delimiters, e.g., X { y: 1 }, X { y: 1 }.method(), foo == X { y: 1 } and X { y: 1 } == foo all do, but (X { y: 1 }) == foo does not.

needs_par_as_let_scrutineeInternal

Suppose we have let _ = e and the order of e. Is the order such that e in let _ = e needs parenthesis when it is on the RHS?

prec_let_scrutinee_needs_parInternal

In let p = e, operators with precedence <= this one requires parenthesis in e.