Benign crates 833,232 installs Download

rustc-ap-rustc_parse 671.0.0

“Automatically published version of the package `rustc_parse` in the rust-lang/rust repository from commit 9a27044f42ace9eb652781b53f598e25d…”

Creates Rust command via qualified pathRust test marker or harness
SHA-256065e632101bdd57a271f38ee7a4d72b5a3d0467ec845104346c284b2c6c69960

Evidence

Creates Rust command via qualified path diagnostics.rs · lines 1007–1013
1007:51… a close delimiter token.
1008 //
1009 // let a = std::process::Command::new("echo")
1010 // .arg("1")
1011 // ,arg("2")
1012 // ^
1013 // https://github …
imports crate::maybe_recover_from_interpolated_ty_qpath pat.rs · lines 1–27
1use super::{Parser, PathStyle};
2use crate::{maybe_recover_from_interpolated_ty_qpath, maybe_whole};
3use rustc_ast::ast::{self, AttrVec, Attribute, FieldPat, MacCall, Pat, PatKind, RangeEnd};
4use rustc_ast::ast::{BindingMode, Expr, ExprKind, Mutability, Path, QSelf, RangeSyntax};
5use rustc_ast::mut_visit::{noop_visit_mac, noop_visit_pat, MutVisitor};
6use rustc_ast::ptr::P;
7use rustc_ast::token;
8use rustc_ast_pretty::pprust;
9use rustc_errors::{struct_span_err, Applicability, DiagnosticBuilder, PResult};
10use rustc_span::source_map::{respan, Span, Spanned};
11use rustc_span::symbol::{kw, sym, Ident};
12
13type Expected = Option<&'static str>;
14
15/// `Expected` for function and lambda parameter patterns.
16pub(super) const PARAM_EXPECTED: Expected = Some("parameter name");
17
18const WHILE_PARSING_OR_MSG: &str = "while parsing this or-pattern starting here";
19
20/// Whether or not an or-pattern should be gated when occurring in the current context.
21#[derive(PartialEq)]
22pub(super) enum GateOr {
⋯5 lines
English function-word token "that" pat.rs · lines 84–88
84:7… .emit();
85 }
86
87 /// Parses a pattern, that may be a or-pattern (e.g. `Foo | Bar` in `Some(Foo | Bar)`).
88 /// Corresponds to `pat<allow_ …
Rust replaces matched string content pat.rs · lines 218–226
218:27… ertical bar to match on multiple alternatives",
219 seq_snippet.replace(",", " |"),
220 Applicability::MachineApplicable,
221 );
⋯5 lines
#[test] attribute attr.rs · lines 140–147
140:51… ning of source files. \
141 Outer attributes, like `#[test]`, annotate the item following them.",
142 )
143 .emit();
⋯4 lines

No evidence locations were recorded for this file. Raw result

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.