-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Getting "error: mismatched types: expected std::result::Result<(BUG[0u],uint),~str>
..."
#10031
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I've made a reduced test case here - https://gist.github.com/37693cca7676c3033d22
|
I just saw a bug that looks similar to this. |
i just encountered this at well. Will take a stab at resolving it. |
…strumentation. modmin.rs: #[crate_id = "min#0.1"]; #[cfg(not(nontuple))] pub struct Wrap<A>(A); #[cfg(nontuple)] pub struct Wrap<A>{ a: A } #[cfg(nontuple)] pub fn Wrap<A>(a: A) -> Wrap<A> { Wrap{ a: a } } test.rs: extern mod min; fn main() { let _x: min::Wrap<()> = min::Wrap(()); } Makefile: default: test RUSTC=rustc TEMP_FILE=$(mktmp -t deps) TEMP_FILE=/tmp/foo define DEPS_ON_RUSTC # $(1) rustc args # $(2) output variable $(2) = $(shell TMP=$(TEMP_FILE) $(RUSTC) --dep-info $TMP --no-analysis $(1) ; sed -e s'/^[^:]*://' $TMP ) endef define FILENAME_ON_RUSTC # $(1) rustc args # $(2) output variable $(2) := $(shell $(RUSTC) --crate-file-name $(1)) endef LIBMOD_FLAGS=--lib modmin.rs $(eval $(call FILENAME_ON_RUSTC, $(LIBMOD_FLAGS), LIBMOD)) $(eval $(call DEPS_ON_RUSTC, $(LIBMOD_FLAGS), LIBMOD_DEPS)) $(LIBMOD): $(LIBMOD_DEPS) $(RUSTC) $(LIBMOD_FLAGS) TEST_FLAGS=--test test.rs $(eval $(call FILENAME_ON_RUSTC, $(TEST_FLAGS), TEST)) $(eval $(call DEPS_ON_RUSTC, $(TEST_FLAGS), TEST_DEPS)) $(TEST): $(TEST_DEPS) $(LIBMOD) $(RUSTC) -L. $(TEST_FLAGS) clean: rm -f $(LIBMOD) $(TEST)
okay I think I found the problem. In |
I'm getting the following error when trying to compile a library I wrote - https://github.com/utkarshkukreti/parley.rs
utkarshkukreti/parley.rs@9b8ac76 is the commit which caused this; just a re-arrangement of the code, making the core part of the library a crate.
I grepped the error message in the Rust's codebase, and found only one result - https://github.com/mozilla/rust/blob/8c97c5ebfd64de87b3868fc8dbfd79a74c4be3cb/src/librustc/util/ppaux.rs#L449 which says
The text was updated successfully, but these errors were encountered: