Skip to content

Conversation

@braw-lee
Copy link
Contributor

@braw-lee braw-lee commented Jul 5, 2024

Will handle borrow-checking diagnostics inside this class

depends on #3058

Comment on lines 42 to 45
dejagnu;
# install Rust directly using rustup
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain=1.72.0;
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain=nightly;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm curious. Why do we need to use nightly instead of latest stable?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

because I needed to use rust extern types (opaque types) here
its an ustable feature, so not supported in stable rust currently

Copy link
Member

@CohenArthur CohenArthur left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the class looks good! good idea! we'll merge #3058 and then this one :)

@CohenArthur
Copy link
Member

#3058 has been added to the merge queue, so can you rebase this PR once #3058 arrives on master? and then I'll merge it :) thanks @braw-lee !

gcc/rust/ChangeLog:

	* Make-lang.in: Compile new file.
	* checks/errors/borrowck/rust-borrow-checker.cc (BorrowChecker::go):
	Use new class to report errors.
	* checks/errors/borrowck/rust-borrow-checker-diagnostics.cc: New file.
	* checks/errors/borrowck/rust-borrow-checker-diagnostics.h:
	New file, adds new class.

Signed-off-by: Kushal Pal <kushalpal109@gmail.com>
@braw-lee braw-lee force-pushed the add_bck_diagnostic_class branch from 4d3df76 to e5e6c43 Compare July 16, 2024 12:13
@braw-lee
Copy link
Contributor Author

#3058 has been added to the merge queue, so can you rebase this PR once #3058 arrives on master? and then I'll merge it :) thanks @braw-lee !

sure thank you!

@CohenArthur CohenArthur added this pull request to the merge queue Jul 16, 2024
Merged via the queue into Rust-GCC:master with commit c1ba898 Jul 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants