Change:
Exact code unknown code. The error was generated by using . Rerunning after did not fix this. Did not resolve this yet at the time of writing this. This might be related to: But I think this was because I compiles first and got this error: This was expected to give an error (needed to be ) <details<summary<strongFull backtrace on the fist check:</strong</summary<p</p</details: Problem persists after updating to last nightly: <!-- Include a backtrace in the code block by setting in your environment. E.g. . --<details<summary<strongBacktrace (After trying to recheck it)</strong</summary<p</p</details
I just found out the problem exists because of: If I comment out that line it will not report an internal error anymore. I had a function but I also use the crate  I now renamed the function but still getting errors. So it is likely because of a ambiguity issue. Trying to reproduce it in minimal code example, but not yet been able to do so.
After some testing a narrowed it down to the following: : : My guess why this fails: The macro uses inside of it. But when I try to export this it can not find it. commenting out/removing any line will give a normal compile error. I hope this helps to find out the problem. The error always happens and can thus be reliably reproduced. I tested this on latest nightly too:
reduced:
Hi can you assign it to me? I would like to give it a try and solve it.

Discussion:
/// expansion and import resolution (perhaps they can be merged in the future). /// The function is used for resolving initial segments of macro paths (e.g., `foo` in /// `foo::bar!();` or `foo!();`) and also for import paths on 2018 edition. <del> #[instrument(level = "debug", skip(self, scope_set))] </del> <ins> #[instrument(level = "debug", skip(self))] </ins> pub(crate) fn early_resolve_ident_in_lexical_scope( &mut self, orig_ident: Ident,

} return None; } <del> PathResult::NonModule(_) => { if no_ambiguity { </del> <ins> PathResult::NonModule(partial_res) => { if no_ambiguity && partial_res.full_res() != Some(Res::Err) { // Check if there are no ambiguities and the result is not dummy. </ins> assert!(import.imported_module.get().is_none()); } // The error was already reported earlier.

/// with different restrictions when looking up the resolution. /// This enum is currently used only for early resolution (imports and macros), /// but not for late resolution yet. <del> #[derive(Clone, Copy)] </del> <ins> #[derive(Clone, Copy, Debug)] </ins> enum ScopeSet<'a> { /// All scopes with the given namespace. All(Namespace),

<ins> #[macro_export] macro_rules! m { () => { use issue_85992_extern_2::Outcome; } } </ins>

<ins> // edition: 2021 // compile-flags: --extern issue_85992_extern_1 --extern issue_85992_extern_2 // aux-build: issue-85992-extern-1.rs // aux-build: issue-85992-extern-2.rs issue_85992_extern_1::m!(); use crate::issue_85992_extern_2; //~^ ERROR unresolved import `crate::issue_85992_extern_2` fn main() {} </ins>

<ins> error[E0432]: unresolved import `crate::issue_85992_extern_2` --> $DIR/issue-85992.rs:8:5 | LL | use crate::issue_85992_extern_2; |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `issue_85992_extern_2` in the root error: aborting due to previous error For more information about this error, try `rustc --explain E0432`. </ins>