Skip to content

Commit ede9aa2

Browse files
Re-sync with internal repository (#81)
The internal and external repositories are out of sync. This Pull Request attempts to brings them back in sync by patching the GitHub repository. Please carefully review this patch. You must disable ShipIt for your project in order to merge this pull request. DO NOT IMPORT this pull request. Instead, merge it directly on GitHub using the MERGE BUTTON. Re-enable ShipIt after merging.
1 parent 4d52d4a commit ede9aa2

File tree

21 files changed

+49
-49
lines changed

21 files changed

+49
-49
lines changed

.cargo/config.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
[alias]
22
xtask = "run --package xtask --"
33

4-
# @fb-only:
5-
# @fb-only:
4+
# @fb-only
5+
# @fb-only
66

77
[profile.release]
88
lto = "thin"

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ threadpool = "1.8.1"
9999
timeout-readwrite = "0.3.3"
100100
toml = "0.5"
101101
tree-sitter = "0.23.2"
102-
# @fb-only:
102+
# @fb-only
103103
tree-sitter-erlang = "0.11.0" # @oss-only
104104
url = "2.5.4"
105105
vfs = { git = "https://github.com/rust-lang/rust-analyzer", rev = "2024-07-29" }

crates/base_db/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ mod module_index;
2929
// Public API
3030

3131
pub mod fixture;
32-
// @fb-only:
32+
// @fb-only
3333
pub mod test_utils;
3434
pub use change::Change;
3535
pub use elp_project_model::AppType;
@@ -414,7 +414,7 @@ lazy_static! {
414414
static ref IGNORED_SOURCES: Vec<Regex> = {
415415
let regexes: Vec<Vec<Regex>> = vec![
416416
//ignore sources goes here
417-
// @fb-only:
417+
// @fb-only
418418
];
419419
regexes.into_iter().flatten().collect::<Vec<Regex>>()
420420
};

crates/elp/src/bin/glean.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ use elp_ide::elp_ide_db::elp_base_db::VfsPath;
3131
use elp_ide::elp_ide_db::EqwalizerDatabase;
3232
use elp_ide::elp_ide_db::LineIndexDatabase;
3333
use elp_ide::elp_ide_db::RootDatabase;
34-
// @fb-only:
34+
// @fb-only
3535
use elp_ide::Analysis;
3636
use elp_ide::TextRange;
3737
use elp_project_model::buck::BuckQueryConfig;
@@ -1604,8 +1604,8 @@ impl GleanIndexer {
16041604
expansion,
16051605
ods_url: None,
16061606
};
1607-
// @fb-only:
1608-
// @fb-only:
1607+
// @fb-only
1608+
// @fb-only
16091609
Some(XRef {
16101610
source: range.into(),
16111611
target: XRefTarget::Macro(target.into()),
@@ -2459,7 +2459,7 @@ mod tests {
24592459
%% ^^^^^^^^^^^ macro.erl/macro/COUNT_INFRA/70/has_ods/'atom'
24602460
24612461
"#;
2462-
// @fb-only:
2462+
// @fb-only
24632463
}
24642464

24652465
#[test]

crates/elp/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ mod handlers;
3535
pub mod line_endings;
3636
pub mod lsp_ext;
3737
mod mem_docs;
38-
// @fb-only:
38+
// @fb-only
3939
mod op_queue;
4040
mod project_loader;
4141
pub mod reload;
@@ -106,7 +106,7 @@ pub fn otp_file_to_ignore(db: &Analysis, file_id: FileId) -> bool {
106106
"redbug_dtop",
107107
]
108108
.iter()
109-
// @fb-only:
109+
// @fb-only
110110
.map(SmolStr::new)
111111
.collect();
112112
}

crates/hir/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ pub use module_data::TypeAliasDef;
145145
pub use module_data::TypeAliasSource;
146146
pub use module_data::VarDef;
147147
pub use name::known;
148-
// @fb-only:
148+
// @fb-only
149149
pub use name::AsName;
150150
pub use name::MacroName;
151151
pub use name::Name;

crates/hir/src/name.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
//! See [`Name`].
1111
12-
// @fb-only:
12+
// @fb-only
1313

1414
use std::borrow::Cow;
1515
use std::collections::HashSet;

crates/ide/src/annotations.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ use elp_syntax::TextRange;
1616
use fxhash::FxHashMap;
1717
use fxhash::FxHashSet;
1818

19-
// @fb-only:
19+
// @fb-only
2020
use crate::runnables::runnables;
2121
use crate::runnables::Runnable;
2222

@@ -46,7 +46,7 @@ pub struct Link {
4646

4747
pub(crate) fn annotations(db: &RootDatabase, file_id: FileId) -> Vec<Annotation> {
4848
let mut annotations = Vec::default();
49-
// @fb-only:
49+
// @fb-only
5050
annotations
5151
}
5252

crates/ide/src/diagnostics.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ mod inefficient_last;
9696
mod map_find_to_syntax;
9797
mod map_insertion_to_syntax;
9898
mod meck;
99-
// @fb-only:
99+
// @fb-only
100100
mod missing_compile_warn_missing_spec;
101101
mod missing_separator;
102102
mod misspelled_attribute;
@@ -804,7 +804,7 @@ pub fn native_diagnostics(
804804
config
805805
.lints_from_config
806806
.get_diagnostics(&mut res, &sema, file_id);
807-
// @fb-only:
807+
// @fb-only
808808
syntax_diagnostics(&sema, &parse, &mut res, file_id);
809809
diagnostics_from_descriptors(
810810
&mut res,
@@ -1515,7 +1515,7 @@ pub fn ct_diagnostics(
15151515
let testcases =
15161516
common_test::runnable_names(&sema, file_id, all.clone(), groups.clone()).ok();
15171517
common_test::unreachable_test(&mut res, &sema, file_id, &testcases);
1518-
// @fb-only:
1518+
// @fb-only
15191519
}
15201520
CommonTestInfo::EvalError(_error) => {
15211521
// The error currently does not contain anything useful, so we ignore it

crates/ide/src/diagnostics/application_env.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ use crate::codemod_helpers::find_call_in_function;
2727
use crate::codemod_helpers::CheckCallCtx;
2828
use crate::codemod_helpers::FunctionMatch;
2929
use crate::codemod_helpers::MakeDiagCtx;
30-
// @fb-only:
30+
// @fb-only
3131
use crate::diagnostics::DiagnosticCode;
3232
use crate::diagnostics::Severity;
3333

@@ -106,7 +106,7 @@ fn check_function(diags: &mut Vec<Diagnostic>, sema: &Semantic, def: &FunctionDe
106106
vec![2, 3],
107107
BadEnvCallAction::AppArg(0),
108108
),
109-
// @fb-only:
109+
// @fb-only
110110
]
111111
.into_iter()
112112
.flatten()

0 commit comments

Comments
 (0)